Created
May 27, 2015 16:35
-
-
Save cfree/29c03c29044c3e80aeb6 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// 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%; | |
} | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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