File: D:/HostingSpaces/SBogers10/ste.komma.pro/resources/sass/5-Components/_components.hamburger.scss
.c-hamburger {
display: flex;
justify-content: center;
align-self: center;
position: relative;
width: space(6);
height: space(6);
padding: 0;
color: palette(neutral, 0);
background: none;
border: 1px solid palette(neutral, 0);
border-radius: map-get($border-radius, xs) map-get($border-radius, xs) map-get($border-radius, m) map-get($border-radius, xs);
outline: none;
cursor: pointer;
&:focus {
box-shadow: 0 0 3px 2px palette(action);
}
&.is-light {
color: white;
}
& > span{
position: absolute;
top: 24px;
right: space(1);
left: space(1);
height: 2px;
margin-top: -2px;
pointer-events: none;
background: currentColor;
border-radius: 1px;
transform-origin: left;
transition-property: transform;
transition-duration: 150ms;
transition-timing-function: ease-out;
transition-delay: 100ms;
}
& > span:nth-child(1) {
top: 14px;
}
& > span:nth-child(3) {
top: 34px;
transform: scaleX(0.8);
}
&:hover {
& > span {
transform: scaleX(0.9);
}
& > span:nth-child(2) {
transform: scaleX(0.8);
}
& > span:nth-child(3) {
transform: scaleX(0.6);
}
}
.is-overlay-menu-active & {
& > span {
transform: scaleX(1) !important;
}
& > span:nth-child(1) {
transform: translateY(3px) scaleX(1) !important;
transition-delay: 0s;
}
& > span:nth-child(3) {
transform: translateY(-3px) scaleX(1) !important;
transition-delay: 0s;
}
}
}