@fjyueke/arco-mcp 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +113 -1
- package/metaData/components/action-sheet/style.md +57 -0
- package/metaData/components/avatar/style.md +147 -0
- package/metaData/components/badge/style.md +74 -0
- package/metaData/components/button/style.md +151 -0
- package/metaData/components/carousel/style.md +208 -0
- package/metaData/components/cell/style.md +123 -0
- package/metaData/components/checkbox/style.md +62 -0
- package/metaData/components/circle-progress/style.md +52 -0
- package/metaData/components/collapse/style.md +53 -0
- package/metaData/components/context-provider/style.md +1 -0
- package/metaData/components/count-down/style.md +7 -0
- package/metaData/components/date-picker/style.md +27 -0
- package/metaData/components/dialog/style.md +271 -0
- package/metaData/components/divider/style.md +68 -0
- package/metaData/components/dropdown/style.md +108 -0
- package/metaData/components/dropdown-menu/style.md +60 -0
- package/metaData/components/ellipsis/style.md +31 -0
- package/metaData/components/form/style.md +105 -0
- package/metaData/components/grid/style.md +109 -0
- package/metaData/components/image/style.md +144 -0
- package/metaData/components/image-picker/style.md +116 -0
- package/metaData/components/image-preview/style.md +103 -0
- package/metaData/components/index-bar/style.md +122 -0
- package/metaData/components/input/style.md +108 -0
- package/metaData/components/keyboard/style.md +80 -0
- package/metaData/components/load-more/style.md +7 -0
- package/metaData/components/loading/style.md +102 -0
- package/metaData/components/masking/style.md +30 -0
- package/metaData/components/nav-bar/style.md +112 -0
- package/metaData/components/notice-bar/style.md +124 -0
- package/metaData/components/notify/style.md +40 -0
- package/metaData/components/pagination/style.md +105 -0
- package/metaData/components/picker/style.md +46 -0
- package/metaData/components/picker-view/style.md +75 -0
- package/metaData/components/popover/style.md +226 -0
- package/metaData/components/popup/style.md +115 -0
- package/metaData/components/popup-swiper/style.md +10 -0
- package/metaData/components/portal/style.md +1 -0
- package/metaData/components/progress/style.md +114 -0
- package/metaData/components/pull-refresh/style.md +86 -0
- package/metaData/components/radio/style.md +57 -0
- package/metaData/components/rate/style.md +63 -0
- package/metaData/components/search-bar/style.md +115 -0
- package/metaData/components/show-monitor/style.md +1 -0
- package/metaData/components/skeleton/style.md +147 -0
- package/metaData/components/slider/style.md +292 -0
- package/metaData/components/stepper/style.md +85 -0
- package/metaData/components/steps/style.md +304 -0
- package/metaData/components/sticky/style.md +5 -0
- package/metaData/components/swipe-action/style.md +89 -0
- package/metaData/components/swipe-load/style.md +29 -0
- package/metaData/components/switch/style.md +158 -0
- package/metaData/components/tab-bar/style.md +57 -0
- package/metaData/components/tabs/style.md +436 -0
- package/metaData/components/tag/style.md +133 -0
- package/metaData/components/textarea/style.md +37 -0
- package/metaData/components/toast/style.md +93 -0
- package/metaData/components/transition/style.md +28 -0
- package/metaData/components/uploader/style.md +86 -0
- package/metaData/tokens.json +2358 -0
- package/package.json +1 -1
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
@import '../../../style/mixin.less';
|
|
2
|
+
|
|
3
|
+
.@{prefix}-steps {
|
|
4
|
+
display: flex;
|
|
5
|
+
.use-var(padding, steps-padding);
|
|
6
|
+
|
|
7
|
+
&.reverse-order {
|
|
8
|
+
flex-direction: row-reverse;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&-item {
|
|
12
|
+
position: relative;
|
|
13
|
+
display: flex;
|
|
14
|
+
flex: 1;
|
|
15
|
+
|
|
16
|
+
&.horizontal {
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&-align-center {
|
|
21
|
+
align-items: center;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&-align-start {
|
|
25
|
+
align-items: flex-start;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&-align-center.vertical {
|
|
29
|
+
.use-var(padding-bottom, steps-vertical-content-padding-bottom);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:first-child &-tail::before,
|
|
33
|
+
&:last-child &-tail::after {
|
|
34
|
+
visibility: hidden;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:first-child &-tail::after,
|
|
38
|
+
&:last-child &-tail::before {
|
|
39
|
+
.reverse-order & {
|
|
40
|
+
visibility: hidden;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&:first-child &-tail::before,
|
|
45
|
+
&:last-child &-tail::after {
|
|
46
|
+
.reverse-order & {
|
|
47
|
+
visibility: visible;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&-tail {
|
|
52
|
+
position: absolute;
|
|
53
|
+
display: flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
|
|
57
|
+
.horizontal & {
|
|
58
|
+
width: 100%;
|
|
59
|
+
.use-var(height, steps-icon-height);
|
|
60
|
+
|
|
61
|
+
&::before,
|
|
62
|
+
&::after {
|
|
63
|
+
.use-var(height, steps-tail-standard-size);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&-align-start {
|
|
67
|
+
.use-var-with-rtl(left, steps-tail-horizontal-left);
|
|
68
|
+
.use-var(padding, steps-tail-horizontal-padding);
|
|
69
|
+
|
|
70
|
+
&::after {
|
|
71
|
+
content: '';
|
|
72
|
+
width: 100%;
|
|
73
|
+
.use-var(border-radius, steps-tail-border-radius);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&-align-center {
|
|
78
|
+
&::before,
|
|
79
|
+
&::after {
|
|
80
|
+
content: '';
|
|
81
|
+
width: 50%;
|
|
82
|
+
}
|
|
83
|
+
&::before {
|
|
84
|
+
.use-var-with-rtl(margin-right, steps-tail-horizontal-gutter);
|
|
85
|
+
.use-var-with-rtl(border-top-right-radius, steps-tail-border-radius);
|
|
86
|
+
.use-var-with-rtl(border-bottom-right-radius, steps-tail-border-radius);
|
|
87
|
+
}
|
|
88
|
+
&::after {
|
|
89
|
+
.use-var-with-rtl(margin-left, steps-tail-horizontal-gutter);
|
|
90
|
+
.use-var-with-rtl(border-top-left-radius, steps-tail-border-radius);
|
|
91
|
+
.use-var-with-rtl(border-bottom-left-radius, steps-tail-border-radius);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.vertical & {
|
|
97
|
+
height: 100%;
|
|
98
|
+
.use-var(width, steps-icon-width);
|
|
99
|
+
flex-direction: column;
|
|
100
|
+
|
|
101
|
+
&::before,
|
|
102
|
+
&::after {
|
|
103
|
+
.use-var(width, steps-tail-standard-size);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&-align-start {
|
|
107
|
+
.use-var(top, steps-tail-vertical-top);
|
|
108
|
+
.use-var(padding, steps-tail-vertical-padding);
|
|
109
|
+
|
|
110
|
+
&::after {
|
|
111
|
+
content: '';
|
|
112
|
+
height: 100%;
|
|
113
|
+
.use-var(border-radius, steps-tail-border-radius);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&-align-center {
|
|
118
|
+
&::before,
|
|
119
|
+
&::after {
|
|
120
|
+
content: '';
|
|
121
|
+
height: 50%;
|
|
122
|
+
}
|
|
123
|
+
&::before {
|
|
124
|
+
.use-var(margin-bottom, steps-tail-vertical-gutter);
|
|
125
|
+
.use-var(border-bottom-left-radius, steps-tail-border-radius);
|
|
126
|
+
.use-var(border-bottom-right-radius, steps-tail-border-radius);
|
|
127
|
+
}
|
|
128
|
+
&::after {
|
|
129
|
+
.use-var(margin-top, steps-tail-vertical-gutter);
|
|
130
|
+
.use-var(border-top-left-radius, steps-tail-border-radius);
|
|
131
|
+
.use-var(border-top-right-radius, steps-tail-border-radius);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&::after,
|
|
137
|
+
&::before {
|
|
138
|
+
display: inline-block;
|
|
139
|
+
.use-var(background, steps-tail-standard-background);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&-status-finish::before,
|
|
143
|
+
&-status-finish::after,
|
|
144
|
+
&-align-center&-status-process::before,
|
|
145
|
+
&-align-center&-status-error::before {
|
|
146
|
+
.use-var(background, steps-tail-finish-background);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&-status-finish::before,
|
|
150
|
+
&-status-process::after,
|
|
151
|
+
&-align-center&-status-error::after {
|
|
152
|
+
.reverse-order & {
|
|
153
|
+
.use-var(background, steps-tail-finish-background);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
&-status-process::before,
|
|
157
|
+
&-align-center&-status-error::before {
|
|
158
|
+
.reverse-order & {
|
|
159
|
+
.use-var(background, steps-tail-standard-background);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
&-custom-icon,
|
|
165
|
+
&-icon {
|
|
166
|
+
display: inline-flex;
|
|
167
|
+
align-items: center;
|
|
168
|
+
justify-content: center;
|
|
169
|
+
.use-var(width, steps-icon-width);
|
|
170
|
+
.use-var(height, steps-icon-height);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&-icon {
|
|
174
|
+
border-radius: 50%;
|
|
175
|
+
|
|
176
|
+
.number.finish & {
|
|
177
|
+
.use-var(background, steps-finish-icon-num-background);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.number.process & {
|
|
181
|
+
.use-var(background, steps-process-icon-num-background);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.number.wait & {
|
|
185
|
+
.use-var(background, steps-wait-icon-num-background);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.number.error & {
|
|
189
|
+
.use-var(background, steps-error-icon-num-background);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
svg {
|
|
193
|
+
.use-var(font-size, steps-icon-svg-standard-font-size);
|
|
194
|
+
|
|
195
|
+
.finish & {
|
|
196
|
+
.use-var(color, steps-finish-icon-svg-color);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.error & {
|
|
200
|
+
.use-var(color, steps-error-icon-svg-color);
|
|
201
|
+
.use-var(font-size, steps-error-icon-svg-font-size);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
&-num {
|
|
206
|
+
.use-var(font-size, steps-icon-num-font-size);
|
|
207
|
+
.use-var(line-height, steps-icon-num-line-height);
|
|
208
|
+
.use-var(color, steps-icon-num-color);
|
|
209
|
+
.text-medium();
|
|
210
|
+
|
|
211
|
+
.process & {
|
|
212
|
+
.use-var(color, steps-process-icon-num-color);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
&-dot {
|
|
217
|
+
position: relative;
|
|
218
|
+
display: inline-block;
|
|
219
|
+
.use-var(width, steps-dot-width);
|
|
220
|
+
.use-var(height, steps-dot-height);
|
|
221
|
+
border-radius: 50%;
|
|
222
|
+
.use-var(border-width, steps-dot-border-width);
|
|
223
|
+
border-style: solid;
|
|
224
|
+
|
|
225
|
+
.finish & {
|
|
226
|
+
.use-var(border-color, steps-finish-dot-border-color);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.wait & {
|
|
230
|
+
.use-var(border-color, steps-wait-dot-border-color);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.process & {
|
|
234
|
+
border: none;
|
|
235
|
+
.use-var(background, steps-process-dot-background);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
&-content {
|
|
241
|
+
.horizontal & {
|
|
242
|
+
.use-var(margin-top, steps-horizontal-content-margin-top);
|
|
243
|
+
&-align-center {
|
|
244
|
+
text-align: center;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.vertical & {
|
|
249
|
+
.use-var-with-rtl(margin-left, steps-vertical-content-margin-left);
|
|
250
|
+
flex: 1;
|
|
251
|
+
|
|
252
|
+
&-align-start {
|
|
253
|
+
.use-var(padding-bottom, steps-vertical-content-padding-bottom);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
&-title {
|
|
259
|
+
.use-var(font-size, steps-title-font-size);
|
|
260
|
+
.use-var(line-height, steps-title-line-height);
|
|
261
|
+
|
|
262
|
+
.finish & {
|
|
263
|
+
.use-var(color, steps-finish-title-color);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.error & {
|
|
267
|
+
.use-var(color, steps-error-title-color);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.process & {
|
|
271
|
+
.use-var(color, steps-process-title-color);
|
|
272
|
+
font-weight: 500;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.wait & {
|
|
276
|
+
.use-var(color, steps-wait-title-color);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
&-description {
|
|
281
|
+
.use-var(font-size, steps-description-font-size);
|
|
282
|
+
.use-var(line-height, steps-description-line-height);
|
|
283
|
+
.use-var(color, steps-description-color);
|
|
284
|
+
|
|
285
|
+
.wait & {
|
|
286
|
+
.use-var(color, steps-wait-description-color);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.vertical & {
|
|
290
|
+
.use-var(margin-top, steps-description-margin-top);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
&.vertical {
|
|
296
|
+
&.reverse-order {
|
|
297
|
+
flex-direction: column-reverse;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
flex-direction: column;
|
|
301
|
+
.use-var(padding-bottom, steps-vertical-padding-bottom);
|
|
302
|
+
.use-var-with-rtl(padding-left, steps-vertical-padding-left);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
@import '../../../style/mixin.less';
|
|
2
|
+
|
|
3
|
+
.@{prefix}-swipe-action {
|
|
4
|
+
position: relative;
|
|
5
|
+
transition: transform 0s;
|
|
6
|
+
.use-var(font-size,swipe-action-text-font-size);
|
|
7
|
+
|
|
8
|
+
&, &-menu {
|
|
9
|
+
&.action-open {
|
|
10
|
+
.use-var(transition-timing-function, swipe-action-open-transition);
|
|
11
|
+
}
|
|
12
|
+
&.action-close {
|
|
13
|
+
.use-var(transition-timing-function, swipe-action-close-transition);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&-content {
|
|
18
|
+
width: 100%;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&-menu {
|
|
22
|
+
display: flex;
|
|
23
|
+
position: absolute;
|
|
24
|
+
height: 100%;
|
|
25
|
+
overflow: visible;
|
|
26
|
+
flex-wrap: nowrap;
|
|
27
|
+
top: 0;
|
|
28
|
+
transition: width 0s;
|
|
29
|
+
|
|
30
|
+
&-left {
|
|
31
|
+
right: 100%;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&-right {
|
|
35
|
+
left: 100%;
|
|
36
|
+
}
|
|
37
|
+
&-action {
|
|
38
|
+
&-left {
|
|
39
|
+
&::after {
|
|
40
|
+
right: 100%;
|
|
41
|
+
margin-right: -1PX;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
&-right {
|
|
45
|
+
&::after {
|
|
46
|
+
left: 100%;
|
|
47
|
+
margin-left: -1PX;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
&-info {
|
|
51
|
+
height: 100%;
|
|
52
|
+
.use-var(padding, swipe-action-info-padding);
|
|
53
|
+
display: flex;
|
|
54
|
+
justify-content: center;
|
|
55
|
+
align-items: center;
|
|
56
|
+
|
|
57
|
+
&-container {
|
|
58
|
+
position: relative;
|
|
59
|
+
&.open-style-layer {
|
|
60
|
+
position: absolute;
|
|
61
|
+
height: 100%;
|
|
62
|
+
}
|
|
63
|
+
&::after {
|
|
64
|
+
content: " ";
|
|
65
|
+
position: absolute;
|
|
66
|
+
top: 0;
|
|
67
|
+
height: 100%;
|
|
68
|
+
.use-var(width, swipe-action-info-bounce-buffer);
|
|
69
|
+
background: inherit;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&-text {
|
|
74
|
+
white-space: nowrap;
|
|
75
|
+
.use-var(font-size,swipe-action-text-font-size);
|
|
76
|
+
.use-var(line-height,swipe-action-text-line-height);
|
|
77
|
+
.use-var(color, swipe-action-text-color);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&-icon {
|
|
81
|
+
.use-var(margin-right,swipe-action-icon-margin-right);
|
|
82
|
+
.use-var(height, swipe-action-icon-height);
|
|
83
|
+
.use-var(width, swipe-action-icon-width);
|
|
84
|
+
.use-var(color, swipe-action-text-color);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@import "../../../style/mixin.less";
|
|
2
|
+
|
|
3
|
+
.@{prefix}-swipe-load {
|
|
4
|
+
position: relative;
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
width: 100%;
|
|
7
|
+
|
|
8
|
+
.@{prefix}-list-area {
|
|
9
|
+
position: relative;
|
|
10
|
+
width: 100%;
|
|
11
|
+
|
|
12
|
+
&::-webkit-scrollbar {
|
|
13
|
+
display: none;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.@{prefix}-loading-area {
|
|
18
|
+
.use-var(background-color, swipe-load-label-background);
|
|
19
|
+
margin-top: 0;
|
|
20
|
+
.use-var(border-radius, swipe-load-label-border-radius);
|
|
21
|
+
|
|
22
|
+
.@{prefix}-loading-label {
|
|
23
|
+
.use-var-with-rtl(margin-left, swipe-load-label-text-margin-left);
|
|
24
|
+
.use-var(width, swipe-load-label-text-width);
|
|
25
|
+
.use-var(color, swipe-load-label-text-color);
|
|
26
|
+
.use-var(font-size, swipe-load-label-text-font-size);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
@import "../../../style/mixin.less";
|
|
2
|
+
|
|
3
|
+
.@{prefix}-switch {
|
|
4
|
+
position: relative;
|
|
5
|
+
display: inline-block;
|
|
6
|
+
.use-var(transition, switch-inner-transition);
|
|
7
|
+
@keyframes changDeg {
|
|
8
|
+
|
|
9
|
+
0% {
|
|
10
|
+
transform: rotate(0deg);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
100% {
|
|
14
|
+
transform: rotate(360deg);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&.type-android {
|
|
19
|
+
.use-var(width, switch-android-width);
|
|
20
|
+
.use-var(height, switch-android-height);
|
|
21
|
+
.use-var(padding, switch-android-padding);
|
|
22
|
+
padding-bottom: 0;
|
|
23
|
+
.use-var(background-color, switch-android-background);
|
|
24
|
+
|
|
25
|
+
&.fully {
|
|
26
|
+
.use-var(border-radius, switch-android-fully-border-radius);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.semi {
|
|
30
|
+
.use-var(border-radius, switch-android-semi-border-radius);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&.checked {
|
|
34
|
+
.use-var(background-color, switch-android-checked-background);
|
|
35
|
+
.@{prefix}-switch-text {
|
|
36
|
+
.set-prop-with-rtl(right, auto);
|
|
37
|
+
.use-var-with-rtl(left, switch-android-text-gap-size);
|
|
38
|
+
}
|
|
39
|
+
.@{prefix}-switch-inner {
|
|
40
|
+
.use-var(transform, switch-android-checked-inner-transform);
|
|
41
|
+
.style-with-rtl({
|
|
42
|
+
.use-var(transform, switch-android-checked-inner-transform, "rotate(180deg)");
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
.@{prefix}-switch-inner {
|
|
47
|
+
.use-var(width, switch-android-inner-diameter-size);
|
|
48
|
+
.use-var(height, switch-android-inner-diameter-size);
|
|
49
|
+
.use-var(box-shadow, switch-android-inner-box-shadow);
|
|
50
|
+
.style-with-rtl({
|
|
51
|
+
transform: rotate(180deg);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&.disabled {
|
|
56
|
+
|
|
57
|
+
&.checked {
|
|
58
|
+
.use-var(background-color, switch-android-disabled-checked-background);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&:not(.checked) {
|
|
62
|
+
.use-var(background-color, switch-android-disabled-background);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
.@{prefix}-switch-text {
|
|
66
|
+
.use-var(font-size, switch-android-text-font-size);
|
|
67
|
+
.use-var-with-rtl(right, switch-android-text-gap-size);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&.type-ios {
|
|
72
|
+
.use-var(width, switch-ios-width);
|
|
73
|
+
.use-var(height, switch-ios-height);
|
|
74
|
+
.use-var(padding, switch-ios-padding);
|
|
75
|
+
padding-bottom: 0;
|
|
76
|
+
.use-var(background-color, switch-ios-background);
|
|
77
|
+
|
|
78
|
+
&.fully {
|
|
79
|
+
.use-var(border-radius, switch-ios-fully-border-radius);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&.semi {
|
|
83
|
+
.use-var(border-radius, switch-ios-semi-border-radius);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&.checked {
|
|
87
|
+
.use-var(background-color, switch-ios-checked-background);
|
|
88
|
+
.@{prefix}-switch-text {
|
|
89
|
+
.set-prop-with-rtl(right, auto);
|
|
90
|
+
.use-var-with-rtl(left, switch-ios-text-gap-size);
|
|
91
|
+
}
|
|
92
|
+
.@{prefix}-switch-inner {
|
|
93
|
+
.use-var(transform, switch-ios-checked-inner-transform);
|
|
94
|
+
.use-var(box-shadow, switch-ios-inner-box-shadow);
|
|
95
|
+
.style-with-rtl({
|
|
96
|
+
.use-var(transform, switch-ios-checked-inner-transform, "rotate(180deg)");
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&.disabled.checked {
|
|
102
|
+
.use-var(opacity, switch-ios-disabled-checked-opacity);
|
|
103
|
+
}
|
|
104
|
+
.@{prefix}-switch-text {
|
|
105
|
+
.use-var(font-size, switch-ios-text-font-size);
|
|
106
|
+
.use-var-with-rtl(right, switch-ios-text-gap-size);
|
|
107
|
+
}
|
|
108
|
+
.@{prefix}-switch-inner {
|
|
109
|
+
.use-var(width, switch-ios-inner-diameter-size);
|
|
110
|
+
.use-var(height, switch-ios-inner-diameter-size);
|
|
111
|
+
.onepx-border-var(all, switch-ios-inner-border-color, 50%);
|
|
112
|
+
.style-with-rtl({
|
|
113
|
+
transform: rotate(180deg);
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&.disabled {
|
|
118
|
+
|
|
119
|
+
&.checked {
|
|
120
|
+
.use-var(background-color, switch-ios-disabled-checked-background);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&:not(.checked) {
|
|
124
|
+
.use-var(background-color, switch-ios-disabled-background);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&-text {
|
|
130
|
+
position: absolute;
|
|
131
|
+
top: 50%;
|
|
132
|
+
transform: translateY(-50%);
|
|
133
|
+
.use-var(color, switch-text-color);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&.checked &-text {
|
|
137
|
+
.use-var(color, switch-text-checked-color);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&-inner {
|
|
141
|
+
position: relative;
|
|
142
|
+
.set-prop-with-rtl(left, 0);
|
|
143
|
+
top: 0;
|
|
144
|
+
display: flex;
|
|
145
|
+
align-items: center;
|
|
146
|
+
justify-content: center;
|
|
147
|
+
.use-var(background-color, switch-inner-background);
|
|
148
|
+
.use-var(transition, switch-inner-transition);
|
|
149
|
+
|
|
150
|
+
.fully & {
|
|
151
|
+
.use-var(border-radius, switch-inner-fully-border-radius);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.semi & {
|
|
155
|
+
.use-var(border-radius, switch-inner-semi-border-radius);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
@import '../../../style/mixin.less';
|
|
2
|
+
|
|
3
|
+
.@{prefix}-tab-bar {
|
|
4
|
+
display: flex;
|
|
5
|
+
width: 100%;
|
|
6
|
+
justify-content: flex-start;
|
|
7
|
+
align-items: stretch;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
.use-var(font-size, tab-bar-font-size);
|
|
10
|
+
.use-var(min-height, tab-bar-height);
|
|
11
|
+
&-fixed{
|
|
12
|
+
position: fixed;
|
|
13
|
+
bottom: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&-item{
|
|
17
|
+
display: flex;
|
|
18
|
+
flex: 1 1;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
align-items: center;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
.use-var(color,tab-bar-color);
|
|
23
|
+
&-title{
|
|
24
|
+
color: inherit;
|
|
25
|
+
.use-var(line-height, tab-bar-title-line-height);
|
|
26
|
+
.use-var(font-size,tab-bar-font-size);
|
|
27
|
+
.use-var(margin,tab-bar-title-margin);
|
|
28
|
+
}
|
|
29
|
+
&-children{
|
|
30
|
+
display: flex;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
align-items: center;
|
|
33
|
+
}
|
|
34
|
+
&-only-title{
|
|
35
|
+
.use-var(line-height, tab-bar-only-title-line-height);
|
|
36
|
+
.use-var(font-size, tab-bar-only-title-font-size);
|
|
37
|
+
margin: 0;
|
|
38
|
+
}
|
|
39
|
+
&-active{
|
|
40
|
+
.use-var(color, tab-bar-active-color);
|
|
41
|
+
}
|
|
42
|
+
.@{prefix}-extra-wrap{
|
|
43
|
+
position: relative;
|
|
44
|
+
display: flex;
|
|
45
|
+
justify-content: center;
|
|
46
|
+
align-items: center;
|
|
47
|
+
.use-var(font-size, tab-bar-icon-size);
|
|
48
|
+
color: inherit;
|
|
49
|
+
}
|
|
50
|
+
.@{prefix}-tab-bar-item-icon{
|
|
51
|
+
display: flex;
|
|
52
|
+
.use-var(font-size, tab-bar-icon-size);
|
|
53
|
+
color: inherit;
|
|
54
|
+
.use-var(margin, tab-bar-item-icon-margin);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|