aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-02-16 00:19:17 -0800
committerMark Otto <[email protected]>2013-02-16 00:19:17 -0800
commitf38e50cdf146fb99f0f0178e7ea7f636544d7ce2 (patch)
tree6f16ce2401030e82898e8e2f767e25e7509238c8 /less
parentd1aae5f82bade48104da2ade7d94b22881840859 (diff)
downloadbootstrap-f38e50cdf146fb99f0f0178e7ea7f636544d7ce2.tar.xz
bootstrap-f38e50cdf146fb99f0f0178e7ea7f636544d7ce2.zip
Don't affix the fixed navbars in mobile views
Diffstat (limited to 'less')
-rw-r--r--less/navbar.less19
1 files changed, 12 insertions, 7 deletions
diff --git a/less/navbar.less b/less/navbar.less
index c043d8462..b82534e43 100644
--- a/less/navbar.less
+++ b/less/navbar.less
@@ -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;