aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-08-06 17:28:02 -0700
committerMark Otto <[email protected]>2013-08-06 17:28:02 -0700
commitc3ac95333d3c8746e8877ff02cafc41c4a692414 (patch)
tree672b3b6104e03d12e5652b95d3c7e0ba011a9d0d /less
parent223e0321504050d4642c3db2673be0cc7f4df569 (diff)
downloadbootstrap-c3ac95333d3c8746e8877ff02cafc41c4a692414.tar.xz
bootstrap-c3ac95333d3c8746e8877ff02cafc41c4a692414.zip
Fixes #8749: prevent navbar nav from overlapping navbar toggle
Diffstat (limited to 'less')
-rw-r--r--less/navbar.less10
1 files changed, 8 insertions, 2 deletions
diff --git a/less/navbar.less b/less/navbar.less
index 805800cf6..c2872e64a 100644
--- a/less/navbar.less
+++ b/less/navbar.less
@@ -20,8 +20,6 @@
// -------------------------
.navbar-nav {
- // Space out from .navbar .brand and .btn-navbar when stacked in mobile views
- margin-top: 10px;
margin-bottom: 15px;
> li > a {
@@ -93,8 +91,16 @@
padding-bottom: @navbar-padding-vertical;
// Clear floated elements and prevent collapsing of padding
.clearfix();
+
+ // When there is no `.navbar-brand` present (which normally sits between the
+ // navbar brand and toggle), prevent the nav from overlapping the toggle.
+ .navbar-toggle + & {
+ width: 100%;
+ margin-top: @navbar-height;
+ }
}
+
// Scrollable navbar navigation
//
// Sometimes you might have too many links in your fixed navbar and you need to