Last active
August 29, 2015 14:06
-
-
Save pburtchaell/d14de27e3113cb06a0f9 to your computer and use it in GitHub Desktop.
Pure CSS nav-toggle icon
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
html { | |
font-size: 17px; | |
} | |
@base: 1rem; | |
.nav-toggle { | |
display: block; | |
position: relative; | |
top: 0; | |
left: 100%; | |
z-index: 999; | |
margin-left: -@base*3; | |
background: @white; | |
height: @base*3; | |
width: @base*3; | |
font-size: 0; | |
&:before { | |
content: ""; | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
margin: -10px 0 0 -((@base*3)/3.14)/2; | |
width: @base*3/3.14; // pi = golden | |
height: 3.2px; | |
color: @dark-grey; | |
border-top: 9px double; | |
border-bottom: 3px solid; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment