-
Notifications
You must be signed in to change notification settings - Fork 138
/
index.less
124 lines (105 loc) 路 2.06 KB
/
index.less
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
@import '../../style/mixins/reset.less';
.@{spin-prefix} {
.reset-component-new();
position: relative;
&-target-container {
user-select: none;
clear: both;
&-relative {
position: relative;
}
&-has-scroll {
> .@{spin-prefix} {
> .@{spin-prefix}-spinner {
position: sticky;
top: 50%;
left: 50%;
}
}
}
> .@{spin-prefix} {
left: 0;
top: 0;
right: 0;
bottom: 0;
position: absolute;
background-color: rgb(255 255 255 / 40%);
pointer-events: auto;
}
}
&-spinner {
.spin-mask();
z-index: 10;
display: flex;
justify-content: center;
align-items: center;
&-tip-vertical {
flex-direction: column;
width: 100%;
text-align: center;
.@{spin-prefix}-spinner-tip {
margin-top: @spacing-sm;
min-height: @height-md;
line-height: @height-md;
}
}
&-tip-horizontal {
.@{spin-prefix}-spinner-tip {
margin-left: @spacing-sm;
}
}
&-icon--rotate {
animation: icon-spinning 1.5s infinite linear;
}
.spin-size(sm);
.spin-size(md);
.spin-size(lg);
&-tip {
color: @spin-tip-color;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
&-icon {
color: @spin-icon-color;
}
}
&-container {
position: relative;
transition: opacity @transition-duration-base;
&-blur {
opacity: 0.3;
user-select: none;
clear: both;
overflow: hidden;
}
}
}
.spin-mask(@position: absolute) {
position: @position;
top: 0;
left: 0;
right: 0;
bottom: 0;
user-select: none;
}
.spin-size(@size) {
&-@{size} {
size: 1em;
.@{spin-prefix}-spinner {
@spin-size: 'spin-icon-size-@{size}';
@font-size: 'spin-font-size-@{size}';
&-icon {
font-size: @@spin-size;
}
&-tip {
.reset-font-size(@@font-size);
}
}
}
}
@keyframes icon-spinning {
100% {
transform: rotate(360deg);
}
}