element-plus/docs/.vitepress/vitepress/styles/common/hamburger.scss
云游君 8583c70fdc
feat(theme-chalk): use @use instead of @import & remove /**/ comment (#3696)
* feat(theme-chalk): use @use instead of @import & remove /**/ comment

* refactor(theme-chalk): refactor scss with @use module

* fix(docs): scss in docs toggle to '@use'

* docs: add custom theme on demand

* docs: add unplugin-element-plus
2021-09-28 20:42:12 +08:00

52 lines
899 B
SCSS

@use '../mixins' as *;
.menu-hamburger {
width: 20px;
display: flex;
flex-direction: column;
cursor: pointer;
justify-content: center;
height: var(--nav-height);
margin: 0 8px;
> span {
background-color: var(--text-color);
border-radius: 10px;
height: 2px;
margin: 2px 0;
transition: var(--el-transition-all);
width: 100%;
&.hamburger {
&-1 {
width: 50%;
}
&-3 {
width: 75%;
}
}
}
&.active {
.hamburger {
&-1 {
transform-origin: bottom;
transform: rotatez(45deg) translate(13px, 0px);
}
&-2 {
transform-origin: top;
transform: rotatez(-45deg);
}
&-3 {
transform-origin: bottom;
width: 50%;
transform: translate(2px, -10px) rotatez(45deg);
}
}
}
@include respond-to('md') {
display: none;
}
}