Skip to content

Commit

Permalink
Disables hover for nested menu (cprodhomme#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkeuleya authored and cprodhomme committed Apr 26, 2019
1 parent 086e669 commit c5bf82b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 5 additions & 0 deletions app/assets/javascripts/arctic_admin/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,9 @@ $(function() {
}
}
});

$(document).on('click', '#tabs .has_nested', function(e) {
e.stopPropagation();
$(this).toggleClass('open');
});
});
4 changes: 0 additions & 4 deletions app/assets/stylesheets/arctic_admin/layouts/_sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@
color: $text-color;
}
}

&:hover ul {
display: block;
}

ul {
border-top: 1px solid $sidebar-border-color;
Expand Down

0 comments on commit c5bf82b

Please sign in to comment.