@neatui/css 1.0.27 → 2.0.0-beta.1
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 +36 -41
- 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 +24 -9
- 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 +36 -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
|
@@ -52,9 +52,9 @@ $co: 'info', 'well', 'warn', 'risk';
|
|
|
52
52
|
flex-shrink: 0;
|
|
53
53
|
position: relative;
|
|
54
54
|
top: 0.15em;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
|
|
56
|
+
background-color: var(--bg-weak);
|
|
57
|
+
|
|
58
58
|
background-image: radial-gradient(circle at 50% 50%, currentColor 28%, transparent 30%);
|
|
59
59
|
background-position-x: -0.2em;
|
|
60
60
|
transition:
|
|
@@ -62,16 +62,13 @@ $co: 'info', 'well', 'warn', 'risk';
|
|
|
62
62
|
background-position-x ease-out 0.3s;
|
|
63
63
|
|
|
64
64
|
&:checked {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
65
|
+
background-color: var(--co-main);
|
|
66
|
+
background-image: radial-gradient(circle at 50% 50%, var(--co-fore) 28%, transparent 30%);
|
|
67
|
+
|
|
69
68
|
background-position-x: 0.2em;
|
|
70
69
|
&,
|
|
71
70
|
& + * {
|
|
72
|
-
|
|
73
|
-
color: co(main);
|
|
74
|
-
}
|
|
71
|
+
color: var(--co-main);
|
|
75
72
|
}
|
|
76
73
|
}
|
|
77
74
|
|
|
@@ -24,60 +24,48 @@ $co: 'info', 'well', 'warn', 'risk';
|
|
|
24
24
|
transition: all 0.5s;
|
|
25
25
|
background-color: transparent;
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
background-color: mix(co(weak), co(fore), 50%);
|
|
30
|
-
}
|
|
27
|
+
box-shadow: inset 0 0 0 1px var(--co-case);
|
|
28
|
+
background-color: var(--bg-weak);
|
|
31
29
|
|
|
32
30
|
&:hover {
|
|
33
|
-
|
|
34
|
-
box-shadow: inset 0 0 0 1px rgba(co(main), 0.5);
|
|
35
|
-
}
|
|
31
|
+
box-shadow: inset 0 0 0 1px var(--co-main-mm);
|
|
36
32
|
}
|
|
37
33
|
|
|
38
34
|
&.form-focus,
|
|
39
35
|
&:focus {
|
|
40
36
|
background-color: transparent;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
0 0 0 2px rgba(co(main), 0.15);
|
|
45
|
-
}
|
|
37
|
+
box-shadow:
|
|
38
|
+
inset 0 0 0 1px var(--co-main-mm),
|
|
39
|
+
0 0 0 2px var(--co-main-ss);
|
|
46
40
|
}
|
|
47
41
|
|
|
48
42
|
// 颜色
|
|
49
43
|
@each $c in $co {
|
|
50
44
|
&[ui-form~='co:#{$c}'] {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
background-color: rgba(co($c), 0.035);
|
|
57
|
-
}
|
|
45
|
+
color: var(--co-#{$c}-text);
|
|
46
|
+
box-shadow:
|
|
47
|
+
inset 0 0 0 1px var(--co-#{$c}-ml),
|
|
48
|
+
0 0 0 2px var(--co-#{$c}-ss) !important;
|
|
49
|
+
background-color: var(--co-#{$c}-sl);
|
|
58
50
|
}
|
|
59
51
|
|
|
60
52
|
&[ui-form~='co:hover:#{$c}'] {
|
|
61
53
|
&:hover {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
background-color: rgba(co($c), 0.035);
|
|
68
|
-
}
|
|
54
|
+
color: var(--co-#{$c}-text);
|
|
55
|
+
box-shadow:
|
|
56
|
+
inset 0 0 0 1px var(--co-#{$c}-ml),
|
|
57
|
+
0 0 0 2px var(--co-#{$c}-ss) !important;
|
|
58
|
+
background-color: var(--co-#{$c}-sl);
|
|
69
59
|
}
|
|
70
60
|
}
|
|
71
61
|
|
|
72
62
|
&[ui-form~='co:focus:#{$c}'] {
|
|
73
63
|
&:focus-within {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
background-color: rgba(co($c), 0.035);
|
|
80
|
-
}
|
|
64
|
+
color: var(--co-#{$c}-text);
|
|
65
|
+
box-shadow:
|
|
66
|
+
inset 0 0 0 1px var(--co-#{$c}-ml),
|
|
67
|
+
0 0 0 2px var(--co-#{$c}-ss) !important;
|
|
68
|
+
background-color: var(--co-#{$c}-sl);
|
|
81
69
|
}
|
|
82
70
|
}
|
|
83
71
|
}
|
|
@@ -24,10 +24,9 @@
|
|
|
24
24
|
transition: all 0.5s;
|
|
25
25
|
border-style: solid;
|
|
26
26
|
border-width: 1px;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
27
|
+
|
|
28
|
+
border-color: var(--co-line);
|
|
29
|
+
background-color: var(--bg-weak);
|
|
31
30
|
}
|
|
32
31
|
|
|
33
32
|
@keyframes am-file-add {
|
|
@@ -71,9 +70,7 @@
|
|
|
71
70
|
top: 0;
|
|
72
71
|
left: 0;
|
|
73
72
|
|
|
74
|
-
|
|
75
|
-
background-color: mix(co(weak), co(fore), 50%);
|
|
76
|
-
}
|
|
73
|
+
background-color: var(--bg-weak);
|
|
77
74
|
}
|
|
78
75
|
|
|
79
76
|
img,
|
|
@@ -90,9 +87,9 @@
|
|
|
90
87
|
position: absolute;
|
|
91
88
|
width: 100%;
|
|
92
89
|
height: 100%;
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
90
|
+
|
|
91
|
+
background-color: var(--co-fore-lm);
|
|
92
|
+
|
|
96
93
|
top: 0;
|
|
97
94
|
right: 0;
|
|
98
95
|
}
|
|
@@ -137,9 +134,9 @@
|
|
|
137
134
|
[ui-form-input] {
|
|
138
135
|
@extend %item;
|
|
139
136
|
border-style: dashed;
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
137
|
+
|
|
138
|
+
border-color: var(--co-case);
|
|
139
|
+
|
|
143
140
|
input {
|
|
144
141
|
position: absolute;
|
|
145
142
|
width: 100%;
|
|
@@ -149,9 +146,7 @@
|
|
|
149
146
|
opacity: 0;
|
|
150
147
|
|
|
151
148
|
&:-webkit-autofill {
|
|
152
|
-
|
|
153
|
-
box-shadow: 0 0 0 1000px mix(co(weak), co(fore), 50%) inset;
|
|
154
|
-
}
|
|
149
|
+
box-shadow: 0 0 0 1000px var(--bg-weak) inset;
|
|
155
150
|
}
|
|
156
151
|
}
|
|
157
152
|
}
|
|
@@ -39,7 +39,7 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
39
39
|
|
|
40
40
|
&:hover {
|
|
41
41
|
@include theme {
|
|
42
|
-
box-shadow: inset 0 -1px 0 0
|
|
42
|
+
box-shadow: inset 0 -1px 0 0 var(--co-main-mm);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -48,8 +48,8 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
48
48
|
@include theme {
|
|
49
49
|
background-color: co(fore);
|
|
50
50
|
box-shadow:
|
|
51
|
-
inset 0 -1px 0 0
|
|
52
|
-
0 2px 0 0
|
|
51
|
+
inset 0 -1px 0 0 var(--co-main-mm),
|
|
52
|
+
0 2px 0 0 var(--co-main-ss);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
|
|
@@ -85,7 +85,7 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
85
85
|
|
|
86
86
|
&::-webkit-input-placeholder {
|
|
87
87
|
@include theme {
|
|
88
|
-
color:
|
|
88
|
+
color: var(--co-read-mm);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
}
|
|
@@ -290,10 +290,10 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
290
290
|
@each $c in $co {
|
|
291
291
|
&[ui-form~='co:#{$c}'] {
|
|
292
292
|
@include theme {
|
|
293
|
-
color:
|
|
293
|
+
color: var(--co-#{$c}-text);
|
|
294
294
|
box-shadow:
|
|
295
|
-
inset 0 -1px 0 0
|
|
296
|
-
0 2px 0 0
|
|
295
|
+
inset 0 -1px 0 0 var(--co-#{$c}-ml),
|
|
296
|
+
0 2px 0 0 var(--co-#{$c}-ss) !important;
|
|
297
297
|
background-color: transparent;
|
|
298
298
|
}
|
|
299
299
|
}
|
|
@@ -301,10 +301,10 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
301
301
|
&[ui-form~='co:hover:#{$c}'] {
|
|
302
302
|
&:hover {
|
|
303
303
|
@include theme {
|
|
304
|
-
color:
|
|
304
|
+
color: var(--co-#{$c}-text);
|
|
305
305
|
box-shadow:
|
|
306
|
-
inset 0 -1px 0 0
|
|
307
|
-
0 2px 0 0
|
|
306
|
+
inset 0 -1px 0 0 var(--co-#{$c}-ml),
|
|
307
|
+
0 2px 0 0 var(--co-#{$c}-ss) !important;
|
|
308
308
|
background-color: transparent;
|
|
309
309
|
}
|
|
310
310
|
}
|
|
@@ -313,10 +313,10 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
313
313
|
&[ui-form~='co:focus:#{$c}'] {
|
|
314
314
|
&:focus-within {
|
|
315
315
|
@include theme {
|
|
316
|
-
color:
|
|
316
|
+
color: var(--co-#{$c}-text);
|
|
317
317
|
box-shadow:
|
|
318
|
-
inset 0 -1px 0 0
|
|
319
|
-
0 2px 0 0
|
|
318
|
+
inset 0 -1px 0 0 var(--co-#{$c}-ml),
|
|
319
|
+
0 2px 0 0 var(--co-#{$c}-ss) !important;
|
|
320
320
|
background-color: transparent;
|
|
321
321
|
}
|
|
322
322
|
}
|
|
@@ -30,7 +30,7 @@ $co: 'info', 'well', 'warn', 'risk';
|
|
|
30
30
|
|
|
31
31
|
&:hover {
|
|
32
32
|
@include theme {
|
|
33
|
-
box-shadow: inset 0 0 0 1px
|
|
33
|
+
box-shadow: inset 0 0 0 1px var(--co-main-mm);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
@@ -38,8 +38,8 @@ $co: 'info', 'well', 'warn', 'risk';
|
|
|
38
38
|
&:focus {
|
|
39
39
|
@include theme {
|
|
40
40
|
box-shadow:
|
|
41
|
-
inset 0 0 0 1px
|
|
42
|
-
0 0 0 2px
|
|
41
|
+
inset 0 0 0 1px var(--co-main-mm),
|
|
42
|
+
0 0 0 2px var(--co-main-ss);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -47,22 +47,22 @@ $co: 'info', 'well', 'warn', 'risk';
|
|
|
47
47
|
@each $c in $co {
|
|
48
48
|
&[ui-form~='co:#{$c}'] {
|
|
49
49
|
@include theme {
|
|
50
|
-
color:
|
|
50
|
+
color: var(--co-#{$c}-text);
|
|
51
51
|
box-shadow:
|
|
52
|
-
inset 0 0 0 1px
|
|
53
|
-
0 0 0 2px
|
|
54
|
-
background-color:
|
|
52
|
+
inset 0 0 0 1px var(--co-#{$c}-ml),
|
|
53
|
+
0 0 0 2px var(--co-#{$c}-ss) !important;
|
|
54
|
+
background-color: var(--co-#{$c}-sl);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
&[ui-form~='co:hover:#{$c}'] {
|
|
59
59
|
&:hover {
|
|
60
60
|
@include theme {
|
|
61
|
-
color:
|
|
61
|
+
color: var(--co-#{$c}-text);
|
|
62
62
|
box-shadow:
|
|
63
|
-
inset 0 0 0 1px
|
|
64
|
-
0 0 0 2px
|
|
65
|
-
background-color:
|
|
63
|
+
inset 0 0 0 1px var(--co-#{$c}-ml),
|
|
64
|
+
0 0 0 2px var(--co-#{$c}-ss) !important;
|
|
65
|
+
background-color: var(--co-#{$c}-sl);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
}
|
|
@@ -70,11 +70,11 @@ $co: 'info', 'well', 'warn', 'risk';
|
|
|
70
70
|
&[ui-form~='co:focus:#{$c}'] {
|
|
71
71
|
&:focus-within {
|
|
72
72
|
@include theme {
|
|
73
|
-
color:
|
|
73
|
+
color: var(--co-#{$c}-text);
|
|
74
74
|
box-shadow:
|
|
75
|
-
inset 0 0 0 1px
|
|
76
|
-
0 0 0 2px
|
|
77
|
-
background-color:
|
|
75
|
+
inset 0 0 0 1px var(--co-#{$c}-ml),
|
|
76
|
+
0 0 0 2px var(--co-#{$c}-ss) !important;
|
|
77
|
+
background-color: var(--co-#{$c}-sl);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
}
|
|
@@ -92,7 +92,7 @@ $co: 'info', 'well', 'warn', 'risk';
|
|
|
92
92
|
|
|
93
93
|
&::-webkit-input-placeholder {
|
|
94
94
|
@include theme {
|
|
95
|
-
color:
|
|
95
|
+
color: var(--co-read-mm);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
border-style: solid;
|
|
26
26
|
border-width: 1px;
|
|
27
27
|
@include theme {
|
|
28
|
-
border-color:
|
|
28
|
+
border-color:var(--co-line)
|
|
29
29
|
background-color: co(fore);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
width: 100%;
|
|
92
92
|
height: 100%;
|
|
93
93
|
@include theme {
|
|
94
|
-
background-color:
|
|
94
|
+
background-color: var(--co-fore-lm);
|
|
95
95
|
}
|
|
96
96
|
top: 0;
|
|
97
97
|
right: 0;
|
|
@@ -49,13 +49,9 @@
|
|
|
49
49
|
.ui-radio > input + * {
|
|
50
50
|
-webkit-transition: all 0.3s;
|
|
51
51
|
-moz-transition: all 0.3s;
|
|
52
|
-
-
|
|
52
|
+
-transition: all 0.3s;
|
|
53
53
|
transition: all 0.3s;
|
|
54
54
|
}
|
|
55
|
-
.ui-radio[data-co='vice'] > input:checked + * {
|
|
56
|
-
background: #ffba46;
|
|
57
|
-
border: 1px solid #ffa81b;
|
|
58
|
-
}
|
|
59
55
|
.ui-radio[data-co='success'] > input:checked + * {
|
|
60
56
|
background: #7cd22b;
|
|
61
57
|
border: 1px solid #71c323;
|
|
@@ -11,12 +11,11 @@
|
|
|
11
11
|
& > * {
|
|
12
12
|
position: relative;
|
|
13
13
|
padding: 1.5em;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
14
|
+
|
|
15
|
+
box-shadow:
|
|
16
|
+
inset -1px -1px 0 0 var(--co-line),
|
|
17
|
+
-1px -1px 0 0 var(--co-line);
|
|
18
|
+
background-color: co(fore);
|
|
20
19
|
|
|
21
20
|
&:hover {
|
|
22
21
|
[ui-grid-select] {
|
|
@@ -38,9 +37,8 @@
|
|
|
38
37
|
left: 0;
|
|
39
38
|
top: 0;
|
|
40
39
|
border-radius: 0.3em;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
40
|
+
|
|
41
|
+
background-color: var(--co-weak);
|
|
44
42
|
}
|
|
45
43
|
}
|
|
46
44
|
|
|
@@ -38,10 +38,8 @@
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
&:hover {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
box-shadow: inset 0 0 0 1px co(text);
|
|
44
|
-
}
|
|
41
|
+
box-shadow: inset 0 0 0 1px var(--co-text);
|
|
42
|
+
|
|
45
43
|
& > * {
|
|
46
44
|
transform: scale3d(0.85, 0.85, 1);
|
|
47
45
|
}
|
|
@@ -49,18 +47,14 @@
|
|
|
49
47
|
|
|
50
48
|
// 激活
|
|
51
49
|
&.active {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
box-shadow: inset 0 0 0 1px co(main);
|
|
55
|
-
}
|
|
50
|
+
// border: 1px solid var(--co-main) !important;
|
|
51
|
+
box-shadow: inset 0 0 0 1px var(--co-main);
|
|
56
52
|
}
|
|
57
53
|
// 选中
|
|
58
54
|
&.selected,
|
|
59
55
|
&[selected~='1'] {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
box-shadow: inset 0 0 0 1px co(main);
|
|
63
|
-
}
|
|
56
|
+
// border: 1px solid var(--co-main) !important;
|
|
57
|
+
box-shadow: inset 0 0 0 1px var(--co-main);
|
|
64
58
|
|
|
65
59
|
&::after {
|
|
66
60
|
position: absolute;
|
|
@@ -78,10 +72,10 @@
|
|
|
78
72
|
radial-gradient(circle at 47% 70%, currentColor 9%, transparent 10%), radial-gradient(circle at 53% 62%, currentColor 9%, transparent 10%),
|
|
79
73
|
radial-gradient(circle at 59% 54%, currentColor 9%, transparent 10%), radial-gradient(circle at 65% 46%, currentColor 9%, transparent 10%),
|
|
80
74
|
radial-gradient(circle at 71% 38%, currentColor 8%, transparent 9%);
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
75
|
+
|
|
76
|
+
background-color: var(--co-main);
|
|
77
|
+
color: var(--co-back);
|
|
78
|
+
|
|
85
79
|
animation: am-selected 0.2s 0.1s both;
|
|
86
80
|
}
|
|
87
81
|
}
|
|
@@ -123,9 +117,7 @@
|
|
|
123
117
|
@each $co in $color {
|
|
124
118
|
&[#{$n}~='#{$co}'] {
|
|
125
119
|
&#{$sub} {
|
|
126
|
-
|
|
127
|
-
box-shadow: inset 0 0 0 1px co($co);
|
|
128
|
-
}
|
|
120
|
+
box-shadow: inset 0 0 0 1px var(--co-#{$co});
|
|
129
121
|
}
|
|
130
122
|
}
|
|
131
123
|
}
|
|
@@ -16,9 +16,8 @@
|
|
|
16
16
|
height: 1px;
|
|
17
17
|
flex-grow: 1;
|
|
18
18
|
flex-shrink: 1;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
19
|
+
|
|
20
|
+
background: var(--co-line);
|
|
22
21
|
}
|
|
23
22
|
|
|
24
23
|
& > * {
|
|
@@ -42,9 +41,7 @@
|
|
|
42
41
|
&[ui-line~='co:#{$co}'] {
|
|
43
42
|
&::before,
|
|
44
43
|
&::after {
|
|
45
|
-
|
|
46
|
-
background: co($co);
|
|
47
|
-
}
|
|
44
|
+
background: var(--co-#{$co});
|
|
48
45
|
}
|
|
49
46
|
}
|
|
50
47
|
}
|
|
@@ -19,14 +19,10 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
&::before {
|
|
22
|
-
|
|
23
|
-
background: linear-gradient(90deg, transparent 0%, co(line) 10%);
|
|
24
|
-
}
|
|
22
|
+
background: linear-gradient(90deg, transparent 0%, var(--co-line) 10%);
|
|
25
23
|
}
|
|
26
24
|
&::after {
|
|
27
|
-
|
|
28
|
-
background: linear-gradient(270deg, transparent 0%, co(line) 10%);
|
|
29
|
-
}
|
|
25
|
+
background: linear-gradient(270deg, transparent 0%, var(--co-line) 10%);
|
|
30
26
|
}
|
|
31
27
|
|
|
32
28
|
& > * {
|
|
@@ -49,14 +45,10 @@
|
|
|
49
45
|
@each $co in $cos {
|
|
50
46
|
&[ui-line~='co:#{$co}'] {
|
|
51
47
|
&::before {
|
|
52
|
-
|
|
53
|
-
background: linear-gradient(90deg, transparent 0%, co($co) 10%);
|
|
54
|
-
}
|
|
48
|
+
background: linear-gradient(90deg, transparent 0%, var(--co-#{$co}) 10%);
|
|
55
49
|
}
|
|
56
50
|
&::after {
|
|
57
|
-
|
|
58
|
-
background: linear-gradient(270deg, transparent 0%, co($co) 10%);
|
|
59
|
-
}
|
|
51
|
+
background: linear-gradient(270deg, transparent 0%, var(--co-#{$co}) 10%);
|
|
60
52
|
}
|
|
61
53
|
}
|
|
62
54
|
}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
$type: 'main', '
|
|
1
|
+
$type: 'main', 'read', 'info', 'well', 'warn', 'risk';
|
|
2
2
|
|
|
3
3
|
[ui-list~='@a'] {
|
|
4
4
|
// 基础样式
|
|
5
5
|
& {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
6
|
+
background-color: var(--co-fore);
|
|
7
|
+
box-shadow:
|
|
8
|
+
inset 0 0.3rem 0 0 var(--co-main),
|
|
9
|
+
inset 0 0 0 1px var(--co-line);
|
|
10
|
+
|
|
12
11
|
border-radius: 0.2rem;
|
|
13
12
|
|
|
14
13
|
// 标题
|
|
@@ -21,9 +20,8 @@ $type: 'main', 'vice', 'read', 'info', 'well', 'warn', 'risk';
|
|
|
21
20
|
padding: 0;
|
|
22
21
|
|
|
23
22
|
& > * {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
23
|
+
border-bottom: 1px solid var(--co-line-fore);
|
|
24
|
+
|
|
27
25
|
padding: 1rem;
|
|
28
26
|
|
|
29
27
|
&:last-of-type {
|
|
@@ -49,14 +47,11 @@ $type: 'main', 'vice', 'read', 'info', 'well', 'warn', 'risk';
|
|
|
49
47
|
}
|
|
50
48
|
|
|
51
49
|
// 主题颜色
|
|
52
|
-
@each $
|
|
53
|
-
&[ui-list~='#{$
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
inset 0 0.3rem 0 0 co($name),
|
|
58
|
-
inset 0 0 0 1px co(line);
|
|
59
|
-
}
|
|
50
|
+
@each $co in $type {
|
|
51
|
+
&[ui-list~='#{$co}'] {
|
|
52
|
+
box-shadow:
|
|
53
|
+
inset 0 0.3rem 0 0 var(--co-#{$co}),
|
|
54
|
+
inset 0 0 0 1px var(--co-line);
|
|
60
55
|
}
|
|
61
56
|
}
|
|
62
57
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
$cos: 'main', '
|
|
1
|
+
$cos: 'main', 'read', 'info', 'well', 'warn', 'risk';
|
|
2
2
|
|
|
3
3
|
[ui-list~='@b'] {
|
|
4
4
|
// 容器
|
|
@@ -15,9 +15,8 @@ $cos: 'main', 'vice', 'read', 'info', 'well', 'warn', 'risk';
|
|
|
15
15
|
height: 100%;
|
|
16
16
|
top: 0;
|
|
17
17
|
left: auto;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
18
|
+
|
|
19
|
+
background: linear-gradient(0deg, rgba(var(--co-line), 0) 0%, var(--co-line) 3%);
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
22
|
|
|
@@ -40,9 +39,8 @@ $cos: 'main', 'vice', 'read', 'info', 'well', 'warn', 'risk';
|
|
|
40
39
|
left: 0;
|
|
41
40
|
top: -0.2em;
|
|
42
41
|
margin-left: -0.7em;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
42
|
+
|
|
43
|
+
background-image: radial-gradient(at 50% 50%, var(--co-fore) 37%, var(--co-line) 39%, var(--co-line) 47%, var(--co-fore) 49%);
|
|
46
44
|
}
|
|
47
45
|
|
|
48
46
|
&::after {
|
|
@@ -64,15 +62,13 @@ $cos: 'main', 'vice', 'read', 'info', 'well', 'warn', 'risk';
|
|
|
64
62
|
&.active,
|
|
65
63
|
&:hover {
|
|
66
64
|
&::before {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
65
|
+
background-image: radial-gradient(at 50% 50%, var(--co-main) 20%, transparent 23%),
|
|
66
|
+
radial-gradient(at 50% 50%, var(--co-fore) 37%, var(--co-main) 39%, var(--co-main) 47%, var(--co-fore) 49%);
|
|
70
67
|
}
|
|
71
68
|
&::after {
|
|
72
69
|
font-weight: bold;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
70
|
+
|
|
71
|
+
color: var(--co-main);
|
|
76
72
|
}
|
|
77
73
|
}
|
|
78
74
|
|