@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.
Files changed (91) hide show
  1. package/components/btns/btns@a.scss +41 -87
  2. package/components/btns/btns@b.scss +22 -22
  3. package/components/btns/btns@c.scss +2 -2
  4. package/components/btns/mcui@btns.scss +2 -2
  5. package/components/card/card@a.scss +37 -37
  6. package/components/card/card@b.scss +36 -41
  7. package/components/cite/cite@a.scss +1 -2
  8. package/components/demo/demo@a.scss +3 -3
  9. package/components/form/base.scss +30 -26
  10. package/components/form/form@a/base.scss +5 -5
  11. package/components/form/form@a/checkbox.scss +21 -27
  12. package/components/form/form@a/date.scss +6 -6
  13. package/components/form/form@a/input.scss +25 -25
  14. package/components/form/form@a/radio.scss +2 -6
  15. package/components/form/form@a/select.scss +10 -12
  16. package/components/form/form@a/switch.scss +7 -10
  17. package/components/form/form@a/textarea.scss +29 -41
  18. package/components/form/form@a/upload.scss +11 -16
  19. package/components/form/form@b/base.scss +3 -5
  20. package/components/form/form@b/checkbox.scss +1 -3
  21. package/components/form/form@b/date.scss +6 -6
  22. package/components/form/form@b/input.scss +23 -41
  23. package/components/form/form@b/radio.scss +1 -3
  24. package/components/form/form@b/select.scss +10 -12
  25. package/components/form/form@b/switch.scss +7 -10
  26. package/components/form/form@b/textarea.scss +25 -41
  27. package/components/form/form@b/upload.scss +11 -16
  28. package/components/form/form@c/base.scss +9 -12
  29. package/components/form/form@c/checkbox.scss +3 -6
  30. package/components/form/form@c/date.scss +7 -9
  31. package/components/form/form@c/input.scss +27 -42
  32. package/components/form/form@c/radio.scss +3 -6
  33. package/components/form/form@c/select.scss +10 -12
  34. package/components/form/form@c/switch.scss +7 -10
  35. package/components/form/form@c/textarea.scss +21 -33
  36. package/components/form/form@c/upload.scss +11 -16
  37. package/components/form/form@d/input.scss +13 -13
  38. package/components/form/form@d/textarea.scss +16 -16
  39. package/components/form/form@d/upload.scss +2 -2
  40. package/components/form/mcui@form.scss +1 -1
  41. package/components/form/radio@theme=aa.scss +1 -5
  42. package/components/grid/grid@a.scss +7 -9
  43. package/components/imgs/base.scss +2 -3
  44. package/components/imgs/imgs@a.scss +11 -19
  45. package/components/imgs/imgs@b.scss +1 -1
  46. package/components/line/line@a.scss +3 -6
  47. package/components/line/line@b.scss +4 -12
  48. package/components/list/list@a.scss +13 -18
  49. package/components/list/list@b.scss +9 -13
  50. package/components/load/load@a.scss +11 -12
  51. package/components/load/load@e.scss +1 -3
  52. package/components/load/load@h.scss +3 -7
  53. package/components/menu/menu@b.scss +28 -40
  54. package/components/navs/navs@a.scss +12 -25
  55. package/components/navs/navs@b.scss +14 -29
  56. package/components/note/note@a.scss +8 -13
  57. package/components/note/note@b.scss +8 -22
  58. package/components/opts/opts@a.scss +7 -10
  59. package/components/path/path@a.scss +2 -6
  60. package/components/steps/steps@a.scss +10 -22
  61. package/components/steps/steps@v.scss +25 -37
  62. package/components/table/base.scss +15 -13
  63. package/components/table/table@a.scss +42 -41
  64. package/components/table/table@b.scss +23 -25
  65. package/components/table/table@c.scss +2 -4
  66. package/components/tabs/tabs@a.scss +7 -7
  67. package/components/tabs/tabs@b.scss +7 -7
  68. package/components/tabs/tabs@c.scss +7 -7
  69. package/components/tags/tags@a.scss +26 -40
  70. package/components/tags/tags@b.scss +22 -36
  71. package/components/tips/tips@a.scss +6 -6
  72. package/components/title/title@a.scss +3 -3
  73. package/components/title/title@b.scss +4 -3
  74. package/core/base.scss +24 -9
  75. package/core/color.scss +35 -179
  76. package/core/{mcui@core.scss → neatui@core.scss} +0 -2
  77. package/core/reset.scss +15 -2
  78. package/core/scroll.scss +20 -15
  79. package/core/size.scss +2 -2
  80. package/core/theme.scss +199 -69
  81. package/core/trim.scss +36 -0
  82. package/core/ux.scss +13 -19
  83. package/neatui.scss +1 -1
  84. package/package.json +1 -1
  85. package/components/paging/mc-paging-ui1503.scss +0 -106
  86. package/components/paging/mc-paging.scss +0 -432
  87. package/components/paging/paging@theme=aa.scss +0 -45
  88. package/core/pos.scss +0 -252
  89. package/core/trim.mobile.scss +0 -327
  90. /package/core/{mcui@core.lite.scss → neatui@core.lite.scss} +0 -0
  91. /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
- background: mix(co(main), co(fore), 85%);
29
- color: co(fore);
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
- border-top-color: mix(co(main), co(fore), 85%);
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
- background: mix(co($co), co(fore), 85%);
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
- border-top-color: mix(co($co), co(fore), 85%);
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
- color: co(well);
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
- color: co(risk);
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
- background: co(fore);
286
- box-shadow:
287
- -0.2em 0 0px 0.15em co(fore),
288
- 0.2em 0 0px 0.15em co(fore),
289
- 0 0 0px 0.15em co(fore);
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
- box-shadow: 0 0 0 1000px co(fore) inset;
29
- color: co(read);
30
- -webkit-text-fill-color: co(read);
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(main);
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(main) !important;
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
- @include theme {
71
- background-color: co(fore);
72
- }
70
+
71
+ background-color: var(--co-fore);
72
+
73
73
  border-radius: 10rem;
74
74
  }
75
75
 
76
76
  &:checked {
77
- @include theme {
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
- @include theme {
108
- background-color: co(fore);
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
- @include theme {
122
- background-color: co(fore);
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
- @include theme {
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
- @include theme {
139
- background-color: co(main);
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
- @include theme {
149
- background: co(fore) !important;
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(fore);
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(fore);
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(main);
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
- @include theme {
48
- background: co(fore);
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
- @include theme {
77
- background: co(fore);
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
- border: 1px solid co(case);
32
- background-color: co(fore);
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
- border: 1px solid rgba(co(main), 0.5);
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
- background-color: co(fore);
53
- border: 1px solid rgba(co(main), 0.6);
54
- box-shadow: 0 0 0 2px rgba(co(main), 0.15);
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
- box-shadow: 0 0 0 1000px co(fore) inset;
86
- color: co(read);
87
- -webkit-text-fill-color: co(read);
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
- @include theme {
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
- color: mix(co($c), co(text), 85%);
133
- border: 1px solid rgba(co($c), 0.6);
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 rgba(co($c), 0.15) !important;
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
- @include theme {
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
- @include theme {
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
- @include theme {
27
- color: co(note);
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
- @include theme {
39
- background: co(fore);
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
- @include theme {
70
- background: co(fore);
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
- @include theme {
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
- @include theme {
56
- background-color: co(fore);
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
- @include theme {
66
- background-color: co(main);
67
- background-image: radial-gradient(circle at 50% 50%, co(fore) 28%, transparent 30%);
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
- @include theme {
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
- box-shadow: inset 0 0 0 1px co(case);
29
- background-color: co(fore);
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
- box-shadow: inset 0 0 0 1px rgba(co(main), 0.5);
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
- @include theme {
41
- box-shadow:
42
- inset 0 0 0 1px rgba(co(main), 0.5),
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
- @include theme {
51
- color: mix(co($c), co(text), 85%);
52
- box-shadow:
53
- inset 0 0 0 1px rgba(co($c), 0.6),
54
- 0 0 0 2px rgba(co($c), 0.15) !important;
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
- @include theme {
62
- color: mix(co($c), co(text), 85%);
63
- box-shadow:
64
- inset 0 0 0 1px rgba(co($c), 0.6),
65
- 0 0 0 2px rgba(co($c), 0.15) !important;
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
- @include theme {
74
- color: mix(co($c), co(text), 85%);
75
- box-shadow:
76
- inset 0 0 0 1px rgba(co($c), 0.6),
77
- 0 0 0 2px rgba(co($c), 0.15) !important;
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
- @include theme {
88
- box-shadow: 0 0 0 1000px co(fore) inset;
89
- color: co(read);
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
- @include theme {
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
- @include theme {
28
- border-color: co(case);
29
- background-color: co(fore);
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
- @include theme {
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
- @include theme {
95
- background-color: rgba(co(fore), 0.85);
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
- @include theme {
144
- border-color: co(case);
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
- @include theme {
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
- @include theme {
28
- box-shadow: 0 0 0 1000px co(fore) inset;
29
- color: co(read);
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
  }
@@ -72,9 +72,7 @@ $co: 'info', 'well', 'warn', 'risk';
72
72
  animation: am-b-checked 0.3s;
73
73
  &,
74
74
  & + * {
75
- @include theme {
76
- color: co(main);
77
- }
75
+ color: var(--co-main);
78
76
  }
79
77
  }
80
78