@neatui/css 1.0.26 → 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 +14 -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
|
@@ -24,10 +24,11 @@ $cos: 'main', 'text', 'read', 'note', 'idle', 'case', 'line', 'info', 'well', 'w
|
|
|
24
24
|
min-width: 2em;
|
|
25
25
|
min-height: 1.9em;
|
|
26
26
|
|
|
27
|
-
@include theme {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
// @include theme {
|
|
28
|
+
// background: mix(co(main), var(--co-fore), 85%);
|
|
29
|
+
// }
|
|
30
|
+
background: var(--co-main-fore-ls);
|
|
31
|
+
color: var(--co-fore);
|
|
31
32
|
|
|
32
33
|
&::after {
|
|
33
34
|
position: absolute;
|
|
@@ -42,9 +43,10 @@ $cos: 'main', 'text', 'read', 'note', 'idle', 'case', 'line', 'info', 'well', 'w
|
|
|
42
43
|
transition:
|
|
43
44
|
transform 0s,
|
|
44
45
|
opacity 0s;
|
|
45
|
-
@include theme {
|
|
46
|
-
|
|
47
|
-
}
|
|
46
|
+
// @include theme {
|
|
47
|
+
// border-top-color: mix(co(main), var(--co-fore), 85%);
|
|
48
|
+
// }
|
|
49
|
+
border-top-color: var(--co-main-fore-ls);
|
|
48
50
|
}
|
|
49
51
|
|
|
50
52
|
&[ui-form-tips~='rt'] {
|
|
@@ -76,13 +78,15 @@ $cos: 'main', 'text', 'read', 'note', 'idle', 'case', 'line', 'info', 'well', 'w
|
|
|
76
78
|
@each $co in $cos {
|
|
77
79
|
[ui-form~='co:#{$co}'] {
|
|
78
80
|
[ui-form-tips] {
|
|
79
|
-
@include theme {
|
|
80
|
-
|
|
81
|
-
}
|
|
81
|
+
// @include theme {
|
|
82
|
+
// background: mix(var(--co-#{$co}), var(--co-fore), 85%);
|
|
83
|
+
// }
|
|
84
|
+
background: var(--co-#{$co}-fore-ls);
|
|
82
85
|
&::after {
|
|
83
|
-
@include theme {
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
+
// @include theme {
|
|
87
|
+
// border-top-color: mix(var(--co-#{$co}), var(--co-fore), 85%);
|
|
88
|
+
// }
|
|
89
|
+
border-top-color: var(--co-#{$co}-fore-ls);
|
|
86
90
|
}
|
|
87
91
|
}
|
|
88
92
|
}
|
|
@@ -128,9 +132,9 @@ $cos: 'main', 'text', 'read', 'note', 'idle', 'case', 'line', 'info', 'well', 'w
|
|
|
128
132
|
}
|
|
129
133
|
|
|
130
134
|
&[ui-form-verify~='ok'] {
|
|
131
|
-
@include theme {
|
|
132
|
-
|
|
133
|
-
}
|
|
135
|
+
// @include theme {
|
|
136
|
+
color: var(--co-well);
|
|
137
|
+
// }
|
|
134
138
|
|
|
135
139
|
@keyframes am-verify-ok-1 {
|
|
136
140
|
0% {
|
|
@@ -175,9 +179,9 @@ $cos: 'main', 'text', 'read', 'note', 'idle', 'case', 'line', 'info', 'well', 'w
|
|
|
175
179
|
}
|
|
176
180
|
}
|
|
177
181
|
&[ui-form-verify~='no'] {
|
|
178
|
-
@include theme {
|
|
179
|
-
|
|
180
|
-
}
|
|
182
|
+
// @include theme {
|
|
183
|
+
color: var(--co-risk);
|
|
184
|
+
// }
|
|
181
185
|
|
|
182
186
|
@keyframes am-no-1 {
|
|
183
187
|
0% {
|
|
@@ -281,13 +285,13 @@ $cos: 'main', 'text', 'read', 'note', 'idle', 'case', 'line', 'info', 'well', 'w
|
|
|
281
285
|
display: none;
|
|
282
286
|
// opacity: 0.6;
|
|
283
287
|
right: 100%;
|
|
284
|
-
@include theme {
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
}
|
|
288
|
+
// @include theme {
|
|
289
|
+
background: var(--co-fore);
|
|
290
|
+
box-shadow:
|
|
291
|
+
-0.2em 0 0px 0.15em var(--co-fore),
|
|
292
|
+
0.2em 0 0px 0.15em var(--co-fore),
|
|
293
|
+
0 0 0px 0.15em var(--co-fore);
|
|
294
|
+
// }
|
|
291
295
|
|
|
292
296
|
&::before {
|
|
293
297
|
position: absolute;
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
input:-webkit-autofill {
|
|
27
|
-
@include theme {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
27
|
+
// @include theme {
|
|
28
|
+
box-shadow: 0 0 0 1000px var(--co-fore) inset;
|
|
29
|
+
color: var(--co-read);
|
|
30
|
+
-webkit-text-fill-color: var(--co-read);
|
|
31
|
+
// }
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -48,7 +48,7 @@ $co: 'info', 'well', 'warn', 'risk';
|
|
|
48
48
|
|
|
49
49
|
// &.part-selected {
|
|
50
50
|
// @include theme {
|
|
51
|
-
// box-shadow: inset 0 0 0 1px co
|
|
51
|
+
// box-shadow: inset 0 0 0 1px var(--co-main);
|
|
52
52
|
// }
|
|
53
53
|
// &::before {
|
|
54
54
|
// width: 50%;
|
|
@@ -56,7 +56,7 @@ $co: 'info', 'well', 'warn', 'risk';
|
|
|
56
56
|
// left: 24%;
|
|
57
57
|
// border-radius: 1em;
|
|
58
58
|
// @include theme {
|
|
59
|
-
// background: co
|
|
59
|
+
// background: var(--co-main) !important;
|
|
60
60
|
// }
|
|
61
61
|
// bottom: 41%;
|
|
62
62
|
// }
|
|
@@ -67,16 +67,14 @@ $co: 'info', 'well', 'warn', 'risk';
|
|
|
67
67
|
position: absolute;
|
|
68
68
|
content: '';
|
|
69
69
|
display: block;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
|
|
71
|
+
background-color: var(--co-fore);
|
|
72
|
+
|
|
73
73
|
border-radius: 10rem;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
&:checked {
|
|
77
|
-
|
|
78
|
-
background-color: co(main);
|
|
79
|
-
}
|
|
77
|
+
background-color: var(--co-main);
|
|
80
78
|
|
|
81
79
|
@keyframes am-checkbox-a-1 {
|
|
82
80
|
0% {
|
|
@@ -104,9 +102,9 @@ $co: 'info', 'well', 'warn', 'risk';
|
|
|
104
102
|
left: 20%;
|
|
105
103
|
top: 36%;
|
|
106
104
|
transform: rotate(43deg);
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
105
|
+
|
|
106
|
+
background-color: var(--co-fore);
|
|
107
|
+
|
|
110
108
|
transform-origin: 0% 100%;
|
|
111
109
|
animation: am-checkbox-a-1 ease-out 0.35s both;
|
|
112
110
|
}
|
|
@@ -118,36 +116,32 @@ $co: 'info', 'well', 'warn', 'risk';
|
|
|
118
116
|
bottom: 25%;
|
|
119
117
|
transform-origin: 0% 100%;
|
|
120
118
|
transform: rotate(-53deg);
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
119
|
+
|
|
120
|
+
background-color: var(--co-fore);
|
|
121
|
+
|
|
124
122
|
animation: am-checkbox-a-2 ease-out 0.35s both;
|
|
125
123
|
}
|
|
126
124
|
|
|
127
125
|
&,
|
|
128
126
|
& + * {
|
|
129
|
-
|
|
130
|
-
color: co(main);
|
|
131
|
-
}
|
|
127
|
+
color: var(--co-main);
|
|
132
128
|
}
|
|
133
129
|
}
|
|
134
130
|
|
|
135
131
|
// 半选
|
|
136
132
|
&.part-checked,
|
|
137
133
|
&[part-checked] {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
box-shadow: inset 0 0 0 1px co(main);
|
|
141
|
-
}
|
|
134
|
+
background-color: var(--co-main);
|
|
135
|
+
box-shadow: inset 0 0 0 1px var(--co-main);
|
|
142
136
|
|
|
143
137
|
&::before {
|
|
144
138
|
width: 50%;
|
|
145
139
|
height: 18%;
|
|
146
140
|
left: 24%;
|
|
147
141
|
border-radius: 1em;
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
142
|
+
|
|
143
|
+
background: var(--co-fore) !important;
|
|
144
|
+
|
|
151
145
|
bottom: 41%;
|
|
152
146
|
}
|
|
153
147
|
|
|
@@ -158,7 +152,7 @@ $co: 'info', 'well', 'warn', 'risk';
|
|
|
158
152
|
// top: 36%;
|
|
159
153
|
// transform: rotate(43deg);
|
|
160
154
|
// @include theme {
|
|
161
|
-
// background-color: co
|
|
155
|
+
// background-color: var(--co-fore);
|
|
162
156
|
// }
|
|
163
157
|
// transform-origin: 0% 100%;
|
|
164
158
|
// animation: am-checkbox-a-1 ease-out 0.35s both;
|
|
@@ -172,7 +166,7 @@ $co: 'info', 'well', 'warn', 'risk';
|
|
|
172
166
|
// transform-origin: 0% 100%;
|
|
173
167
|
// transform: rotate(-53deg);
|
|
174
168
|
// @include theme {
|
|
175
|
-
// background-color: co
|
|
169
|
+
// background-color: var(--co-fore);
|
|
176
170
|
// }
|
|
177
171
|
// animation: am-checkbox-a-2 ease-out 0.35s both;
|
|
178
172
|
// }
|
|
@@ -180,7 +174,7 @@ $co: 'info', 'well', 'warn', 'risk';
|
|
|
180
174
|
// &,
|
|
181
175
|
// & + * {
|
|
182
176
|
// @include theme {
|
|
183
|
-
// color: co
|
|
177
|
+
// color: var(--co-main);
|
|
184
178
|
// }
|
|
185
179
|
// }
|
|
186
180
|
}
|
|
@@ -44,9 +44,9 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
44
44
|
[ui-form-dropdown='@a'] {
|
|
45
45
|
position: absolute;
|
|
46
46
|
top: 100%;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
|
|
48
|
+
background: var(--co-fore);
|
|
49
|
+
|
|
50
50
|
left: 0;
|
|
51
51
|
margin-top: 0.5em;
|
|
52
52
|
padding: 0.5em;
|
|
@@ -73,9 +73,9 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
73
73
|
box-sizing: content-box;
|
|
74
74
|
width: 0.5em;
|
|
75
75
|
height: 0.5em;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
|
|
77
|
+
background: var(--co-fore);
|
|
78
|
+
|
|
79
79
|
top: -0.25em;
|
|
80
80
|
left: 50%;
|
|
81
81
|
margin-left: -0.25em;
|
|
@@ -27,10 +27,10 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
27
27
|
transition:
|
|
28
28
|
all 0.35s,
|
|
29
29
|
background-color 0s;
|
|
30
|
-
@include theme {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
30
|
+
// @include theme {
|
|
31
|
+
border: 1px solid var(--co-case);
|
|
32
|
+
background-color: var(--co-fore);
|
|
33
|
+
// }
|
|
34
34
|
|
|
35
35
|
display: inline-flex;
|
|
36
36
|
justify-content: space-between;
|
|
@@ -41,18 +41,19 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
&:hover {
|
|
44
|
-
@include theme {
|
|
45
|
-
|
|
46
|
-
}
|
|
44
|
+
// @include theme {
|
|
45
|
+
// border: 1px solid rgba(var(--co-main), 0.5);
|
|
46
|
+
// }
|
|
47
|
+
border: 1px solid var(--co-main-mm);
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
&.form-focus,
|
|
50
51
|
&:focus-within {
|
|
51
|
-
@include theme {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
52
|
+
// @include theme {
|
|
53
|
+
background-color: var(--co-fore);
|
|
54
|
+
border: 1px solid var(--co-main-sl);
|
|
55
|
+
box-shadow: 0 0 0 2px var(--co-main-ss);
|
|
56
|
+
// }
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
input {
|
|
@@ -81,17 +82,15 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
81
82
|
}
|
|
82
83
|
|
|
83
84
|
&:-webkit-autofill {
|
|
84
|
-
@include theme {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
85
|
+
// @include theme {
|
|
86
|
+
box-shadow: 0 0 0 1000px var(--co-fore) inset;
|
|
87
|
+
color: var(--co-read);
|
|
88
|
+
-webkit-text-fill-color: var(--co-read);
|
|
89
|
+
// }
|
|
89
90
|
}
|
|
90
91
|
|
|
91
92
|
&::placeholder {
|
|
92
|
-
|
|
93
|
-
color: rgba(co(read), 0.35);
|
|
94
|
-
}
|
|
93
|
+
color: var(--co-read-sl);
|
|
95
94
|
}
|
|
96
95
|
}
|
|
97
96
|
|
|
@@ -128,14 +127,15 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
128
127
|
@each $c in $cos {
|
|
129
128
|
&[ui-form~='co:#{$c}'] {
|
|
130
129
|
& {
|
|
131
|
-
@include theme {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}
|
|
130
|
+
// @include theme {
|
|
131
|
+
// color: var(--co-#{$c}-text);
|
|
132
|
+
// }
|
|
133
|
+
color: var(--co-#{$c}-text);
|
|
134
|
+
border: 1px solid var(--co-#{$c}-ml);
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
&:focus-within {
|
|
138
|
-
box-shadow: 0 0 0 2px
|
|
138
|
+
box-shadow: 0 0 0 2px var(--co-#{$c}-ss) !important;
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
}
|
|
@@ -73,9 +73,7 @@ $co: 'info', 'well', 'warn', 'risk';
|
|
|
73
73
|
content: '';
|
|
74
74
|
display: block;
|
|
75
75
|
border-radius: 50%;
|
|
76
|
-
|
|
77
|
-
background: co(fore);
|
|
78
|
-
}
|
|
76
|
+
background: var(--co-fore);
|
|
79
77
|
}
|
|
80
78
|
|
|
81
79
|
&:checked {
|
|
@@ -85,9 +83,7 @@ $co: 'info', 'well', 'warn', 'risk';
|
|
|
85
83
|
}
|
|
86
84
|
&,
|
|
87
85
|
& + * {
|
|
88
|
-
|
|
89
|
-
color: co(main);
|
|
90
|
-
}
|
|
86
|
+
color: var(--co-main);
|
|
91
87
|
}
|
|
92
88
|
}
|
|
93
89
|
|
|
@@ -23,9 +23,9 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
23
23
|
width: 0.8em;
|
|
24
24
|
height: 0.8em;
|
|
25
25
|
display: inline-block;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
|
|
27
|
+
color: var(--co-note);
|
|
28
|
+
|
|
29
29
|
background:
|
|
30
30
|
linear-gradient(45deg, transparent 51%, currentColor 52%, currentColor 67%, transparent 68%) no-repeat 23.5% 65% / 35% 50%,
|
|
31
31
|
linear-gradient(-45deg, transparent 51%, currentColor 52%, currentColor 67%, transparent 68%) no-repeat 76.5% 65% / 35% 50%;
|
|
@@ -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
|
}
|
|
@@ -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,51 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
24
24
|
border-radius: 0.25em;
|
|
25
25
|
transition: all 0.5s;
|
|
26
26
|
|
|
27
|
-
@include theme {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
27
|
+
// @include theme {
|
|
28
|
+
box-shadow: inset 0 0 0 1px var(--co-case);
|
|
29
|
+
background-color: var(--co-fore);
|
|
30
|
+
// }
|
|
31
31
|
|
|
32
32
|
&:hover {
|
|
33
|
-
@include theme {
|
|
34
|
-
|
|
35
|
-
}
|
|
33
|
+
// @include theme {
|
|
34
|
+
box-shadow: inset 0 0 0 1px var(--co-main-mm);
|
|
35
|
+
// }
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
&.form-focus,
|
|
39
39
|
&:focus {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
0 0 0 2px rgba(co(main), 0.15);
|
|
44
|
-
}
|
|
40
|
+
box-shadow:
|
|
41
|
+
inset 0 0 0 1px var(--co-main-mm),
|
|
42
|
+
0 0 0 2px var(--co-main-sm);
|
|
45
43
|
}
|
|
46
44
|
|
|
47
45
|
// 颜色
|
|
48
46
|
@each $c in $co {
|
|
49
47
|
&[ui-form~='co:#{$c}'] {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
background-color: rgba(co($c), 0.035);
|
|
56
|
-
}
|
|
48
|
+
color: var(--co-#{$c}-text);
|
|
49
|
+
box-shadow:
|
|
50
|
+
inset 0 0 0 1px var(--co-#{$c}-ml),
|
|
51
|
+
0 0 0 2px var(--co-#{$c}-ss) !important;
|
|
52
|
+
background-color: var(--co-#{$c}-xs);
|
|
57
53
|
}
|
|
58
54
|
|
|
59
55
|
&[ui-form~='co:hover:#{$c}'] {
|
|
60
56
|
&:hover {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
background-color: rgba(co($c), 0.035);
|
|
67
|
-
}
|
|
57
|
+
color: var(--co-#{$c}-text);
|
|
58
|
+
box-shadow:
|
|
59
|
+
inset 0 0 0 1px var(--co-#{$c}-ml),
|
|
60
|
+
0 0 0 2px var(--co-#{$c}-ss) !important;
|
|
61
|
+
background-color: var(--co-#{$c}-xs);
|
|
68
62
|
}
|
|
69
63
|
}
|
|
70
64
|
|
|
71
65
|
&[ui-form~='co:focus:#{$c}'] {
|
|
72
66
|
&:focus-within {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
background-color: rgba(co($c), 0.035);
|
|
79
|
-
}
|
|
67
|
+
color: var(--co-#{$c}-text);
|
|
68
|
+
box-shadow:
|
|
69
|
+
inset 0 0 0 1px var(--co-#{$c}-ml),
|
|
70
|
+
0 0 0 2px var(--co-#{$c}-ss) !important;
|
|
71
|
+
background-color: var(--co-#{$c}-xs);
|
|
80
72
|
}
|
|
81
73
|
}
|
|
82
74
|
}
|
|
@@ -84,17 +76,13 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
|
|
|
84
76
|
&,
|
|
85
77
|
textarea {
|
|
86
78
|
&:-webkit-autofill {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
-webkit-text-fill-color: co(read);
|
|
91
|
-
}
|
|
79
|
+
box-shadow: 0 0 0 1000px var(--co-fore) inset;
|
|
80
|
+
color: var(--co-read);
|
|
81
|
+
-webkit-text-fill-color: var(--co-read);
|
|
92
82
|
}
|
|
93
83
|
|
|
94
84
|
&::-webkit-input-placeholder {
|
|
95
|
-
|
|
96
|
-
color: rgba(co(read), 0.5);
|
|
97
|
-
}
|
|
85
|
+
color: var(--co-read-mm);
|
|
98
86
|
}
|
|
99
87
|
}
|
|
100
88
|
|
|
@@ -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-case);
|
|
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,
|
|
@@ -91,9 +88,9 @@
|
|
|
91
88
|
position: absolute;
|
|
92
89
|
width: 100%;
|
|
93
90
|
height: 100%;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
91
|
+
|
|
92
|
+
background-color: var(--co-fore-ls);
|
|
93
|
+
|
|
97
94
|
top: 0;
|
|
98
95
|
right: 0;
|
|
99
96
|
}
|
|
@@ -140,9 +137,9 @@
|
|
|
140
137
|
[ui-form-input] {
|
|
141
138
|
@extend %item;
|
|
142
139
|
border-style: dashed;
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
140
|
+
|
|
141
|
+
border-color: var(--co-case);
|
|
142
|
+
|
|
146
143
|
input {
|
|
147
144
|
position: absolute;
|
|
148
145
|
width: 100%;
|
|
@@ -152,9 +149,7 @@
|
|
|
152
149
|
opacity: 0;
|
|
153
150
|
|
|
154
151
|
&:-webkit-autofill {
|
|
155
|
-
|
|
156
|
-
box-shadow: 0 0 0 1000px co(fore) inset;
|
|
157
|
-
}
|
|
152
|
+
box-shadow: 0 0 0 1000px var(--co-fore) inset;
|
|
158
153
|
}
|
|
159
154
|
}
|
|
160
155
|
}
|
|
@@ -24,10 +24,8 @@
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
input:-webkit-autofill {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
-webkit-text-fill-color: co(read);
|
|
31
|
-
}
|
|
27
|
+
box-shadow: 0 0 0 1000px var(--co-fore) inset;
|
|
28
|
+
color: var(--co-read);
|
|
29
|
+
-webkit-text-fill-color: var(--co-read);
|
|
32
30
|
}
|
|
33
31
|
}
|