Skip to content
Snippets Groups Projects
Verified Commit 01f6ae23 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

improve navbar collapse for mobile views

parent a74dfa6e
No related branches found
No related tags found
No related merge requests found
Loading
@@ -177,6 +177,10 @@ $ ->
Loading
@@ -177,6 +177,10 @@ $ ->
$(@).next('table').show() $(@).next('table').show()
$(@).remove() $(@).remove()
   
$('.navbar-toggle').on 'click', ->
$('.header-content .title').toggle()
$('.header-content .navbar-collapse').toggle()
# Show/hide comments on diff # Show/hide comments on diff
$("body").on "click", ".js-toggle-diff-comments", (e) -> $("body").on "click", ".js-toggle-diff-comments", (e) ->
$(@).toggleClass('active') $(@).toggleClass('active')
Loading
Loading
Loading
@@ -42,15 +42,12 @@ header {
Loading
@@ -42,15 +42,12 @@ header {
} }
} }
   
.nav {
float: right;
margin-right: 0;
}
.navbar-toggle { .navbar-toggle {
color: #666; color: #666;
margin: 0; margin: 0;
border-radius: 0; border-radius: 0;
position: absolute;
right: 2px;
   
&:hover { &:hover {
background-color: #EEE; background-color: #EEE;
Loading
@@ -195,7 +192,8 @@ header {
Loading
@@ -195,7 +192,8 @@ header {
} }
   
.navbar-nav { .navbar-nav {
margin: 5px 0; margin: 0px;
float: none !important;
   
.visible-xs, .visable-sm { .visible-xs, .visable-sm {
display: table-cell !important; display: table-cell !important;
Loading
@@ -205,11 +203,6 @@ header {
Loading
@@ -205,11 +203,6 @@ header {
li { li {
display: table-cell; display: table-cell;
width: 1%; width: 1%;
a {
text-align: center;
font-size: 18px !important;
}
} }
} }
} }
Loading
@@ -8,12 +8,12 @@
Loading
@@ -8,12 +8,12 @@
%h1.title %h1.title
= title = title
   
%button.navbar-toggle{type: 'button', data: {target: '.navbar-collapse', toggle: 'collapse'}} %button.navbar-toggle
%span.sr-only Toggle navigation %span.sr-only Toggle navigation
= icon('bars') = icon('bars')
   
.navbar-collapse.collapse .navbar-collapse.collapse
%ul.nav.navbar-nav %ul.nav.navbar-nav.pull-right
%li.hidden-sm.hidden-xs %li.hidden-sm.hidden-xs
= render 'layouts/search' = render 'layouts/search'
%li.visible-sm.visible-xs %li.visible-sm.visible-xs
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment