Created
August 10, 2018 01:52
-
-
Save greyscaled/a8ecd61ec0a010f20defff4ac29a61cc to your computer and use it in GitHub Desktop.
This file contains 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
$hamburger-height: 4rem; | |
.navigation { | |
&__cbox { display: none; } | |
&__hamburger-box { | |
width: $hamburger-height; | |
height: $hamburger-height; | |
position: absolute; | |
top: 3rem; | |
left: 3rem; | |
cursor: pointer; | |
text-align: center; | |
z-index: 1000; | |
} | |
&__hamburger { | |
margin-top: calc(#{$hamburger-height} *.5); | |
position: relative; | |
&, | |
&::before, | |
&::after { | |
width: $hamburger-height; | |
height: 2px; | |
display: block; | |
background-color: #FFF; | |
} | |
&::before, | |
&::after { | |
content: ""; | |
position: absolute; | |
} | |
&::before { top: calc(#{$hamburger-height} * -.5);} | |
&::after { top: calc(#{$hamburger-height} * .5); } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment