Commit ef8e5853 authored by Mark Otto's avatar Mark Otto

Fixes #8154: enforce full width `.navbar-nav.pull-right` in mobile

Prevents an odd alignment issue in mobile views by forcing the nav
links to be full width without undoing the float.
parent 82f9de94
...@@ -3481,6 +3481,10 @@ button.close { ...@@ -3481,6 +3481,10 @@ button.close {
background-color: transparent; background-color: transparent;
} }
.navbar-nav.pull-right {
width: 100%;
}
.navbar-static-top { .navbar-static-top {
border-radius: 0; border-radius: 0;
} }
...@@ -3709,6 +3713,7 @@ button.close { ...@@ -3709,6 +3713,7 @@ button.close {
} }
.navbar-nav.pull-right { .navbar-nav.pull-right {
float: right; float: right;
width: auto;
} }
.navbar-toggle { .navbar-toggle {
position: relative; position: relative;
......
...@@ -48,6 +48,12 @@ ...@@ -48,6 +48,12 @@
color: @navbar-link-disabled-color; color: @navbar-link-disabled-color;
background-color: @navbar-link-disabled-bg; 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%;
}
} }
...@@ -296,6 +302,7 @@ ...@@ -296,6 +302,7 @@
&.pull-right { &.pull-right {
float: right; float: right;
width: auto;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment