Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disables hover for nested menu #52

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Disables hover for nested menu
  • Loading branch information
jkeuleya committed Apr 26, 2019
commit 5b1286be661042f6a26d1382fe12bd357cba3e4d
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