naive-ui/styles/BaseTrackingRect.scss

38 lines
1.1 KiB
SCSS
Raw Normal View History

@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;
2020-02-21 16:48:45 +08:00
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 {
2020-02-21 16:48:45 +08:00
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 {
2020-02-21 16:48:45 +08:00
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;
}
}
2020-02-21 16:48:45 +08:00
background-color: $--base-tracking-rect-background-color;
}
}
}