58 lines
1.1 KiB
SCSS
58 lines
1.1 KiB
SCSS
@use '../_styles/_variables.scss' as *;
|
|
|
|
$spin-prefix: #{$prefix}-spin;
|
|
|
|
.#{$spin-prefix} {
|
|
display: inline-block;
|
|
|
|
&-icon {
|
|
color: $primary-color;
|
|
font-size: 16px;
|
|
}
|
|
|
|
&-tip {
|
|
margin-top: 4px;
|
|
font-size: 12px;
|
|
color: $primary-color;
|
|
}
|
|
|
|
&.#{$spin-prefix}-has-tip {
|
|
text-align: center;
|
|
}
|
|
|
|
&.#{$spin-prefix}-loading {
|
|
position: relative;
|
|
user-select: none;
|
|
|
|
.#{$spin-prefix}-mask {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 11;
|
|
text-align: center;
|
|
background-color: $bg-color-mask-spin;
|
|
transition: opacity 0.1s cubic-bezier(0, 0, 1, 1);
|
|
user-select: none;
|
|
|
|
.#{$spin-prefix}-mask-inner {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
z-index: 12;
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.#{$spin-prefix}-horizontal {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px; // 图标和 tip 之间间距
|
|
}
|
|
|
|
.#{$spin-prefix}-vertical {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 4px; // 图标和 tip 之间间距
|
|
}
|