mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
38 lines
1.1 KiB
SCSS
38 lines
1.1 KiB
SCSS
@import './mixins/mixins.scss';
|
|
|
|
@include themes-mixin {
|
|
@include b(base-tracking-rect) {
|
|
@include once {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
height: 0;
|
|
}
|
|
@include e(body) {
|
|
@include once {
|
|
position: absolute;
|
|
right: 0;
|
|
left: 0;
|
|
transition:
|
|
background-color .3s $--n-ease-in-out-cubic-bezier,
|
|
top .3s $--n-ease-in-out-cubic-bezier!important;
|
|
&.#{block()}-transition-enter, &.#{block()}-transition-leave-to {
|
|
opacity: 0;
|
|
}
|
|
&.#{block()}-transition-enter-active {
|
|
transition:
|
|
background-color .3s $--n-ease-in-out-cubic-bezier,
|
|
opacity .15s $--n-ease-out-cubic-bezier,
|
|
top .3s $--n-ease-in-out-cubic-bezier!important;
|
|
}
|
|
&.#{block()}-transition-leave-active {
|
|
transition:
|
|
background-color .3s $--n-ease-in-out-cubic-bezier,
|
|
opacity .15s $--n-ease-in-cubic-bezier,
|
|
top .3s $--n-ease-in-out-cubic-bezier!important;
|
|
}
|
|
}
|
|
background-color: $--base-tracking-rect-background-color;
|
|
}
|
|
}
|
|
} |