﻿/*
---------------------------------------------------------------------------------------------------
GENERAL
---------------------------------------------------------------------------------------------------
*/

#s4-workspace
{
	/*Fixes scrolling, as SharePoint scrolls within a <div> and not within the page as a whole*/
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
	
	/*Sets the main page to Z-Index 0 so ribbon elements will overlap it*/
	z-index: 0;
	
	/*Fixes the page taking up more than the full width of the page*/
	width: 100% !important;
	overflow-x: hidden !important;
}

a#O365_SubLink_ShellAboutMe, a#O365_SubLink_SuiteMenu_zz4_ID_PersonalizePage {
	/* Disables the "about me" and "personalize this page" links in the top bar when logged in */
    display: none;
}

/*
---------------------------------------------------------------------------------------------------
WEB PARTS
---------------------------------------------------------------------------------------------------
*/

/*Edit web parts: make them visible in top left*/
td#MSOTlPn_MainTD
{
	position: absolute;
	top: 200px;
	left: 0px;
	z-index: 9999;
}

/*Removes the thin white border around web parts*/
.ms-webpart-chrome
{
	border: 0 !important;
}

/*Reduces the size of images in list views to managable sizes so entries don't become massive*/
.ms-listviewtable tbody .ms-cellstyle.ms-vb2 img
{
	max-width: 150px !important;
	height: auto !important;
}

/*Removes the small margin of the web part chrome, visible even when the chrome is disabled*/
.ms-webpartzone-cell
{
	margin: 0 !important;
}

/*
---------------------------------------------------------------------------------------------------
EDIT MODE
---------------------------------------------------------------------------------------------------
*/

/*Make field labels not hit in hit testing*/
.ms-formfieldlabelcontainer
{
	pointer-events: none;
}

/*
---------------------------------------------------------------------------------------------------
DIALOGS
---------------------------------------------------------------------------------------------------
*/ 

/* Prevent offset on close button */
.ms-dlgTitleBtns *
{
	box-sizing:content-box;
}