Merge branch 'second-nav-spacing-mobile' into 'master'
Fixed spacing in mobile secondary nav See merge request !9657
This commit is contained in:
commit
786adab14c
2 changed files with 20 additions and 10 deletions
|
@ -260,24 +260,34 @@ header {
|
|||
font-size: 18px;
|
||||
|
||||
.navbar-nav {
|
||||
display: table;
|
||||
table-layout: fixed;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
float: none !important;
|
||||
|
||||
.visible-xs,
|
||||
.visible-sm {
|
||||
display: table-cell !important;
|
||||
}
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.navbar-collapse {
|
||||
padding-left: 5px;
|
||||
|
||||
.nav > li {
|
||||
display: table-cell;
|
||||
width: 1%;
|
||||
.nav > li:not(.hidden-xs) {
|
||||
display: table-cell!important;
|
||||
width: 25%;
|
||||
|
||||
a {
|
||||
margin-right: 8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.header-user-dropdown-toggle {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.header-user-avatar {
|
||||
float: none;
|
||||
}
|
||||
}
|
||||
|
||||
.header-user {
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
%ul.nav.navbar-nav
|
||||
%li.hidden-sm.hidden-xs
|
||||
= 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
|
||||
= icon('search')
|
||||
- if current_user
|
||||
|
|
Loading…
Reference in a new issue