From ef8e5853cbfc4f4babacd3527ab3eb0e4b741acc Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 20 Jun 2013 17:15:09 -0700 Subject: 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. --- less/navbar.less | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'less') diff --git a/less/navbar.less b/less/navbar.less index 59ea92dbd..54f4b75ab 100644 --- a/less/navbar.less +++ b/less/navbar.less @@ -48,6 +48,12 @@ 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%; + } } @@ -296,6 +302,7 @@ &.pull-right { float: right; + width: auto; } } -- cgit v1.2.3