aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-08-06 17:40:33 -0700
committerMark Otto <[email protected]>2013-08-06 17:40:33 -0700
commitab79b4ac2defa9c9d86cc208ee203871f18af642 (patch)
treefddac501b523634e880ea34235a97e0e3df8e2f8 /less
parentf3bf32ffc51c1bafd60f5704a638fc56cf464386 (diff)
parent167753273adbe944fac615025ff52ac89d36221d (diff)
downloadbootstrap-ab79b4ac2defa9c9d86cc208ee203871f18af642.tar.xz
bootstrap-ab79b4ac2defa9c9d86cc208ee203871f18af642.zip
Merge branch '3.0.0-wip' into bs3_third_party_support_docs
Diffstat (limited to 'less')
-rw-r--r--less/navbar.less19
1 files changed, 15 insertions, 4 deletions
diff --git a/less/navbar.less b/less/navbar.less
index 2efc3545b..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 {
@@ -82,14 +80,26 @@
}
.navbar-fixed-top {
top: 0;
- .nav-collapse {
- }
}
.navbar-fixed-bottom {
bottom: 0;
margin-bottom: 0; // override .navbar defaults
}
+.nav-collapse {
+ // Space out collapsed contents within the mobile navbar
+ 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
//
@@ -353,6 +363,7 @@
.nav-collapse.collapse {
display: block !important;
height: auto !important;
+ padding-bottom: 0; // Override default setting
overflow: visible !important;
}