Skip to content

Instantly share code, notes, and snippets.

@greyscaled
Created August 10, 2018 01:52
Show Gist options
  • Save greyscaled/a8ecd61ec0a010f20defff4ac29a61cc to your computer and use it in GitHub Desktop.
Save greyscaled/a8ecd61ec0a010f20defff4ac29a61cc to your computer and use it in GitHub Desktop.
$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