Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <otto@github.com>2014-03-10 07:45:32 +0400
committerMark Otto <otto@github.com>2014-03-10 07:45:32 +0400
commitb4d66b7f6b8ca49fbf45fccf445910d607969946 (patch)
tree4cddf12596b35d2551466c63db3716886e315fe5 /less/navbar.less
parent1a5fb4ef24f6d1beb71df946fa4781df10eab6e1 (diff)
Fixes #12738
* Removes default max-height from .navbar-collapse (so not every navbar will get a max-height collapse section) * Scopes regular 340px max-height to fixed top and bottom navbars only (those are the only ones that really need a max-height to enable scrolling) * Adds a landscape media query for phones to cap the max-height at 200px for fixed navbars"
Diffstat (limited to 'less/navbar.less')
-rw-r--r--less/navbar.less12
1 files changed, 11 insertions, 1 deletions
diff --git a/less/navbar.less b/less/navbar.less
index 34897e2252..6ddf263568 100644
--- a/less/navbar.less
+++ b/less/navbar.less
@@ -48,7 +48,6 @@
// content for the user's viewport.
.navbar-collapse {
- max-height: @navbar-collapse-max-height;
overflow-x: visible;
padding-right: @navbar-padding-horizontal;
padding-left: @navbar-padding-horizontal;
@@ -88,6 +87,17 @@
}
}
+.navbar-fixed-top,
+.navbar-fixed-bottom {
+ .navbar-collapse {
+ max-height: @navbar-collapse-max-height;
+
+ @media (max-width: @screen-phone) and (orientation: landscape) {
+ max-height: 200px;
+ }
+ }
+}
+
// Both navbar header and collapse
//