Skip to content

Instantly share code, notes, and snippets.

@cfree
Created May 27, 2015 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cfree/29c03c29044c3e80aeb6 to your computer and use it in GitHub Desktop.
Save cfree/29c03c29044c3e80aeb6 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// libsass (v3.2.4)
// ----
.primary-menu {
font-size: 0.1px;
list-style: none;
margin: 0;
padding: 0;
text-align: justify;
li {
display: inline-block;
margin: 0;
padding: 0;
position: relative;
top: 0;
width: 100%;
&:hover {
top: 0;
.sub-menu {
display: block;
opacity: 1;
z-index: 1;
}
}
&:first-child:hover {
.sub-menu {
left: 0;
margin-left: 0;
}
}
&.current-menu-item a {
&:after {
left: 0;
margin: 0 20%;
width: 60%;
}
&:hover:after {
margin: 0;
width: 100%;
}
}
}
}
.primary-menu {
font-size: 0.1px;
list-style: none;
margin: 0;
padding: 0;
text-align: justify;
}
.primary-menu li {
display: inline-block;
margin: 0;
padding: 0;
position: relative;
top: 0;
width: 100%;
}
.primary-menu li:hover {
top: 0;
}
.primary-menu li:hover .sub-menu {
display: block;
opacity: 1;
z-index: 1;
}
.primary-menu li:first-child:hover .sub-menu {
left: 0;
margin-left: 0;
}
.primary-menu li.current-menu-item a:after {
left: 0;
margin: 0 20%;
width: 60%;
}
.primary-menu li.current-menu-item a:hover:after {
margin: 0;
width: 100%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment