2019-09-04 16:06:07 +08:00
|
|
|
@import './mixins/mixins.scss';
|
2020-02-11 14:44:29 +08:00
|
|
|
|
2019-10-22 13:19:12 +08:00
|
|
|
@include themes-mixin {
|
|
|
|
@include b(drawer) {
|
2020-02-24 16:25:02 +08:00
|
|
|
@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;
|
2020-02-08 16:07:25 +08:00
|
|
|
}
|
2020-02-24 16:25:02 +08:00
|
|
|
background-color: $--drawer-background-color;
|
|
|
|
color: $--drawer-text-color;
|
2019-10-22 13:19:12 +08:00
|
|
|
}
|
2019-09-04 16:06:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
@include b(drawer-overlay) {
|
2020-02-11 14:44:29 +08:00
|
|
|
@include fade-in-transition(drawer-overlay, $enter-duration: .3s, $leave-duration: .3s);
|
2019-09-04 16:06:07 +08:00
|
|
|
background-color: rgba(0, 0, 0, .3);
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
2020-02-08 16:07:25 +08:00
|
|
|
pointer-events: all;
|
2019-09-04 16:06:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
@include b(drawer-container) {
|
2020-03-15 22:58:26 +08:00
|
|
|
position: absolute;
|
2019-09-04 16:06:07 +08:00
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
2020-02-08 16:07:25 +08:00
|
|
|
pointer-events: none;
|
2019-09-04 16:06:07 +08:00
|
|
|
}
|