File: D:/HostingSpaces/SBogers10/base.komma.pro/resources/sass/5-Components/_components.hamburger.scss
.c-hamburger {
display: flex;
justify-content: center;
align-items: center;
align-self: center;
position: relative;
width: space(5);
height: space(5);
padding: 0;
color: palette(neutral, 800);
background: none;
border: none;
outline: none;
cursor: pointer;
&:focus {
box-shadow: 0 0 3px 2px palette(feedback, focus);
}
& > span,
&:after,
&:before {
content: '';
position: absolute;
top: 20px;
right: 20%;
left: 20%;
height: 3px;
margin-top: -2px;
pointer-events: none;
background: currentColor;
border-radius: 3px;
transform-origin: right;
transition-property: transform;
transition-duration: 150ms;
transition-timing-function: ease-out;
transition-delay: 100ms;
}
&:before {
top: 12px;
transform: scaleX(0.8);
}
&:after {
top: 28px;
transform: scaleX(0.5);
}
&:hover {
& > span {
transform: scaleX(0.8);
}
&:after,
&:before {
transform: scaleX(1);
}
}
.is-overlay-menu-active & {
& > span {
transform: scaleX(1) !important;
}
&:before {
transform: translateY(3px) scaleX(1) !important;
transition-delay: 0ms;
}
&:after {
transform: translateY(-3px) scaleX(1) !important;
transition-delay: 0ms;
}
}
}