]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix #11513: Don't always float navbar-text
authorJulian Thilo <bigj95t@gmail.com>
Sun, 17 Nov 2013 22:07:28 +0000 (23:07 +0100)
committerJulian Thilo <bigj95t@gmail.com>
Sun, 17 Nov 2013 22:07:28 +0000 (23:07 +0100)
`navbar-text` should only float when the navbar is expanded on larger
screens, otherwise the element might be (hidden) behind `navbar-nav`.
Fixes #11513.
X-Ref: #8820 #8815

less/navbar.less

index 987cde6b05b99d22f2523ae8ffcba8c3c583cf40..21cffc25003a616559d00f180c857c426a89eacb 100644 (file)
 // Add a class to make any element properly align itself vertically within the navbars.
 
 .navbar-text {
-  float: left;
   .navbar-vertical-align(@line-height-computed);
 
   @media (min-width: @grid-float-breakpoint) {
+    float: left;
     margin-left: @navbar-padding-horizontal;
     margin-right: @navbar-padding-horizontal;
   }