naive-ui/styles/BaseTrackingRect.scss
songwanli2025@163.com fdf2af8eb5 merge
2020-02-24 16:25:02 +08:00

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;
}
}
}