naive-ui/styles/LoadingBar.scss

36 lines
1.1 KiB
SCSS
Raw Normal View History

@import './mixins/mixins.scss';
@import './themes/vars.scss';
2019-10-08 14:14:30 +08:00
@include themes-mixin {
@include b(loading-bar-container) {
@include once {
@include fade-in-transition(fade-in, .3s, .8s);
z-index: 5800;
position: fixed;
top: 0;
left: 0;
right: 0;
height: 2px;
}
2019-10-08 14:14:30 +08:00
@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;
}
}
}
}