anatole-porzh/assets/scss/partials/components/_navbarburger.scss

44 lines
807 B
SCSS
Raw Permalink Normal View History

2025-10-09 10:23:36 +02:00
@use 'modules/color_theme' as color;
@use 'modules/config' as conf;
.navbar-burger {
cursor: pointer;
display: block;
height: 3.25rem;
position: relative;
width: 3.25rem;
margin-left: auto;
padding: 6px;
&__line {
display: block;
height: 1px;
left: calc(50% - 8px);
position: absolute;
transform-origin: center;
transition-duration: 86ms;
transition-property: background-color, opacity, transform;
transition-timing-function: ease-out;
width: 16px;
@include color.themed() {
background-color: color.t('primary');
}
&:nth-child(1) {
top: calc(50% - 6px);
}
&:nth-child(2) {
top: calc(50% - 1px);
}
&:nth-child(3) {
top: calc(50% + 4px);
}
}
@include conf.desktop {
display: none;
}
}