2019-09-04 16:06:07 +08:00
|
|
|
@import './mixins/mixins.scss';
|
2020-02-11 14:44:29 +08:00
|
|
|
|
2019-12-09 18:09:07 +08:00
|
|
|
@include themes-mixin {
|
|
|
|
@include once {
|
|
|
|
@include b(spin) {
|
|
|
|
display: inline-block;
|
|
|
|
@include m(in-small-size) {
|
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
|
|
|
}
|
|
|
|
@include m(in-medium-size) {
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
}
|
|
|
|
@include m(in-large-size) {
|
|
|
|
width: 18px;
|
|
|
|
height: 18px;
|
|
|
|
}
|
|
|
|
@include m(small-size) {
|
|
|
|
width: 28px;
|
|
|
|
height: 28px;
|
|
|
|
}
|
|
|
|
@include m(medium-size) {
|
|
|
|
width: 34px;
|
|
|
|
height: 34px;
|
|
|
|
}
|
|
|
|
@include m(large-size) {
|
|
|
|
width: 40px;
|
|
|
|
height: 40px;
|
|
|
|
}
|
2019-09-04 16:06:07 +08:00
|
|
|
}
|
2020-02-21 14:59:17 +08:00
|
|
|
}
|
|
|
|
@include b(spin-container) {
|
|
|
|
@include once {
|
2019-12-09 18:09:07 +08:00
|
|
|
position: relative;
|
|
|
|
@include b(spin) {
|
2020-02-11 14:44:29 +08:00
|
|
|
@include fade-in-transition(spin);
|
2019-12-09 18:09:07 +08:00
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
transform: translateX(-50%) translateY(-50%);
|
|
|
|
}
|
|
|
|
@include b(spin-content) {
|
|
|
|
opacity: 1;
|
2020-02-21 14:59:17 +08:00
|
|
|
transition: opacity .3s $--n-ease-in-out-cubic-bezier;
|
2020-02-03 02:42:37 +08:00
|
|
|
pointer-events: all;
|
2019-12-09 18:09:07 +08:00
|
|
|
@include m(spinning) {
|
2020-02-03 02:42:37 +08:00
|
|
|
pointer-events: none;
|
2019-12-09 18:09:07 +08:00
|
|
|
}
|
|
|
|
}
|
2020-02-21 14:59:17 +08:00
|
|
|
}
|
|
|
|
@include b(spin-content) {
|
|
|
|
@include m(spinning) {
|
|
|
|
opacity: $--spin-spinning-opacity;
|
|
|
|
}
|
|
|
|
}
|
2019-09-04 16:06:07 +08:00
|
|
|
}
|
2019-12-09 18:09:07 +08:00
|
|
|
}
|