mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-15 04:42:23 +08:00
35 lines
1.1 KiB
SCSS
35 lines
1.1 KiB
SCSS
@import './mixins/mixins.scss';
|
|
|
|
@include themes-mixin {
|
|
@include b(loading-bar-container) {
|
|
@include once {
|
|
@include fade-in-transition(loading-bar-container, .3s, .8s);
|
|
z-index: 5800;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 2px;
|
|
}
|
|
@include b(loading-bar) {
|
|
@include once {
|
|
width: 100%;
|
|
transition: max-width 4s linear, background-color .2s linear;
|
|
max-width: 0;
|
|
}
|
|
height: $--loading-bar-height;
|
|
@include m(starting) {
|
|
background-color: map-get($map: $--loading-bar-background-color, $key: 'loading');
|
|
transition: max-width 4s linear, background-color .2s linear;
|
|
}
|
|
@include m(finishing) {
|
|
background-color: map-get($map: $--loading-bar-background-color, $key: 'loading');
|
|
transition: max-width .2s linear, background-color .2s linear;
|
|
}
|
|
@include m(error) {
|
|
background-color: map-get($map: $--loading-bar-background-color, $key: 'error');
|
|
transition: max-width .2s linear, background-color .2s linear;
|
|
}
|
|
}
|
|
}
|
|
} |