2019-04-30 11:11:25 +08:00
|
|
|
@keyframes rotate {
|
|
|
|
0% {
|
2019-05-15 16:10:20 +08:00
|
|
|
transform: rotate(0deg);
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-04-30 11:11:25 +08:00
|
|
|
100% {
|
2019-05-15 16:10:20 +08:00
|
|
|
transform: rotate(359deg);
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.#{$ns}Spinner-overlay {
|
|
|
|
position: absolute;
|
|
|
|
z-index: 10;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
background: $Spinner-overlay-bg;
|
|
|
|
|
|
|
|
.#{$ns}Spinner {
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
transform: translate3d(-50%, -50%, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
.#{$ns}Spinner--lg {
|
|
|
|
width: $Spinner--lg-width;
|
|
|
|
height: $Spinner--lg-height;
|
|
|
|
line-height: $Spinner--lg-height;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.#{$ns}Spinner {
|
|
|
|
width: $Spinner-width;
|
|
|
|
height: $Spinner-height;
|
|
|
|
transform: translateZ(0);
|
|
|
|
display: inline-block;
|
|
|
|
background: $Spinner-bg;
|
|
|
|
background-size: 100%;
|
|
|
|
|
|
|
|
&--lg {
|
|
|
|
width: $Spinner--lg-width;
|
|
|
|
height: $Spinner--lg-height;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include media-breakpoint-up(md) {
|
2019-05-15 16:10:20 +08:00
|
|
|
.#{$ns}Layout .#{$ns}Page-body > .#{$ns}Spinner-overlay {
|
2019-04-30 11:11:25 +08:00
|
|
|
left: $Layout-aside-width;
|
|
|
|
}
|
|
|
|
|
2019-05-15 16:10:20 +08:00
|
|
|
.#{$ns}Layout--folded .#{$ns}Page-body > .#{$ns}Spinner-overlay {
|
2019-04-30 11:11:25 +08:00
|
|
|
left: $Layout-aside--folded-width;
|
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
}
|