mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
60 lines
1.4 KiB
SCSS
60 lines
1.4 KiB
SCSS
@import './mixins/mixins.scss';
|
|
|
|
@include themes-mixin {
|
|
@include b(drawer) {
|
|
@include once {
|
|
@include slide-in-from-right-transition($duration: .3s);
|
|
@include slide-in-from-left-transition($duration: .3s);
|
|
@include slide-in-from-top-transition($duration: .3s);
|
|
@include slide-in-from-bottom-transition($duration: .3s);
|
|
@include m(right-placement) {
|
|
top: 0;
|
|
bottom: 0;
|
|
right: 0;
|
|
}
|
|
@include m(left-placement) {
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
}
|
|
@include m(top-placement) {
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
}
|
|
@include m(bottom-placement) {
|
|
left: 0;
|
|
bottom: 0;
|
|
right: 0;
|
|
}
|
|
padding: 16px 24px;
|
|
position: absolute;
|
|
pointer-events: all;
|
|
transition:
|
|
background-color .3s $--n-ease-in-out-cubic-bezier,
|
|
color .3s $--n-ease-in-out-cubic-bezier;
|
|
}
|
|
background-color: $--drawer-background-color;
|
|
color: $--drawer-text-color;
|
|
}
|
|
}
|
|
|
|
@include b(drawer-overlay) {
|
|
@include fade-in-transition(drawer-overlay, $enter-duration: .3s, $leave-duration: .3s);
|
|
background-color: rgba(0, 0, 0, .3);
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
pointer-events: all;
|
|
}
|
|
|
|
@include b(drawer-container) {
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
pointer-events: none;
|
|
} |