﻿/****************************************************************************
 *
 * This LESS file contains fixes to make Bootstrap 3 play nicely with
 * SharePoint 2010 Publishing pages. It mainly switches SP2010's UI 
 * elements back to the "content-box" box-model. 
 *
 * It also incorporates the CSS portions of Kyle Schaeffer's fixes for
 * scrolling on SP2010. The JS part is called from the master page.
 *
 ****************************************************************************/
/****************************************************************************
 *
 * BEGIN Fixes for scrolling on SP2010
 * See: http://kyleschaeffer.com/sharepoint/sharepoint-2010-scrolling/
 * Note: The JS patch is called from the master page.
 *
 ****************************************************************************/
html {
  min-height: 0;
}
body #s4-ribbonrow {
  position: fixed;
  z-index: 1000;
  /* Override Bootstrap */
}
body #s4-ribbonrow .ms-MenuUIPopupBody,
body #s4-ribbonrow .ms-popoutMenu,
body #s4-ribbonrow .ms-cui-menu[id^="Ribbon."] {
  position: fixed !important;
}
body #s4-workspace {
  overflow: visible !important;
}
body form#aspnetForm {
  height: auto;
}
.navbar-default {
  border-width: 0;
}
.ms-dlgOverlay {
  width: 100% !important;
}
/****************************************************************************
 *
 * END   Fixes for scrolling on SP2010
 *
 ****************************************************************************/
/****************************************************************************
 *
 * BEGIN Sharepoint 2010 Fixes for Bootstrap 3
 *
 ****************************************************************************/
.sbg-contentboxmodel {
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
}
/* Allows the site to be responsive */
body #s4-bodyContainer {
  min-width: 0;
  padding-top:0px;
}
/* Fixes a bit of ribbon breakage */
body #s4-ribbonrow {
  line-height: 1.2;
}
body #s4-ribbonrow .s4-breadcrumb-menu {
  background-color: #FFFFFF;
}
body #s4-ribbonrow a:hover,
body #s4-ribbonrow a:focus,
body #s4-ribbonrow a:active {
  text-decoration: none;
}
/* Fix some text sizing issues with the .ms-dlg modal popup, tooltips and the page status bar */
body {
  /* There are a lot of things in the SP2010 UI that don't like box-sizing: border-box */
  /* Work around an issue in IE10, where drop-down menus blank the screen 
       See http://davemcmahon81.wordpress.com/2012/12/11/sharepoint-2010-ribbon-and-ie10-screen-goes-white/
    */
}
body #pageStatusBar,
body .ms-cui-tooltip {
  line-height: 1.1;
  font-size: 8pt;
}
body .ms-dlgContent {
  line-height: 1.1;
}
body #s4-ribbonrow *,
body #s4-ribbonrow *:before,
body #s4-ribbonrow *:after,
body *[class*='ms-dlg'],
body *[class*='ms-dlg']:before,
body *[class*='ms-dlg']:after,
body .ms-dlgFrameContainer > div,
body .ms-dlgFrameContainer > div:before,
body .ms-dlgFrameContainer > div:after,
body .ms-dlgFrameContainer > div > div,
body .ms-dlgFrameContainer > div > div:before,
body .ms-dlgFrameContainer > div > div:after,
body .ms-MenuUIPopupBody,
body .ms-MenuUIPopupBody:before,
body .ms-MenuUIPopupBody:after,
body .ms-MenuUIPopupBody *,
body .ms-MenuUIPopupBody *:before,
body .ms-MenuUIPopupBody *:after,
body .ms-ToolPaneOuter,
body .ms-ToolPaneOuter:before,
body .ms-ToolPaneOuter:after,
body .ms-ToolPaneOuter *,
body .ms-ToolPaneOuter *:before,
body .ms-ToolPaneOuter *:after,
body *[class*='ms-cui'],
body *[class*='ms-cui']:before,
body *[class*='ms-cui']:after,
body *[class*='ms-cui'] *,
body *[class*='ms-cui'] *:before,
body *[class*='ms-cui'] *:after {
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
}
body .ms-cui-modalDiv-ie,
body .ms-cui-glass-ie {
  background-color: transparent;
}
/* Note I added class="outer" to <div id="MSO_ContentDiv"> in the Master Page */
.outer {
  /* Sort out some font size and face issues (overrides corev4.css:1072) */
  /* Responsive images break the webpart toolpane */
}
.outer .ms-WPBody {
  font-family: inherit;
  font-size: inherit;
}
.outer .ms-ToolPaneOuter img {
  display: inline-block;
  max-width: none;
}
/****************************************************************************
 *
 * END   Sharepoint 2010 Fixes for Bootstrap 3
 *
 ****************************************************************************/

.navbar-collapse.in {
    overflow-y: visible;
}
.ms-dlgContentzzzzz{
	z-index: 999999999;
}
#s4-ribbonrow #s4-ribbonrow{
 display:none;
}