Skip to content

Instantly share code, notes, and snippets.

@stepanselyuk
Created April 22, 2014 19:15
Show Gist options
  • Save stepanselyuk/11190934 to your computer and use it in GitHub Desktop.
Save stepanselyuk/11190934 to your computer and use it in GitHub Desktop.
.dropdown-submenu {
position: relative;
& > .dropdown-menu {
top: 0;
left: 100%;
margin-top: -6px;
margin-left: -1px;
-webkit-border-radius: 0 6px 6px 6px;
-moz-border-radius: 0 6px 6px 6px;
border-radius: 0 6px 6px 6px;
}
&:hover > .dropdown-menu {
display: block;
}
& > a:after {
display: block;
content: " ";
float: right;
width: 0;
height: 0;
border: 5px solid transparent;
border-right-width: 0;
border-left-color: #cccccc;
margin-top: 5px;
margin-right: -10px;
}
&:hover > a:after {
border-left-color: #ffffff;
}
&.pull-left {
float: none;
}
&.pull-left > .dropdown-menu {
left: -100%;
margin-left: 10px;
-webkit-border-radius: 6px 0 6px 6px;
-moz-border-radius: 6px 0 6px 6px;
border-radius: 6px 0 6px 6px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment