2019-09-04 18:48:03 +08:00
|
|
|
@import './mixins/mixins.scss';
|
2020-02-11 14:44:29 +08:00
|
|
|
|
2019-10-08 14:14:30 +08:00
|
|
|
@include themes-mixin {
|
|
|
|
@include b(loading-bar-container) {
|
|
|
|
@include once {
|
2020-02-11 14:44:29 +08:00
|
|
|
@include fade-in-transition(loading-bar-container, .3s, .8s);
|
2020-02-22 20:25:10 +08:00
|
|
|
z-index: 5999;
|
2019-10-08 14:14:30 +08:00
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
height: 2px;
|
2019-09-04 18:48:03 +08:00
|
|
|
}
|
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;
|
|
|
|
}
|
2019-09-04 18:48:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|