-
Notifications
You must be signed in to change notification settings - Fork 312
/
_index.less
113 lines (90 loc) · 2.1 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
// 组件允许单个组件打包,因此默认引入公共基础样式
@import "../../base.less";
@import "./_var.less";
@import "../../utilities/_animation.less";
@import "../../mixins/_reset.less";
.@{prefix}-loading {
.reset;
position: relative;
color: @loading-color;
font-size: @loading-icon-size;
&--lock {
overflow: hidden;
}
&.@{prefix}-size-s {
font-size: @loading-icon-size-small;
}
&.@{prefix}-size-l {
font-size: @loading-icon-size-large;
}
&__parent--relative {
position: relative !important;
}
}
.@{prefix}-loading__fullscreen {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: @z-index-loading;
}
.@{prefix}-loading--center {
display: inline-flex;
align-items: center;
vertical-align: middle;
justify-content: center;
}
.@{prefix}-loading__content {
position: absolute;
left: 48%;
top: 20%;
}
.@{prefix}-loading--inherit-color {
color: inherit;
}
.@{prefix}-loading__parent {
position: relative;
}
.@{prefix}-loading__overlay {
background-color: @loading-mask-color;
}
/** 仅用于作为包裹元素时 */
.@{prefix}-loading--full {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: @z-index-loading;
}
.@{prefix}-loading--hidden {
visibility: hidden;
}
.@{prefix}-loading--visible {
visibility: visible;
}
.@{prefix}-loading__text {
width: auto;
display: inline-block;
vertical-align: middle;
font: @loading-text-size;
margin-left: @loading-text-margin-left;
}
.@{prefix}-loading__gradient {
display: inline-flex;
justify-content: center;
align-items: center;
vertical-align: middle;
&-conic {
width: 100%;
height: 100%;
border-radius: @border-radius-circle;
/* stylelint-disable-next-line color-no-hex */
background: conic-gradient(from 90deg at 50% 50%, #fff 0deg, currentcolor 360deg);
/* stylelint-disable-next-line */
-webkit-mask: radial-gradient(transparent calc(50% ~"-" .5px), #fff 50%);
/* stylelint-disable-next-line color-no-hex */
mask: radial-gradient(transparent calc(50% ~"-" .5px), #fff 50%);
}
}