2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-21 13:24:08 +03:00

More navbar tweaks, including making fixed navbars work in the docs by adding padding to body

This commit is contained in:
Mark Otto
2013-01-16 16:20:29 -08:00
parent 9ba14cfb7c
commit 6b193dc22d
3 changed files with 18 additions and 11 deletions
+4
View File
@@ -10,6 +10,7 @@
body {
position: relative; /* For scrollyspy */
padding-top: 62px; /* Default height of navbar */
}
/* */
@@ -197,6 +198,9 @@ section > ul li {
/* Affix all the things, and set widths because they're positioned, depending on viewport size */
@media screen and (min-width: 768px) {
body {
padding-top: 44px;
}
/* From here, start to affix the nav because we keep columns here */
.bs-docs-sidenav.affix {
position: fixed;