Skip to content

Instantly share code, notes, and snippets.

@renanlara
Created January 21, 2016 16:45
Show Gist options
  • Save renanlara/13c03401e9c790184795 to your computer and use it in GitHub Desktop.
Save renanlara/13c03401e9c790184795 to your computer and use it in GitHub Desktop.
Show in hover navbar dropdown-menu bootstrap
.dropdown {
&:hover {
.dropdown-menu{
display: initial;
visibility: visible;
opacity: 1;
@include transition(0.1s ease-in-out);
}
}
}
.dropdown-menu {
display: initial;
opacity: 0;
visibility: hidden;
@include transition(0.1s ease-in-out);
&.sub-menu {
left: 100%;
position: absolute;
top: 0;
visibility: hidden;
margin-top: -1px;
}
li {
&:hover {
.sub-menu {
visibility: visible;
}
}
}
}
.open > .dropdown-menu {
display: initial;
visibility: visible;
opacity: 1;
@include transition(0.1s ease-in-out);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment