mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
38 lines
803 B
SCSS
38 lines
803 B
SCSS
@import './mixins/mixins.scss';
|
|
@import './themes/vars.scss';
|
|
|
|
@include themes-mixin {
|
|
@include b(drawer) {
|
|
@include slide-in-from-right-transition($duration: .3s);
|
|
padding: 16px 24px;
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
right: 0;
|
|
background-color: $--n-card-color;
|
|
color: $--n-secondary-text-color;
|
|
transition: background-color .3s $--n-ease-in-out-cubic-bezier, color .3s $--n-ease-in-out-cubic-bezier;
|
|
}
|
|
}
|
|
|
|
@include b(drawer-overlay) {
|
|
@include fade-in-transition(fade-in);
|
|
background-color: rgba(0, 0, 0, .3);
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
}
|
|
|
|
@include b(drawer-container) {
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
visibility: hidden;
|
|
@include m(active) {
|
|
visibility: visible;
|
|
}
|
|
} |