Skip to content

Instantly share code, notes, and snippets.

@pburtchaell
Last active August 29, 2015 14:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pburtchaell/d14de27e3113cb06a0f9 to your computer and use it in GitHub Desktop.
Save pburtchaell/d14de27e3113cb06a0f9 to your computer and use it in GitHub Desktop.
Pure CSS nav-toggle icon
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