1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-31 00:59:51 +02:00

Don't affix the fixed navbars in mobile views

This commit is contained in:
Mark Otto
2013-02-16 00:19:17 -08:00
parent d1aae5f82b
commit f38e50cdf1
3 changed files with 28 additions and 22 deletions

View File

@@ -49,17 +49,11 @@
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; }
@@ -276,6 +270,17 @@
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;