Commit 86fe7d6a authored by Phil Hughes's avatar Phil Hughes

Fixed spacing in mobile secondary nav

Previously the spacing was spread evenly across the width which lead to
some weird spacing issues, more noticeable between the user avatar & the
dropdown caret
parent d4154195
...@@ -261,20 +261,15 @@ header { ...@@ -261,20 +261,15 @@ header {
.navbar-nav { .navbar-nav {
margin: 0; margin: 0;
float: none !important; padding-right: 10px;
text-align: right;
.visible-xs,
.visible-sm {
display: table-cell !important;
}
} }
.navbar-collapse { .navbar-collapse {
padding-left: 5px; padding-left: 5px;
.nav > li { .nav > li {
display: table-cell; display: inline-block;
width: 1%;
} }
} }
} }
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
%ul.nav.navbar-nav %ul.nav.navbar-nav
%li.hidden-sm.hidden-xs %li.hidden-sm.hidden-xs
= render 'layouts/search' unless current_controller?(:search) = render 'layouts/search' unless current_controller?(:search)
%li.visible-sm.visible-xs %li.visible-sm-inline-block.visible-xs-inline-block
= link_to search_path, title: 'Search', aria: { label: "Search" }, data: {toggle: 'tooltip', placement: 'bottom', container: 'body'} do = link_to search_path, title: 'Search', aria: { label: "Search" }, data: {toggle: 'tooltip', placement: 'bottom', container: 'body'} do
= icon('search') = icon('search')
- if current_user - if current_user
......
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