Skip to content

Instantly share code, notes, and snippets.

Created January 31, 2018 19:30
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Extends CSS framework's Menu component to make sub-menu items expand and collapse. Requires jQuery and Font Awesome.
$(".is-closed").siblings('a').addClass('menu-has-children has-closed');
$("").on('click', function(){
var firstUL = $(this).siblings('ul');
}); { {
&:after {
font-family: Font Awesome\ 5 Free;
font-weight: 900;
margin-left: 8px;
content: "\f107";
float: right;
&.has-closed:after {
content: "\f105";
&.is-closed {
display: none;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment