Commit 786adab1 authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray

Merge branch 'second-nav-spacing-mobile' into 'master'

Fixed spacing in mobile secondary nav

See merge request !9657
parents 27729aa3 69b6a5a9
...@@ -260,23 +260,33 @@ header { ...@@ -260,23 +260,33 @@ header {
font-size: 18px; font-size: 18px;
.navbar-nav { .navbar-nav {
display: table;
table-layout: fixed;
width: 100%;
margin: 0; margin: 0;
float: none !important; 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:not(.hidden-xs) {
display: table-cell; display: table-cell!important;
width: 1%; width: 25%;
a {
margin-right: 8px;
}
}
} }
} }
.header-user-dropdown-toggle {
text-align: center;
}
.header-user-avatar {
float: none;
} }
} }
......
...@@ -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