@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
|
@@ -65,9 +65,9 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
65
65
|
[ui-form-dropdown='@b'] {
|
|
66
66
|
position: absolute;
|
|
67
67
|
top: 100%;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
|
|
69
|
+
background: var(--co-fore);
|
|
70
|
+
|
|
71
71
|
left: 0;
|
|
72
72
|
margin-top: 0.5em;
|
|
73
73
|
padding: 0.5em;
|
|
@@ -94,9 +94,9 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
94
94
|
box-sizing: content-box;
|
|
95
95
|
width: 0.5em;
|
|
96
96
|
height: 0.5em;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
|
|
98
|
+
background: var(--co-fore);
|
|
99
|
+
|
|
100
100
|
top: -0.25em;
|
|
101
101
|
left: 50%;
|
|
102
102
|
margin-left: -0.25em;
|
|
@@ -24,9 +24,8 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
24
24
|
line-height: 1.5em;
|
|
25
25
|
padding: 0.5em 0;
|
|
26
26
|
transition: all 0.5s;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
27
|
+
|
|
28
|
+
box-shadow: inset 0 -1px 0 0 var(--co-case);
|
|
30
29
|
|
|
31
30
|
display: inline-flex;
|
|
32
31
|
justify-content: space-between;
|
|
@@ -37,19 +36,15 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
37
36
|
}
|
|
38
37
|
|
|
39
38
|
&:hover {
|
|
40
|
-
|
|
41
|
-
box-shadow: inset 0 -1px 0 0 rgba(co(main), 0.5);
|
|
42
|
-
}
|
|
39
|
+
box-shadow: inset 0 -1px 0 0 var(--co-main-mm);
|
|
43
40
|
}
|
|
44
41
|
|
|
45
42
|
&.form-focus,
|
|
46
43
|
&:focus-within {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
0 2px 0 0 rgba(co(main), 0.15);
|
|
52
|
-
}
|
|
44
|
+
background-color: co(fore);
|
|
45
|
+
box-shadow:
|
|
46
|
+
inset 0 -1px 0 0 var(--co-main-mm),
|
|
47
|
+
0 2px 0 0 var(--co-main-ss);
|
|
53
48
|
}
|
|
54
49
|
|
|
55
50
|
input {
|
|
@@ -78,17 +73,13 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
78
73
|
}
|
|
79
74
|
|
|
80
75
|
&:-webkit-autofill {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
-webkit-text-fill-color: co(read);
|
|
85
|
-
}
|
|
76
|
+
box-shadow: 0 0 0 1000px co(fore) inset;
|
|
77
|
+
color: co(read);
|
|
78
|
+
-webkit-text-fill-color: co(read);
|
|
86
79
|
}
|
|
87
80
|
|
|
88
81
|
&::-webkit-input-placeholder {
|
|
89
|
-
|
|
90
|
-
color: rgba(co(read), 0.5);
|
|
91
|
-
}
|
|
82
|
+
color: var(--co-read-mm);
|
|
92
83
|
}
|
|
93
84
|
}
|
|
94
85
|
|
|
@@ -113,36 +104,27 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
113
104
|
// 颜色
|
|
114
105
|
@each $c in $co {
|
|
115
106
|
&[ui-form~='co:#{$c}'] {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
0 2px 0 0 rgba(co($c), 0.15) !important;
|
|
121
|
-
// background-color: rgba(co($c), 0.03);
|
|
122
|
-
}
|
|
107
|
+
color: var(--co-#{$c}-text);
|
|
108
|
+
box-shadow:
|
|
109
|
+
inset 0 -1px 0 0 var(--co-#{$c}-ml),
|
|
110
|
+
0 2px 0 0 var(--co-#{$c}-ss) !important;
|
|
123
111
|
}
|
|
124
112
|
|
|
125
113
|
&[ui-form~='co:hover:#{$c}'] {
|
|
126
114
|
&:hover {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
0 2px 0 0 rgba(co($c), 0.15) !important;
|
|
132
|
-
// background-color: rgba(co($c), 0.03);
|
|
133
|
-
}
|
|
115
|
+
color: var(--co-#{$c}-text);
|
|
116
|
+
box-shadow:
|
|
117
|
+
inset 0 -1px 0 0 var(--co-#{$c}-ml),
|
|
118
|
+
0 2px 0 0 var(--co-#{$c}-ss) !important;
|
|
134
119
|
}
|
|
135
120
|
}
|
|
136
121
|
|
|
137
122
|
&[ui-form~='co:focus:#{$c}'] {
|
|
138
123
|
&:focus-within {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
0 2px 0 0 rgba(co($c), 0.15) !important;
|
|
144
|
-
// background-color: rgba(co($c), 0.03);
|
|
145
|
-
}
|
|
124
|
+
color: var(--co-#{$c}-text);
|
|
125
|
+
box-shadow:
|
|
126
|
+
inset 0 -1px 0 0 var(--co-#{$c}-ml),
|
|
127
|
+
0 2px 0 0 var(--co-#{$c}-ss) !important;
|
|
146
128
|
}
|
|
147
129
|
}
|
|
148
130
|
}
|
|
@@ -19,9 +19,9 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
19
19
|
width: 0.8em;
|
|
20
20
|
height: 0.8em;
|
|
21
21
|
display: inline-block;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
|
|
23
|
+
color: var(--co-note);
|
|
24
|
+
|
|
25
25
|
background:
|
|
26
26
|
linear-gradient(45deg, transparent 51%, currentColor 52%, currentColor 67%, transparent 68%) no-repeat 23.5% 65% / 35% 50%,
|
|
27
27
|
linear-gradient(-45deg, transparent 51%, currentColor 52%, currentColor 67%, transparent 68%) no-repeat 76.5% 65% / 35% 50%;
|
|
@@ -31,9 +31,9 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
31
31
|
[ui-form-dropdown] {
|
|
32
32
|
position: absolute;
|
|
33
33
|
top: 100%;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
|
|
35
|
+
background: var(--co-fore);
|
|
36
|
+
|
|
37
37
|
min-width: 100%;
|
|
38
38
|
max-height: 20rem;
|
|
39
39
|
left: 0;
|
|
@@ -62,9 +62,9 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
62
62
|
box-sizing: content-box;
|
|
63
63
|
width: 0.5em;
|
|
64
64
|
height: 0.5em;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
|
|
66
|
+
background: var(--co-fore);
|
|
67
|
+
|
|
68
68
|
top: -0.25em;
|
|
69
69
|
left: 50%;
|
|
70
70
|
margin-left: -0.25em;
|
|
@@ -84,9 +84,7 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
84
84
|
transition: all 0.35s;
|
|
85
85
|
border-radius: 0.2em;
|
|
86
86
|
&:hover {
|
|
87
|
-
|
|
88
|
-
background: co(weak);
|
|
89
|
-
}
|
|
87
|
+
background: var(--co-weak);
|
|
90
88
|
}
|
|
91
89
|
}
|
|
92
90
|
}
|
|
@@ -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(--co-fore);
|
|
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,59 +24,47 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
24
24
|
border-radius: 0.25em;
|
|
25
25
|
transition: all 0.5s;
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
background-color: co(fore);
|
|
30
|
-
}
|
|
27
|
+
box-shadow: inset 0 0 0 1px var(--co-case);
|
|
28
|
+
background-color: var(--co-fore);
|
|
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
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
0 0 0 2px rgba(co(main), 0.15);
|
|
44
|
-
}
|
|
36
|
+
box-shadow:
|
|
37
|
+
inset 0 0 0 1px var(--co-main-mm),
|
|
38
|
+
0 0 0 2px var(--co-main-ss);
|
|
45
39
|
}
|
|
46
40
|
|
|
47
41
|
// 颜色
|
|
48
42
|
@each $c in $co {
|
|
49
43
|
&[ui-form~='co:#{$c}'] {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
background-color: rgba(co($c), 0.035);
|
|
56
|
-
}
|
|
44
|
+
color: var(--co-#{$c}-text);
|
|
45
|
+
box-shadow:
|
|
46
|
+
inset 0 0 0 1px var(--co-#{$c}-ml),
|
|
47
|
+
0 0 0 2px var(--co-#{$c}-ss) !important;
|
|
48
|
+
background-color: var(--co-#{$c}-sl);
|
|
57
49
|
}
|
|
58
50
|
|
|
59
51
|
&[ui-form~='co:hover:#{$c}'] {
|
|
60
52
|
&:hover {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
background-color: rgba(co($c), 0.035);
|
|
67
|
-
}
|
|
53
|
+
color: var(--co-#{$c}-text);
|
|
54
|
+
box-shadow:
|
|
55
|
+
inset 0 0 0 1px var(--co-#{$c}-ml),
|
|
56
|
+
0 0 0 2px var(--co-#{$c}-ss) !important;
|
|
57
|
+
background-color: var(--co-#{$c}-sl);
|
|
68
58
|
}
|
|
69
59
|
}
|
|
70
60
|
|
|
71
61
|
&[ui-form~='co:focus:#{$c}'] {
|
|
72
62
|
&:focus-within {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
background-color: rgba(co($c), 0.035);
|
|
79
|
-
}
|
|
63
|
+
color: var(--co-#{$c}-text);
|
|
64
|
+
box-shadow:
|
|
65
|
+
inset 0 0 0 1px var(--co-#{$c}-ml),
|
|
66
|
+
0 0 0 2px var(--co-#{$c}-ss) !important;
|
|
67
|
+
background-color: var(--co-#{$c}-sl);
|
|
80
68
|
}
|
|
81
69
|
}
|
|
82
70
|
}
|
|
@@ -84,17 +72,13 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
84
72
|
&,
|
|
85
73
|
textarea {
|
|
86
74
|
&:-webkit-autofill {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
-webkit-text-fill-color: co(read);
|
|
91
|
-
}
|
|
75
|
+
box-shadow: 0 0 0 1000px var(--co-fore) inset;
|
|
76
|
+
color: var(--co-read);
|
|
77
|
+
-webkit-text-fill-color: var(--co-read);
|
|
92
78
|
}
|
|
93
79
|
|
|
94
80
|
&::-webkit-input-placeholder {
|
|
95
|
-
|
|
96
|
-
color: rgba(co(read), 0.5);
|
|
97
|
-
}
|
|
81
|
+
color: var(--co-read-mm);
|
|
98
82
|
}
|
|
99
83
|
}
|
|
100
84
|
|
|
@@ -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(--co-fore);
|
|
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: co(fore);
|
|
76
|
-
}
|
|
73
|
+
background-color: var(--co-fore);
|
|
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
|
}
|
|
@@ -138,9 +135,9 @@
|
|
|
138
135
|
[ui-form-input] {
|
|
139
136
|
@extend %item;
|
|
140
137
|
border-style: dashed;
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
138
|
+
|
|
139
|
+
border-color: var(--co-case);
|
|
140
|
+
|
|
144
141
|
input {
|
|
145
142
|
position: absolute;
|
|
146
143
|
width: 100%;
|
|
@@ -150,9 +147,7 @@
|
|
|
150
147
|
opacity: 0;
|
|
151
148
|
|
|
152
149
|
&:-webkit-autofill {
|
|
153
|
-
|
|
154
|
-
box-shadow: 0 0 0 1000px co(fore) inset;
|
|
155
|
-
}
|
|
150
|
+
box-shadow: 0 0 0 1000px var(--co-fore) inset;
|
|
156
151
|
}
|
|
157
152
|
}
|
|
158
153
|
}
|
|
@@ -25,20 +25,17 @@
|
|
|
25
25
|
// 清理
|
|
26
26
|
[ui-form-clean] {
|
|
27
27
|
display: inline-block;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
28
|
+
|
|
29
|
+
color: var(--co-case);
|
|
30
|
+
background:
|
|
31
|
+
linear-gradient(45deg, transparent 40%, var(--co-fore) 45%, var(--co-fore) 55%, transparent 60%) no-repeat center / 38% 38%,
|
|
32
|
+
linear-gradient(-45deg, transparent 40%, var(--co-fore) 45%, var(--co-fore) 55%, transparent 60%) no-repeat center / 38% 38%,
|
|
33
|
+
radial-gradient(circle at 50% 50%, currentColor 53%, transparent 58%);
|
|
35
34
|
}
|
|
36
35
|
|
|
37
36
|
input:-webkit-autofill {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
-webkit-text-fill-color: co(read);
|
|
42
|
-
}
|
|
37
|
+
box-shadow: 0 0 0 1000px var(--bg-weak) inset;
|
|
38
|
+
color: var(--co-read);
|
|
39
|
+
-webkit-text-fill-color: var(--co-read);
|
|
43
40
|
}
|
|
44
41
|
}
|
|
@@ -60,9 +60,8 @@ $co: 'info', 'well', 'warn', 'risk';
|
|
|
60
60
|
border-radius: 25%;
|
|
61
61
|
transform: scale3d(0.9, 0.9, 1);
|
|
62
62
|
flex-shrink: 0;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
63
|
+
|
|
64
|
+
background-color: var(--bg-weak);
|
|
66
65
|
|
|
67
66
|
&:checked {
|
|
68
67
|
background:
|
|
@@ -76,9 +75,7 @@ $co: 'info', 'well', 'warn', 'risk';
|
|
|
76
75
|
animation: am-checked 0.3s;
|
|
77
76
|
&,
|
|
78
77
|
& + * {
|
|
79
|
-
|
|
80
|
-
color: co(main);
|
|
81
|
-
}
|
|
78
|
+
color: co(main);
|
|
82
79
|
}
|
|
83
80
|
}
|
|
84
81
|
|
|
@@ -35,9 +35,9 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
35
35
|
[ui-form-dropdown] {
|
|
36
36
|
position: absolute;
|
|
37
37
|
top: 100%;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
|
|
39
|
+
background: var(--co-fore);
|
|
40
|
+
|
|
41
41
|
min-width: 100%;
|
|
42
42
|
max-height: 20rem;
|
|
43
43
|
left: 0;
|
|
@@ -66,9 +66,9 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
66
66
|
box-sizing: content-box;
|
|
67
67
|
width: 0.5em;
|
|
68
68
|
height: 0.5em;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
|
|
70
|
+
background: var(--co-fore);
|
|
71
|
+
|
|
72
72
|
top: -0.25em;
|
|
73
73
|
left: 50%;
|
|
74
74
|
margin-left: -0.25em;
|
|
@@ -88,9 +88,7 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
88
88
|
transition: all 0.35s;
|
|
89
89
|
border-radius: 0.2em;
|
|
90
90
|
&:hover {
|
|
91
|
-
|
|
92
|
-
background: co(weak);
|
|
93
|
-
}
|
|
91
|
+
background: var(--co-weak);
|
|
94
92
|
}
|
|
95
93
|
}
|
|
96
94
|
}
|
|
@@ -25,10 +25,9 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
25
25
|
padding: 0.5em;
|
|
26
26
|
border-radius: 0.25em;
|
|
27
27
|
transition: all 0.5s;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
28
|
+
|
|
29
|
+
box-shadow: inset 0 0 0 1px var(--co-case);
|
|
30
|
+
background-color: var(--bg-weak);
|
|
32
31
|
|
|
33
32
|
display: inline-flex;
|
|
34
33
|
justify-content: space-between;
|
|
@@ -39,19 +38,15 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
39
38
|
}
|
|
40
39
|
|
|
41
40
|
&:hover {
|
|
42
|
-
|
|
43
|
-
box-shadow: inset 0 0 0 1px rgba(co(main), 0.5);
|
|
44
|
-
}
|
|
41
|
+
box-shadow: inset 0 0 0 1px var(--co-main-mm);
|
|
45
42
|
}
|
|
46
43
|
|
|
47
44
|
&.form-focus,
|
|
48
45
|
&:focus-within {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
0 0 0 2px rgba(co(main), 0.15);
|
|
54
|
-
}
|
|
46
|
+
background-color: var(--bg-weak);
|
|
47
|
+
box-shadow:
|
|
48
|
+
inset 0 0 0 1px var(--co-main-mm),
|
|
49
|
+
0 0 0 2px var(--co-main-ss);
|
|
55
50
|
}
|
|
56
51
|
|
|
57
52
|
input {
|
|
@@ -77,17 +72,13 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
77
72
|
}
|
|
78
73
|
|
|
79
74
|
&:-webkit-autofill {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
-webkit-text-fill-color: co(read);
|
|
84
|
-
}
|
|
75
|
+
box-shadow: 0 0 0 1000px var(--bg-weak) inset;
|
|
76
|
+
color: co(read);
|
|
77
|
+
-webkit-text-fill-color: co(read);
|
|
85
78
|
}
|
|
86
79
|
|
|
87
80
|
&::-webkit-input-placeholder {
|
|
88
|
-
|
|
89
|
-
color: rgba(co(read), 0.5);
|
|
90
|
-
}
|
|
81
|
+
color: var(--co-read-mm);
|
|
91
82
|
}
|
|
92
83
|
}
|
|
93
84
|
|
|
@@ -112,36 +103,30 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
112
103
|
// 颜色
|
|
113
104
|
@each $c in $co {
|
|
114
105
|
&[ui-form~='co:#{$c}'] {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
background-color: rgba(co($c), 0.03);
|
|
121
|
-
}
|
|
106
|
+
color: var(--co-#{$c}-text);
|
|
107
|
+
box-shadow:
|
|
108
|
+
inset 0 0 0 1px var(--co-#{$c}-ml),
|
|
109
|
+
0 0 0 2px var(--co-#{$c}-ss) !important;
|
|
110
|
+
background-color: var(--co-#{$c}-xs);
|
|
122
111
|
}
|
|
123
112
|
|
|
124
113
|
&[ui-form~='co:hover:#{$c}'] {
|
|
125
114
|
&:hover {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
background-color: rgba(co($c), 0.03);
|
|
132
|
-
}
|
|
115
|
+
color: var(--co-#{$c}-text);
|
|
116
|
+
box-shadow:
|
|
117
|
+
inset 0 0 0 1px var(--co-#{$c}-ml),
|
|
118
|
+
0 0 0 2px var(--co-#{$c}-ss) !important;
|
|
119
|
+
background-color: var(--co-#{$c}-xs);
|
|
133
120
|
}
|
|
134
121
|
}
|
|
135
122
|
|
|
136
123
|
&[ui-form~='co:focus:#{$c}'] {
|
|
137
124
|
&:focus-within {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
background-color: rgba(co($c), 0.03);
|
|
144
|
-
}
|
|
125
|
+
color: var(--co-#{$c}-text);
|
|
126
|
+
box-shadow:
|
|
127
|
+
inset 0 0 0 1px var(--co-#{$c}-ml),
|
|
128
|
+
0 0 0 2px var(--co-#{$c}-ss) !important;
|
|
129
|
+
background-color: var(--co-#{$c}-xs);
|
|
145
130
|
}
|
|
146
131
|
}
|
|
147
132
|
}
|
|
@@ -60,9 +60,8 @@ $co: 'info', 'well', 'warn', 'risk';
|
|
|
60
60
|
box-shadow: inset 0 0 0 1px currentColor;
|
|
61
61
|
border-radius: 50%;
|
|
62
62
|
flex-shrink: 0;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
63
|
+
|
|
64
|
+
background-color: var(--bg-weak);
|
|
66
65
|
|
|
67
66
|
&:checked {
|
|
68
67
|
background-image: radial-gradient(circle at 50% 50%, currentColor 38%, transparent 40%);
|
|
@@ -70,9 +69,7 @@ $co: 'info', 'well', 'warn', 'risk';
|
|
|
70
69
|
animation: am-radio 0.3s;
|
|
71
70
|
&,
|
|
72
71
|
& + * {
|
|
73
|
-
|
|
74
|
-
color: co(main);
|
|
75
|
-
}
|
|
72
|
+
color: var(--co-main);
|
|
76
73
|
}
|
|
77
74
|
}
|
|
78
75
|
|
|
@@ -16,9 +16,9 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
16
16
|
height: 0.8em;
|
|
17
17
|
display: inline-block;
|
|
18
18
|
border-radius: 35%;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
|
|
20
|
+
color: var(--co-note);
|
|
21
|
+
|
|
22
22
|
background:
|
|
23
23
|
linear-gradient(45deg, transparent 51%, currentColor 52%, currentColor 67%, transparent 68%) no-repeat 23.5% 65% / 35% 50%,
|
|
24
24
|
linear-gradient(-45deg, transparent 51%, currentColor 52%, currentColor 67%, transparent 68%) no-repeat 76.5% 65% / 35% 50%;
|
|
@@ -28,9 +28,9 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
28
28
|
[ui-form-dropdown] {
|
|
29
29
|
position: absolute;
|
|
30
30
|
top: 100%;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
|
|
32
|
+
background: var(--co-fore);
|
|
33
|
+
|
|
34
34
|
min-width: 100%;
|
|
35
35
|
max-height: 20rem;
|
|
36
36
|
left: 0;
|
|
@@ -59,9 +59,9 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
59
59
|
box-sizing: content-box;
|
|
60
60
|
width: 0.5em;
|
|
61
61
|
height: 0.5em;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
|
|
63
|
+
background: var(--co-fore);
|
|
64
|
+
|
|
65
65
|
top: -0.25em;
|
|
66
66
|
left: 50%;
|
|
67
67
|
margin-left: -0.25em;
|
|
@@ -81,9 +81,7 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
81
81
|
transition: all 0.35s;
|
|
82
82
|
border-radius: 0.2em;
|
|
83
83
|
&:hover {
|
|
84
|
-
|
|
85
|
-
background: co(weak);
|
|
86
|
-
}
|
|
84
|
+
background: var(--co-weak);
|
|
87
85
|
}
|
|
88
86
|
}
|
|
89
87
|
}
|