]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fixes #8154: enforce full width `.navbar-nav.pull-right` in mobile
authorMark Otto <otto@github.com>
Fri, 21 Jun 2013 00:15:09 +0000 (17:15 -0700)
committerMark Otto <otto@github.com>
Fri, 21 Jun 2013 00:15:09 +0000 (17:15 -0700)
Prevents an odd alignment issue in mobile views by forcing the nav
links to be full width without undoing the float.

docs/assets/css/bootstrap.css
less/navbar.less

index 9379177da653a7da259c653e5c5b6da8c490cc17..685e2e98441bd15fc5d49fba01df5fe0e14c6306 100644 (file)
@@ -3481,6 +3481,10 @@ button.close {
   background-color: transparent;
 }
 
+.navbar-nav.pull-right {
+  width: 100%;
+}
+
 .navbar-static-top {
   border-radius: 0;
 }
@@ -3709,6 +3713,7 @@ button.close {
   }
   .navbar-nav.pull-right {
     float: right;
+    width: auto;
   }
   .navbar-toggle {
     position: relative;
index 59ea92dbdad782391085d398664448b9457c1d96..54f4b75ab3a165f7207b44967132fec5039e27c5 100644 (file)
     color: @navbar-link-disabled-color;
     background-color: @navbar-link-disabled-bg;
   }
+
+  // Right aligned contents
+  // Make them full width first so that they align properly on mobile
+  &.pull-right {
+    width: 100%;
+  }
 }
 
 
 
     &.pull-right {
       float: right;
+      width: auto;
     }
   }