@neatui/css 1.0.27 → 2.0.0-beta.0
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/components/btns/btns@a.scss +41 -87
- package/components/btns/btns@b.scss +22 -22
- package/components/btns/btns@c.scss +2 -2
- package/components/btns/mcui@btns.scss +2 -2
- package/components/card/card@a.scss +37 -37
- package/components/card/card@b.scss +11 -11
- package/components/cite/cite@a.scss +1 -2
- package/components/demo/demo@a.scss +3 -3
- package/components/form/base.scss +30 -26
- package/components/form/form@a/base.scss +5 -5
- package/components/form/form@a/checkbox.scss +21 -27
- package/components/form/form@a/date.scss +6 -6
- package/components/form/form@a/input.scss +25 -25
- package/components/form/form@a/radio.scss +2 -6
- package/components/form/form@a/select.scss +10 -12
- package/components/form/form@a/switch.scss +7 -10
- package/components/form/form@a/textarea.scss +29 -41
- package/components/form/form@a/upload.scss +11 -16
- package/components/form/form@b/base.scss +3 -5
- package/components/form/form@b/checkbox.scss +1 -3
- package/components/form/form@b/date.scss +6 -6
- package/components/form/form@b/input.scss +23 -41
- package/components/form/form@b/radio.scss +1 -3
- package/components/form/form@b/select.scss +10 -12
- package/components/form/form@b/switch.scss +7 -10
- package/components/form/form@b/textarea.scss +25 -41
- package/components/form/form@b/upload.scss +11 -16
- package/components/form/form@c/base.scss +9 -12
- package/components/form/form@c/checkbox.scss +3 -6
- package/components/form/form@c/date.scss +7 -9
- package/components/form/form@c/input.scss +27 -42
- package/components/form/form@c/radio.scss +3 -6
- package/components/form/form@c/select.scss +10 -12
- package/components/form/form@c/switch.scss +7 -10
- package/components/form/form@c/textarea.scss +21 -33
- package/components/form/form@c/upload.scss +11 -16
- package/components/form/form@d/input.scss +13 -13
- package/components/form/form@d/textarea.scss +16 -16
- package/components/form/form@d/upload.scss +2 -2
- package/components/form/mcui@form.scss +1 -1
- package/components/form/radio@theme=aa.scss +1 -5
- package/components/grid/grid@a.scss +7 -9
- package/components/imgs/base.scss +2 -3
- package/components/imgs/imgs@a.scss +11 -19
- package/components/imgs/imgs@b.scss +1 -1
- package/components/line/line@a.scss +3 -6
- package/components/line/line@b.scss +4 -12
- package/components/list/list@a.scss +13 -18
- package/components/list/list@b.scss +9 -13
- package/components/load/load@a.scss +11 -12
- package/components/load/load@e.scss +1 -3
- package/components/load/load@h.scss +3 -7
- package/components/menu/menu@b.scss +28 -40
- package/components/navs/navs@a.scss +12 -25
- package/components/navs/navs@b.scss +14 -29
- package/components/note/note@a.scss +8 -13
- package/components/note/note@b.scss +8 -22
- package/components/opts/opts@a.scss +7 -10
- package/components/path/path@a.scss +2 -6
- package/components/steps/steps@a.scss +10 -22
- package/components/steps/steps@v.scss +25 -37
- package/components/table/base.scss +15 -13
- package/components/table/table@a.scss +42 -41
- package/components/table/table@b.scss +23 -25
- package/components/table/table@c.scss +2 -4
- package/components/tabs/tabs@a.scss +7 -7
- package/components/tabs/tabs@b.scss +7 -7
- package/components/tabs/tabs@c.scss +7 -7
- package/components/tags/tags@a.scss +26 -40
- package/components/tags/tags@b.scss +22 -36
- package/components/tips/tips@a.scss +6 -6
- package/components/title/title@a.scss +3 -3
- package/components/title/title@b.scss +4 -3
- package/core/base.scss +11 -7
- package/core/color.scss +35 -179
- package/core/{mcui@core.scss → neatui@core.scss} +0 -2
- package/core/reset.scss +15 -2
- package/core/scroll.scss +20 -15
- package/core/size.scss +2 -2
- package/core/theme.scss +199 -69
- package/core/trim.scss +18 -0
- package/core/ux.scss +13 -19
- package/neatui.scss +1 -1
- package/package.json +1 -1
- package/components/paging/mc-paging-ui1503.scss +0 -106
- package/components/paging/mc-paging.scss +0 -432
- package/components/paging/paging@theme=aa.scss +0 -45
- package/core/pos.scss +0 -252
- package/core/trim.mobile.scss +0 -327
- /package/core/{mcui@core.lite.scss → neatui@core.lite.scss} +0 -0
- /package/core/{mcui@mobile.scss → neatui@mobile.scss} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
2
|
$size: xs, s, m, l, xl;
|
|
3
|
-
$type: none, main,
|
|
3
|
+
$type: none, main, text, link, read, note, case, line, weak, back, info, well, warn, risk, w, b;
|
|
4
4
|
|
|
5
5
|
// 基础
|
|
6
6
|
%btnBase {
|
|
@@ -23,9 +23,7 @@ $type: none, main, vice, text, link, read, note, case, line, weak, back, info, w
|
|
|
23
23
|
white-space: nowrap;
|
|
24
24
|
color: inherit;
|
|
25
25
|
box-shadow: inset 0 0 0 1px currentColor;
|
|
26
|
-
|
|
27
|
-
background: co(weak);
|
|
28
|
-
}
|
|
26
|
+
background: co(var(--co-weak));
|
|
29
27
|
}
|
|
30
28
|
|
|
31
29
|
& > * {
|
|
@@ -43,12 +41,6 @@ body [ui-btn~='@a'] {
|
|
|
43
41
|
// 基础样式
|
|
44
42
|
@extend %btnBase;
|
|
45
43
|
|
|
46
|
-
// &[ui-btn~=':flex'] {
|
|
47
|
-
// display: inline-flex;
|
|
48
|
-
// justify-content: center;
|
|
49
|
-
// align-items: center;
|
|
50
|
-
// }
|
|
51
|
-
|
|
52
44
|
// 绝对尺寸
|
|
53
45
|
&[ui-btn~=':abs'] {
|
|
54
46
|
height: 2.5rem;
|
|
@@ -63,11 +55,9 @@ body [ui-btn~='@a'] {
|
|
|
63
55
|
|
|
64
56
|
// 移入状态
|
|
65
57
|
&:hover {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
inset 0 0 0 100em rgba(co(text), 0.04);
|
|
70
|
-
}
|
|
58
|
+
box-shadow:
|
|
59
|
+
inset 0 0 0 1px var(--co-line),
|
|
60
|
+
inset 0 0 0 100em var(--co-text-xs);
|
|
71
61
|
}
|
|
72
62
|
|
|
73
63
|
// 按下状态
|
|
@@ -169,58 +159,46 @@ body [ui-btn~='@a'] {
|
|
|
169
159
|
// 按钮颜色
|
|
170
160
|
@each $name in $type {
|
|
171
161
|
&[ui-btn~='#{$name}'] {
|
|
172
|
-
@if ($name == 'none' or $name == 'weak' or $name == 'back') {
|
|
173
|
-
@include theme {
|
|
174
|
-
|
|
175
|
-
}
|
|
162
|
+
@if ($name == 'none' or $name == 'var(--co-weak)' or $name == 'back') {
|
|
163
|
+
// @include theme {
|
|
164
|
+
background: var(--co-#{$name});
|
|
165
|
+
// }
|
|
176
166
|
color: inherit;
|
|
177
167
|
} @else {
|
|
178
|
-
@include theme {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
}
|
|
168
|
+
// @include theme {
|
|
169
|
+
// 背景色
|
|
170
|
+
background: var(--co-#{$name});
|
|
171
|
+
color: var(--co-fore);
|
|
172
|
+
// }
|
|
183
173
|
}
|
|
184
174
|
box-shadow: inset 0 0 0 1px transparent;
|
|
185
175
|
|
|
186
176
|
&:hover {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
inset 0 0 0 100em rgba(co(text), 0.04);
|
|
191
|
-
}
|
|
177
|
+
box-shadow:
|
|
178
|
+
inset 0 0 0 1px transparent,
|
|
179
|
+
inset 0 0 0 100em var(--co-text-xs);
|
|
192
180
|
}
|
|
193
181
|
|
|
194
182
|
// 边框式
|
|
195
183
|
&[ui-btn~=':border'] {
|
|
196
184
|
background: transparent;
|
|
197
185
|
@if ($name == 'line' or $name == 'case') {
|
|
198
|
-
|
|
199
|
-
color: co(read);
|
|
200
|
-
}
|
|
186
|
+
color: var(--co-read);
|
|
201
187
|
} @else {
|
|
202
|
-
|
|
203
|
-
color: co($name);
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
@include theme {
|
|
207
|
-
box-shadow: inset 0 0 0 1px co($name);
|
|
188
|
+
color: var(--co-#{$name});
|
|
208
189
|
}
|
|
190
|
+
box-shadow: inset 0 0 0 1px var(--co-#{$name});
|
|
209
191
|
|
|
210
192
|
&:hover {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
inset 0 0 0 100em rgba(co($name), 0.08);
|
|
215
|
-
}
|
|
193
|
+
box-shadow:
|
|
194
|
+
inset 0 0 0 1px var(--co-#{$name}),
|
|
195
|
+
inset 0 0 0 100em var(--co-#{$name}-xs);
|
|
216
196
|
}
|
|
217
197
|
}
|
|
218
198
|
|
|
219
199
|
// 下划线
|
|
220
200
|
&[ui-btn~=':underline'] {
|
|
221
|
-
|
|
222
|
-
color: co($name);
|
|
223
|
-
}
|
|
201
|
+
color: var(--co-#{$name});
|
|
224
202
|
background: transparent;
|
|
225
203
|
box-shadow: inset 0 0 0 1px transparent;
|
|
226
204
|
|
|
@@ -291,11 +269,9 @@ body [ui-btn~='@a'] {
|
|
|
291
269
|
|
|
292
270
|
// 移入状态
|
|
293
271
|
& > *:hover {
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
inset 0 0 0 100em rgba(co(text), 0.04);
|
|
298
|
-
}
|
|
272
|
+
box-shadow:
|
|
273
|
+
inset 0 0 0 1px var(--co-line),
|
|
274
|
+
inset 0 0 0 100em var(--co-text-xs);
|
|
299
275
|
}
|
|
300
276
|
|
|
301
277
|
// 按下状态
|
|
@@ -336,7 +312,6 @@ body [ui-btn~='@a'] {
|
|
|
336
312
|
&[ui-btns~='#{$i}'] {
|
|
337
313
|
& > * {
|
|
338
314
|
height: #{$base}em;
|
|
339
|
-
// line-height: #{$base}em;
|
|
340
315
|
padding: 0 #{calc(($base - 0.5) / 2)}em;
|
|
341
316
|
}
|
|
342
317
|
|
|
@@ -348,7 +323,6 @@ body [ui-btn~='@a'] {
|
|
|
348
323
|
|
|
349
324
|
&[ui-btns~=':abs'] > * {
|
|
350
325
|
height: #{$base}rem;
|
|
351
|
-
// line-height: #{$base}rem;
|
|
352
326
|
padding: 0 #{calc(($base - 0.5) / 2)}rem;
|
|
353
327
|
}
|
|
354
328
|
}
|
|
@@ -357,7 +331,6 @@ body [ui-btn~='@a'] {
|
|
|
357
331
|
&[ui-btns~='mob-#{$i}'] {
|
|
358
332
|
& > * {
|
|
359
333
|
height: #{$base}em;
|
|
360
|
-
// line-height: #{$base}em;
|
|
361
334
|
padding: 0 #{calc(($base - 0.5) / 2)}em;
|
|
362
335
|
}
|
|
363
336
|
|
|
@@ -369,7 +342,6 @@ body [ui-btn~='@a'] {
|
|
|
369
342
|
|
|
370
343
|
&[ui-btns~=':abs'] > * {
|
|
371
344
|
height: #{$base}rem;
|
|
372
|
-
// line-height: #{$base}rem;
|
|
373
345
|
padding: 0 #{calc(($base - 0.5) / 2)}rem;
|
|
374
346
|
}
|
|
375
347
|
}
|
|
@@ -378,7 +350,6 @@ body [ui-btn~='@a'] {
|
|
|
378
350
|
&[ui-btns~='pad-#{$i}'] {
|
|
379
351
|
& > * {
|
|
380
352
|
height: #{$base}em;
|
|
381
|
-
// line-height: #{$base}em;
|
|
382
353
|
padding: 0 #{calc(($base - 0.5) / 2)}em;
|
|
383
354
|
}
|
|
384
355
|
|
|
@@ -390,7 +361,6 @@ body [ui-btn~='@a'] {
|
|
|
390
361
|
|
|
391
362
|
&[ui-btns~=':abs'] > * {
|
|
392
363
|
height: #{$base}rem;
|
|
393
|
-
// line-height: #{$base}rem;
|
|
394
364
|
padding: 0 #{calc(($base - 0.5) / 2)}rem;
|
|
395
365
|
}
|
|
396
366
|
}
|
|
@@ -404,26 +374,20 @@ body [ui-btn~='@a'] {
|
|
|
404
374
|
&[ui-btns~='#{$name}'] {
|
|
405
375
|
& > * {
|
|
406
376
|
@if ($name == 'none' or $name == 'weak' or $name == 'back') {
|
|
407
|
-
|
|
408
|
-
background: co($name);
|
|
409
|
-
}
|
|
377
|
+
background: var(--co-#{$name});
|
|
410
378
|
color: inherit;
|
|
411
379
|
} @else {
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
color: co(fore);
|
|
416
|
-
}
|
|
380
|
+
// 背景色
|
|
381
|
+
background: var(--co-#{$name});
|
|
382
|
+
color: var(--co-fore);
|
|
417
383
|
}
|
|
418
384
|
|
|
419
385
|
box-shadow: inset 0 0 0 1px transparent;
|
|
420
386
|
|
|
421
387
|
&:hover {
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
inset 0 0 0 100em rgba(co(text), 0.04);
|
|
426
|
-
}
|
|
388
|
+
box-shadow:
|
|
389
|
+
inset 0 0 0 1px transparent,
|
|
390
|
+
inset 0 0 0 100em var(--co-text-xs);
|
|
427
391
|
}
|
|
428
392
|
}
|
|
429
393
|
|
|
@@ -431,32 +395,22 @@ body [ui-btn~='@a'] {
|
|
|
431
395
|
&[ui-btns~=':border'] > * {
|
|
432
396
|
background: transparent;
|
|
433
397
|
@if ($name == 'line') {
|
|
434
|
-
|
|
435
|
-
color: co(read);
|
|
436
|
-
}
|
|
398
|
+
color: var(--co-read);
|
|
437
399
|
} @else {
|
|
438
|
-
|
|
439
|
-
color: co($name);
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
@include theme {
|
|
443
|
-
box-shadow: inset 0 0 0 1px co($name);
|
|
400
|
+
color: var(--co-#{$name});
|
|
444
401
|
}
|
|
402
|
+
box-shadow: inset 0 0 0 1px var(--co-#{$name});
|
|
445
403
|
|
|
446
404
|
&:hover {
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
inset 0 0 0 100em rgba(co($name), 0.08);
|
|
451
|
-
}
|
|
405
|
+
box-shadow:
|
|
406
|
+
inset 0 0 0 1px var(--co-#{$name}),
|
|
407
|
+
inset 0 0 0 100em var(--co-#{$name}-xs);
|
|
452
408
|
}
|
|
453
409
|
}
|
|
454
410
|
|
|
455
411
|
// 下划线
|
|
456
412
|
&[ui-btns~=':underline'] > * {
|
|
457
|
-
|
|
458
|
-
color: co($name);
|
|
459
|
-
}
|
|
413
|
+
color: var(--co-#{$name});
|
|
460
414
|
background: transparent;
|
|
461
415
|
box-shadow: inset 0 0 0 1px transparent;
|
|
462
416
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
2
|
$size: 'xs', 's', 'm', 'l', 'xl';
|
|
3
|
-
$type: 'none', 'main', '
|
|
3
|
+
$type: 'none', 'main', 'text', 'read', 'weak', 'back', 'info', 'well', 'warn', 'risk';
|
|
4
4
|
|
|
5
5
|
// 按钮
|
|
6
6
|
[ui-btn~='@b'] {
|
|
@@ -21,11 +21,11 @@ $type: 'none', 'main', 'vice', 'text', 'read', 'weak', 'back', 'info', 'well', '
|
|
|
21
21
|
border: 0;
|
|
22
22
|
user-select: none;
|
|
23
23
|
white-space: nowrap;
|
|
24
|
-
@include theme {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
24
|
+
// @include theme {
|
|
25
|
+
color: var(--co-text);
|
|
26
|
+
background: var(--co-weak);
|
|
27
|
+
box-shadow: inset 0 0 0 1px var(--co-line);
|
|
28
|
+
// }
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
& > * {
|
|
@@ -51,11 +51,11 @@ $type: 'none', 'main', 'vice', 'text', 'read', 'weak', 'back', 'info', 'well', '
|
|
|
51
51
|
|
|
52
52
|
// 移入状态
|
|
53
53
|
&:hover {
|
|
54
|
-
@include theme {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
54
|
+
// @include theme {
|
|
55
|
+
box-shadow:
|
|
56
|
+
inset 0 0 0 1px var(--co-line),
|
|
57
|
+
inset 0 0 0 100em var(--co-text-xs);
|
|
58
|
+
// }
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
// 按下状态
|
|
@@ -118,14 +118,14 @@ $type: 'none', 'main', 'vice', 'text', 'read', 'weak', 'back', 'info', 'well', '
|
|
|
118
118
|
&[ui-btn~='#{$name}'] {
|
|
119
119
|
@if ($name == 'none' or $name == 'weak' or $name == 'back') {
|
|
120
120
|
@include theme {
|
|
121
|
-
background: co
|
|
121
|
+
background: var(--co-#{$name});
|
|
122
122
|
}
|
|
123
123
|
color: inherit;
|
|
124
124
|
} @else {
|
|
125
125
|
@include theme {
|
|
126
126
|
// 背景色
|
|
127
|
-
$co: co
|
|
128
|
-
background-image: linear-gradient(180deg, saturate($co, 5%) 0%, mix($co, co
|
|
127
|
+
$co: var(--co-#{$name});
|
|
128
|
+
background-image: linear-gradient(180deg, saturate($co, 5%) 0%, mix($co, var(--co-text), 80%) 100%);
|
|
129
129
|
box-shadow: inset 0 -0.3em 0 0 rgba(0, 0, 0, 0.15);
|
|
130
130
|
|
|
131
131
|
// 智能计算文字颜色
|
|
@@ -144,7 +144,7 @@ $type: 'none', 'main', 'vice', 'text', 'read', 'weak', 'back', 'info', 'well', '
|
|
|
144
144
|
@include theme {
|
|
145
145
|
box-shadow:
|
|
146
146
|
inset 0 0 0 1px transparent,
|
|
147
|
-
inset 0 0 0 100em rgba(co
|
|
147
|
+
inset 0 0 0 100em rgba(var(--co-text), 0.04);
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
|
|
@@ -152,20 +152,20 @@ $type: 'none', 'main', 'vice', 'text', 'read', 'weak', 'back', 'info', 'well', '
|
|
|
152
152
|
&[ui-btn~=':border'] {
|
|
153
153
|
background: transparent;
|
|
154
154
|
@include theme {
|
|
155
|
-
color: co
|
|
155
|
+
color: var(--co-#{$name});
|
|
156
156
|
box-shadow:
|
|
157
|
-
inset 0 0 0 1px co
|
|
157
|
+
inset 0 0 0 1px var(--co-#{$name}),
|
|
158
158
|
inset 0 -0.2em 0 0 co(back),
|
|
159
|
-
inset 0 -0.3em 0 0 co
|
|
159
|
+
inset 0 -0.3em 0 0 var(--co-#{$name});
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
&:hover {
|
|
163
163
|
@include theme {
|
|
164
164
|
box-shadow:
|
|
165
|
-
inset 0 0 0 1px co
|
|
165
|
+
inset 0 0 0 1px var(--co-#{$name}),
|
|
166
166
|
inset 0 -0.2em 0 0 co(back),
|
|
167
|
-
inset 0 -0.3em 0 0 co
|
|
168
|
-
inset 0 0 0 100em rgba(co
|
|
167
|
+
inset 0 -0.3em 0 0 var(--co-#{$name}),
|
|
168
|
+
inset 0 0 0 100em rgba(var(--co-#{$name}), 0.08);
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
}
|
|
@@ -173,7 +173,7 @@ $type: 'none', 'main', 'vice', 'text', 'read', 'weak', 'back', 'info', 'well', '
|
|
|
173
173
|
// 下划线
|
|
174
174
|
&[ui-btn~=':underline'] {
|
|
175
175
|
@include theme {
|
|
176
|
-
color: co
|
|
176
|
+
color: var(--co-#{$name});
|
|
177
177
|
}
|
|
178
178
|
background: transparent;
|
|
179
179
|
box-shadow: inset 0 0 0 1px transparent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
2
|
$size: 'xs', 's', 'm', 'l', 'xl';
|
|
3
|
-
$type: 'none', 'main', '
|
|
3
|
+
$type: 'none', 'main', 'text', 'read', 'weak', 'back', 'info', 'well', 'warn', 'risk';
|
|
4
4
|
|
|
5
5
|
// 按钮
|
|
6
6
|
[ui-btn~='@c'] {
|
|
@@ -22,7 +22,7 @@ $type: 'none', 'main', 'vice', 'text', 'read', 'weak', 'back', 'info', 'well', '
|
|
|
22
22
|
@include theme {
|
|
23
23
|
color: co(text);
|
|
24
24
|
background: co(weak);
|
|
25
|
-
box-shadow: inset 0 0 0
|
|
25
|
+
box-shadow: inset 0 0 0 1pxvar (--co-line);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
@import './btns@a.scss';
|
|
2
|
-
@import './btns@b.scss';
|
|
3
|
-
@import './btns@c.scss';
|
|
2
|
+
// @import './btns@b.scss';
|
|
3
|
+
// @import './btns@c.scss';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
$co: 'none', 'main', '
|
|
1
|
+
$co: 'none', 'main', 'text', 'read', 'note', 'line', 'case', 'weak', 'fore', 'back', 'info', 'well', 'warn', 'risk';
|
|
2
2
|
$sz: 'xs', 's', 'm', 'l', 'xl';
|
|
3
3
|
|
|
4
4
|
@mixin card_a($name: 'ui-card', $group: 0, $path: '') {
|
|
@@ -10,15 +10,15 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
10
10
|
transition: box-shadow 0.3s;
|
|
11
11
|
|
|
12
12
|
&.active {
|
|
13
|
-
@include theme {
|
|
14
|
-
|
|
15
|
-
}
|
|
13
|
+
// @include theme {
|
|
14
|
+
border: 1px solid var(--co-read);
|
|
15
|
+
// }
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
& > * {
|
|
19
|
-
@include theme {
|
|
20
|
-
|
|
21
|
-
}
|
|
19
|
+
// @include theme {
|
|
20
|
+
background-color: var(--co-fore);
|
|
21
|
+
// }
|
|
22
22
|
|
|
23
23
|
&:first-child {
|
|
24
24
|
border-top-left-radius: 0.4em;
|
|
@@ -70,9 +70,9 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
70
70
|
all 0.2s,
|
|
71
71
|
padding 0.35s,
|
|
72
72
|
margin 0.35s;
|
|
73
|
-
@include theme {
|
|
74
|
-
|
|
75
|
-
}
|
|
73
|
+
// @include theme {
|
|
74
|
+
background: var(--co-fore-lm);
|
|
75
|
+
// }
|
|
76
76
|
padding: 1em 1.5em;
|
|
77
77
|
margin-bottom: 1px;
|
|
78
78
|
}
|
|
@@ -102,17 +102,17 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
102
102
|
// 头部
|
|
103
103
|
[ui-card-head] {
|
|
104
104
|
// margin-bottom: 2px;
|
|
105
|
-
@include theme {
|
|
106
|
-
|
|
107
|
-
}
|
|
105
|
+
// @include theme {
|
|
106
|
+
border-bottom: 2px solid var(--co-back-ls);
|
|
107
|
+
// }
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
// 底部
|
|
111
111
|
[ui-card-foot] {
|
|
112
112
|
// margin-top: 1px;
|
|
113
|
-
@include theme {
|
|
114
|
-
|
|
115
|
-
}
|
|
113
|
+
// @include theme {
|
|
114
|
+
border-top: 1px solid var(--co-back-ls);
|
|
115
|
+
// }
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
|
|
@@ -120,38 +120,38 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
120
120
|
// 背景
|
|
121
121
|
&[#{$name}~='bg:#{$i}']#{$path} {
|
|
122
122
|
& > * {
|
|
123
|
-
@include theme {
|
|
124
|
-
|
|
125
|
-
}
|
|
123
|
+
// @include theme {
|
|
124
|
+
background-color: var(--co-#{$i});
|
|
125
|
+
// }
|
|
126
126
|
|
|
127
127
|
&[ui-card-tool] {
|
|
128
|
-
@include theme {
|
|
129
|
-
|
|
130
|
-
}
|
|
128
|
+
// @include theme {
|
|
129
|
+
background-color: var(--co-#{$i}-lm);
|
|
130
|
+
// }
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
// 边框
|
|
136
136
|
&[#{$name}~='bk:#{$i}']#{$path} {
|
|
137
|
-
@include theme {
|
|
138
|
-
|
|
139
|
-
}
|
|
137
|
+
// @include theme {
|
|
138
|
+
border: 1px solid var(--co-#{$i});
|
|
139
|
+
// }
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
// 颜色
|
|
143
143
|
&[#{$name}~='co:#{$i}']#{$path} {
|
|
144
|
-
@include theme {
|
|
145
|
-
|
|
146
|
-
}
|
|
144
|
+
// @include theme {
|
|
145
|
+
color: var(--co-#{$i});
|
|
146
|
+
// }
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
// 交互
|
|
150
150
|
&[#{$name}~='ux:hover']#{$path} {
|
|
151
151
|
&:hover {
|
|
152
|
-
@include theme {
|
|
153
|
-
|
|
154
|
-
}
|
|
152
|
+
// @include theme {
|
|
153
|
+
box-shadow: 0 1px 6px var(--co-text-xs);
|
|
154
|
+
// }
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
|
|
@@ -193,9 +193,9 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
193
193
|
top: 0;
|
|
194
194
|
z-index: 10;
|
|
195
195
|
overflow: auto;
|
|
196
|
-
@include theme {
|
|
197
|
-
|
|
198
|
-
}
|
|
196
|
+
// @include theme {
|
|
197
|
+
background-color: var(--co-back);
|
|
198
|
+
// }
|
|
199
199
|
|
|
200
200
|
[ui-card-body] {
|
|
201
201
|
overflow: auto;
|
|
@@ -224,9 +224,9 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
224
224
|
top: 0;
|
|
225
225
|
z-index: 10;
|
|
226
226
|
overflow: auto;
|
|
227
|
-
@include theme {
|
|
228
|
-
|
|
229
|
-
}
|
|
227
|
+
// @include theme {
|
|
228
|
+
background-color: var(--co-back);
|
|
229
|
+
// }
|
|
230
230
|
|
|
231
231
|
[ui-card-body] {
|
|
232
232
|
overflow: auto;
|
|
@@ -6,16 +6,16 @@
|
|
|
6
6
|
position: relative;
|
|
7
7
|
transition: box-shadow 0.3s;
|
|
8
8
|
border-radius: 0.4em;
|
|
9
|
-
@include theme {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
9
|
+
// @include theme {
|
|
10
|
+
background: var(--co-fore);
|
|
11
|
+
&:hover {
|
|
12
|
+
box-shadow: 0 1px 6px var(--co-line);
|
|
14
13
|
}
|
|
14
|
+
// }
|
|
15
15
|
&.active {
|
|
16
|
-
@include theme {
|
|
17
|
-
|
|
18
|
-
}
|
|
16
|
+
// @include theme {
|
|
17
|
+
border: 1px solid var(--co-read);
|
|
18
|
+
// }
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
// 标题
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
padding: 0 1rem;
|
|
27
27
|
line-height: 3.5rem;
|
|
28
28
|
}
|
|
29
|
-
@include theme {
|
|
30
|
-
|
|
31
|
-
}
|
|
29
|
+
// @include theme {
|
|
30
|
+
border-bottom: 1px solid var(--co-line-mm);
|
|
31
|
+
// }
|
|
32
32
|
}
|
|
33
33
|
// 主体
|
|
34
34
|
[ui-card-body] {
|
|
@@ -17,8 +17,7 @@ $state: 'main', 'read', 'well', 'warn', 'risk', 'info';
|
|
|
17
17
|
@each $key in $state {
|
|
18
18
|
@include theme {
|
|
19
19
|
$co: co($key);
|
|
20
|
-
$bk:
|
|
21
|
-
@if ($key== 'main') {
|
|
20
|
+
$bk:var(--co-line) @if ($key== 'main') {
|
|
22
21
|
&,
|
|
23
22
|
&[ui-cite~='#{$key}'] {
|
|
24
23
|
@include cite($co, $bk);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
& {
|
|
3
3
|
border-radius: 0.25em;
|
|
4
4
|
@include theme {
|
|
5
|
-
border: 1px
|
|
5
|
+
border: 1px solidvar(--co-line)
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
text-align: center;
|
|
18
18
|
padding: 0.25em;
|
|
19
19
|
@include theme {
|
|
20
|
-
border-top: 1px
|
|
21
|
-
border-bottom: 1px
|
|
20
|
+
border-top: 1px solidvar(--co-line)
|
|
21
|
+
border-bottom: 1px solidvar(--co-line)
|
|
22
22
|
background-color: rgba(co(weak), 0.5);
|
|
23
23
|
}
|
|
24
24
|
}
|