Skip to content

Instantly share code, notes, and snippets.

@n1crack
Forked from keevitaja/dropdown.scss
Last active November 17, 2018 16:43
Show Gist options
  • Save n1crack/4a1b5c444f8ec1993d7d52386e53b64b to your computer and use it in GitHub Desktop.
Save n1crack/4a1b5c444f8ec1993d7d52386e53b64b to your computer and use it in GitHub Desktop.
nav dropdown #bulma
.has-dropdown {
display: relative;
.dropdown {
display: none;
position: absolute;
background-color: $white-bis;
padding: 14px;
border: 1px solid $grey-lighter;
border-radius: $radius;
margin-right: 0;
margin-left: 12px;
a {
display: block;
text-align: left;
color: $text-light;
&:hover {
color: $text-strong;
}
}
}
a.nav-item {
height: 52px;
}
&:hover .dropdown {
display: block;
}
&.is-rtl {
direction: rtl;
.dropdown {
margin-right: 12px;
margin-left: 0;
a {
text-align: right;
}
}
}
}
// <div class="nav-right nav-menu">
// <div class="has-dropdown is-rtl">
// <a class="nav-item" href="#">Admin</a>
// <div class="dropdown">
// <a href="#">Accounts</a>
// <a href="#">Projects</a>
// <a href="#">Users</a>
// </div>
// </div>
// </div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment