naive-ui/styles/LoadingBar.scss

31 lines
825 B
SCSS
Raw Normal View History

@import './mixins/mixins.scss';
@import './themes/vars.scss';
@include b(loading-bar-container) {
2019-09-06 16:15:19 +08:00
@include fade-in-transition(fade-in, .3s, .8s);
z-index: 5000;
position: fixed;
top: 0;
left: 0;
right: 0;
height: 2px;
@include b(loading-bar) {
background-color: $main-color;
width: 100%;
height: 2px;
transition: max-width 4s linear, background-color .2s linear;
max-width: 0;
@include m(starting) {
background-color: $main-color;
transition: max-width 4s linear, background-color .2s linear;
}
@include m(finishing) {
background-color: $main-color;
transition: max-width .2s linear, background-color .2s linear;
}
@include m(error) {
background-color: red;
transition: max-width .2s linear, background-color .2s linear;
}
}
}