body {
position: relative; /* For scrollyspy */
- padding-top: 62px; /* Default height of navbar */
+ /* We add the padding to the body for >768px only */
}
/* */
/* Tablets and up */
@media screen and (min-width: 768px) {
- /* Account for fixed navbar */
+ /* Account for fixed navbar (which is static to start) */
body {
- padding-top: 50px;
+ padding-top: 62px; /* Default height of navbar */
}
/* Tweak display of docs jumbotrons */
border-radius: 0;
}
-// Fixed navbar
+// Fixed navbars aren't fixed to start; that comes at >768px
.navbar-fixed-top,
.navbar-fixed-bottom {
- position: fixed;
- right: 0;
- left: 0;
- z-index: @zindex-navbar-fixed;
border-radius: 0;
}
-.navbar-fixed-top { top: 0; }
-.navbar-fixed-bottom { bottom: 0; }
border-right-color: lighten(@navbar-inverse-bg, 5%);
}
+ // Fix the top/bottom navbars when screen real estate supports it
+ .navbar-fixed-top,
+ .navbar-fixed-bottom {
+ position: fixed;
+ right: 0;
+ left: 0;
+ z-index: @zindex-navbar-fixed;
+ }
+ .navbar-fixed-top { top: 0; }
+ .navbar-fixed-bottom { bottom: 0; }
+
// Required to make the collapsing navbar work on regular desktops
.navbar .btn-navbar {
display: none;