@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
@@ -26,18 +26,17 @@
26
26
  left: 25%;
27
27
  top: 25%;
28
28
  border-radius: 1em;
29
- @include theme {
30
- color: co(text);
31
- box-shadow:
32
- -1em 0 rgba(co(text), 0.7),
33
- 1em 0 rgba(co(text), 0.3),
34
- 0 1em rgba(co(text), 0.5),
35
- 0 -1em rgba(co(text), 0.9),
36
- -0.7em 0.7em rgba(co(text), 0.6),
37
- 0.7em -0.7em rgba(co(text), 1),
38
- -0.7em -0.7em rgba(co(text), 0.8),
39
- 0.7em 0.7em rgba(co(text), 0.4);
40
- }
29
+ color: var(--co-text);
30
+ box-shadow:
31
+ -1em 0 var(--co-text-ls),
32
+ 1em 0 var(--co-text-sl),
33
+ 0 1em var(--co-text-mm),
34
+ 0 -1em var(--co-text-ll),
35
+ -0.7em 0.7em var(--co-text-ml),
36
+ 0.7em -0.7em var(--co-text),
37
+ -0.7em -0.7em var(--co-text-lm),
38
+ 0.7em 0.7em var(--co-text-ms);
39
+
41
40
  transform: rotate3d(0, 0, 1, 6deg) scale(0.45);
42
41
  }
43
42
  }
@@ -15,9 +15,7 @@
15
15
  width: 1em;
16
16
  height: 1em;
17
17
  border-radius: 50%;
18
- @include theme {
19
- border: 1px solid currentColor;
20
- }
18
+ border: 1px solid currentColor;
21
19
  border-right-color: transparent !important;
22
20
  animation: ui-load-e 1.5s linear infinite both;
23
21
  }
@@ -29,10 +29,8 @@
29
29
  display: inline-block;
30
30
  width: 1em;
31
31
  height: 1em;
32
- @include theme {
33
- background: radial-gradient(circle at 15% 50%, rgba(co(text), 0.2) 12%, transparent 13%), radial-gradient(circle at 50% 50%, rgba(co(text), 0.2) 14%, transparent 15%),
34
- radial-gradient(circle at 85% 50%, rgba(co(text), 0.2) 9%, transparent 10%);
35
- }
32
+ background: radial-gradient(circle at 15% 50%, rgba(var(--co-text), 0.2) 12%, transparent 13%),
33
+ radial-gradient(circle at 50% 50%, rgba(var(--co-text), 0.2) 14%, transparent 15%), radial-gradient(circle at 85% 50%, rgba(var(--co-text), 0.2) 9%, transparent 10%);
36
34
 
37
35
  &::after {
38
36
  position: absolute;
@@ -42,9 +40,7 @@
42
40
  height: 100%;
43
41
  left: 0;
44
42
  top: 0;
45
- @include theme {
46
- color: co(text);
47
- }
43
+ color: var(--co-text);
48
44
  animation: ui-load-h 1s cubic-bezier(0.72, 0.115, 0.355, 0.88) infinite both;
49
45
  }
50
46
  }
@@ -29,9 +29,7 @@
29
29
  &:hover,
30
30
  & .active {
31
31
  & > a {
32
- @include theme {
33
- color: co(main);
34
- }
32
+ color: var(--co-main);
35
33
  }
36
34
 
37
35
  .mc-menu-list-two {
@@ -50,9 +48,9 @@
50
48
  min-width: 10rem;
51
49
  left: 50%;
52
50
  padding: 2rem;
53
- @include theme {
54
- background: co(back);
55
- }
51
+
52
+ background: var(--co-back);
53
+
56
54
  line-height: 3rem;
57
55
  transform: translate3d(-50%, 1rem, 0);
58
56
  opacity: 0;
@@ -64,9 +62,7 @@
64
62
  white-space: nowrap;
65
63
 
66
64
  &:hover {
67
- @include theme {
68
- color: co(main);
69
- }
65
+ color: var(--co-main);
70
66
  }
71
67
  }
72
68
 
@@ -75,9 +71,9 @@
75
71
  content: '';
76
72
  display: block;
77
73
  border: 0.5rem solid transparent;
78
- @include theme {
79
- border-bottom-color: co(back);
80
- }
74
+
75
+ border-bottom-color: var(--co-back);
76
+
81
77
  width: 1rem;
82
78
  height: 1rem;
83
79
  left: 50%;
@@ -103,16 +99,13 @@
103
99
  padding: 0;
104
100
  left: 0;
105
101
  top: 0;
106
- @include theme {
107
- background: co(back);
108
- }
102
+
103
+ background: var(--co-back);
109
104
 
110
105
  & > input {
111
106
  width: 8rem;
112
107
  height: 2.5rem;
113
- @include theme {
114
- background: co(weak);
115
- }
108
+ background: var(--co-weak);
116
109
  border-radius: 2.5rem;
117
110
  }
118
111
  }
@@ -138,9 +131,8 @@
138
131
  &:checked + .mc-menu-icon {
139
132
  &:after {
140
133
  border-radius: 30%;
141
- @include theme {
142
- background: linear-gradient(45deg, transparent 45%, co(read) 45%, co(read) 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, co(read) 45%, co(read) 55%, transparent 55%);
143
- }
134
+ background: linear-gradient(45deg, transparent 45%, var(--co-read) 45%, var(--co-read) 55%, transparent 55%),
135
+ linear-gradient(-45deg, transparent 45%, var(--co-read) 45%, var(--co-read) 55%, transparent 55%);
144
136
  }
145
137
 
146
138
  & + .mc-menu-list {
@@ -178,10 +170,8 @@
178
170
  overflow-x: hidden;
179
171
  overflow-y: auto;
180
172
  -webkit-overflow-scrolling: touch;
181
- @include theme {
182
- background: co(back);
183
- border-top: 1px solid co(line);
184
- }
173
+ background: var(--co-back);
174
+ border-top: 1px solid var(--co-line);
185
175
 
186
176
  // 开关按钮
187
177
  //& > label {
@@ -212,17 +202,13 @@
212
202
  // 搜索框
213
203
  & > .head-search {
214
204
  padding-top: 3rem;
215
- @include theme {
216
- border-top: 1px solid co(line);
217
- }
205
+ border-top: 1px solid var(--co-line);
218
206
 
219
207
  .head-search-list {
220
208
  padding: 1em 0;
221
209
 
222
210
  & > * {
223
- @include theme {
224
- border-bottom: 1px dotted co(line);
225
- }
211
+ border-bottom: 1px dotted var(--co-line);
226
212
  }
227
213
  }
228
214
 
@@ -230,9 +216,9 @@
230
216
  width: 100%;
231
217
  height: 3rem;
232
218
  border-radius: 3px;
233
- @include theme {
234
- background: co(weak);
235
- }
219
+
220
+ background: var(--co-weak);
221
+
236
222
  padding: 1em;
237
223
  }
238
224
  }
@@ -262,9 +248,9 @@
262
248
  z-index: 11;
263
249
  width: 1.5rem;
264
250
  height: 1.5rem;
265
- @include theme {
266
- border: 1px solid co(read);
267
- }
251
+
252
+ border: 1px solid var(--co-read);
253
+
268
254
  border-radius: 0.25rem;
269
255
  vertical-align: middle;
270
256
  top: -0.1rem;
@@ -285,9 +271,11 @@
285
271
  height: 100%;
286
272
  content: '';
287
273
  display: block;
288
- @include theme {
289
- background: linear-gradient(0deg, transparent 42%, co(read) 0%, co(read) 57%, transparent 0%), linear-gradient(90deg, transparent 75%, co(back) 76%), linear-gradient(0deg, transparent 10%, co(read) 0%, co(read) 25%, transparent 0%), linear-gradient(0deg, transparent 75%, co(read) 0%, co(read) 90%, transparent 0%);
290
- }
274
+
275
+ background: linear-gradient(0deg, transparent 42%, var(--co-read) 0%, var(--co-read) 57%, transparent 0%), linear-gradient(90deg, transparent 75%, var(--co-back) 76%),
276
+ linear-gradient(0deg, transparent 10%, var(--co-read) 0%, var(--co-read) 25%, transparent 0%),
277
+ linear-gradient(0deg, transparent 75%, var(--co-read) 0%, var(--co-read) 90%, transparent 0%);
278
+
291
279
  transform: scale3d(1, 1, 1);
292
280
  transition: all 0.1s;
293
281
  }
@@ -24,14 +24,11 @@
24
24
  &,
25
25
  &[ui-navs~='text'] {
26
26
  & > * {
27
- @include theme {
28
- color: co(text);
29
- }
27
+ color: var(--co-text);
28
+
30
29
  &.active {
31
30
  & > *:first-child {
32
- @include theme {
33
- color: co(main);
34
- }
31
+ color: var(--co-main);
35
32
  }
36
33
  }
37
34
  }
@@ -39,14 +36,11 @@
39
36
 
40
37
  &[ui-navs~='read'] {
41
38
  & > * {
42
- @include theme {
43
- color: co(read);
44
- }
39
+ color: var(--co-read);
40
+
45
41
  &.active {
46
42
  & > *:first-child {
47
- @include theme {
48
- color: mix(co(main), co(read), 45%);
49
- }
43
+ color: var(--co-main-text);
50
44
  }
51
45
  }
52
46
  }
@@ -54,15 +48,11 @@
54
48
 
55
49
  &[ui-navs~='note'] {
56
50
  & > * {
57
- @include theme {
58
- color: co(note);
59
- }
51
+ color: var(--co-note);
52
+
60
53
  &.active {
61
54
  & > *:first-child {
62
- @include theme {
63
- // color: co(main);
64
- color: mix(co(main), co(back), 45%);
65
- }
55
+ color: var(--co-main-text);
66
56
  }
67
57
  }
68
58
  }
@@ -70,14 +60,11 @@
70
60
 
71
61
  &[ui-navs~='back'] {
72
62
  & > * {
73
- @include theme {
74
- color: rgba(co(back), 0.9);
75
- }
63
+ color: var(--co-back--ll);
64
+
76
65
  &.active {
77
66
  & > *:first-child {
78
- @include theme {
79
- color: co(back);
80
- }
67
+ color: var(--co-back);
81
68
  }
82
69
  }
83
70
  }
@@ -8,10 +8,8 @@
8
8
 
9
9
  &:hover {
10
10
  & > * {
11
- @include theme {
12
- text-decoration: underline;
13
- opacity: 0.8;
14
- }
11
+ text-decoration: underline;
12
+ opacity: 0.8;
15
13
  }
16
14
  }
17
15
  &:active {
@@ -34,14 +32,11 @@
34
32
  &,
35
33
  &[ui-navs~='text'] {
36
34
  & > * {
37
- @include theme {
38
- color: co(text);
39
- }
35
+ color: var(--co-text);
36
+
40
37
  &.active {
41
38
  & > *:first-child {
42
- @include theme {
43
- color: co(main);
44
- }
39
+ color: var(--co-main);
45
40
  }
46
41
  }
47
42
  }
@@ -49,14 +44,11 @@
49
44
 
50
45
  &[ui-navs~='read'] {
51
46
  & > * {
52
- @include theme {
53
- color: co(read);
54
- }
47
+ color: var(--co-read);
48
+
55
49
  &.active {
56
50
  & > *:first-child {
57
- @include theme {
58
- color: mix(co(main), co(read), 45%);
59
- }
51
+ color: var(--co-main-text);
60
52
  }
61
53
  }
62
54
  }
@@ -64,15 +56,11 @@
64
56
 
65
57
  &[ui-navs~='note'] {
66
58
  & > * {
67
- @include theme {
68
- color: co(note);
69
- }
59
+ color: var(--co-note);
60
+
70
61
  &.active {
71
62
  & > *:first-child {
72
- @include theme {
73
- // color: co(main);
74
- color: mix(co(main), co(back), 45%);
75
- }
63
+ color: var(--co-main-text);
76
64
  }
77
65
  }
78
66
  }
@@ -80,14 +68,11 @@
80
68
 
81
69
  &[ui-navs~='back'] {
82
70
  & > * {
83
- @include theme {
84
- color: rgba(co(back), 0.7);
85
- }
71
+ color: var(--co-back-ls);
72
+
86
73
  &.active {
87
74
  & > *:first-child {
88
- @include theme {
89
- color: co(back);
90
- }
75
+ color: var(--co-back);
91
76
  }
92
77
  }
93
78
  }
@@ -5,22 +5,17 @@ $cos: 'main', 'well', 'warn', 'risk', 'info';
5
5
  width: 100%;
6
6
  padding: 0.5em 1em;
7
7
  border-radius: 0.25rem;
8
-
9
- @include theme {
10
- color: co(read);
11
- box-shadow: inset 0 0 0 1px co(line);
12
- background: co(weak);
13
- }
8
+ color: var(--co-read);
9
+ box-shadow: inset 0 0 0 1px var(--co-read-sl);
10
+ background: var(--co-read-xs);
14
11
  }
15
12
 
16
13
  // 颜色
17
- @each $key in $cos {
18
- &[ui-note~='#{$key}'] {
19
- @include theme {
20
- color: mix(co($key), co(text), 85%);
21
- box-shadow: inset 0 0 0 1px rgba(co($key), 0.3);
22
- background: saturate(rgba(co($key), 0.06), 20%);
23
- }
14
+ @each $co in $cos {
15
+ &[ui-note~='#{$co}'] {
16
+ color: var(--co-#{$co});
17
+ box-shadow: inset 0 0 0 1px var(--co-#{$co}-sl);
18
+ background: var(--co-#{$co}-xs);
24
19
  }
25
20
  }
26
21
  }
@@ -1,33 +1,19 @@
1
- $co: 'main', 'text', 'read', 'well', 'warn', 'risk', 'info';
1
+ $co: 'main', 'well', 'warn', 'risk';
2
2
 
3
3
  [ui-note~='@b'] {
4
4
  width: 100%;
5
5
  padding: 0.5em 1em;
6
6
  border-radius: 0.1em;
7
7
 
8
- @mixin note($co, $bg, $bk) {
9
- color: $co;
10
- border-left: 0.15em solid $bk;
11
- background: $bg;
12
- }
8
+ color: var(--co-read);
9
+ background: var(--co-read-ss);
10
+ border-left: 2px solid var(--co-read);
13
11
 
14
12
  @each $key in $co {
15
- @include theme {
16
- $val: co($key);
17
- $co: mix($val, co(text), 85%);
18
- $bg: saturate(rgba($val, 0.1), 20%);
19
- $bk: $val;
20
-
21
- @if ($key== 'main') {
22
- &,
23
- &[ui-note~='#{$key}'] {
24
- @include note($co, $bg, $bk);
25
- }
26
- } @else {
27
- &[ui-note~='#{$key}'] {
28
- @include note($co, $bg, $bk);
29
- }
30
- }
13
+ &[ui-note~='#{$key}'] {
14
+ color: var(--co-#{$key});
15
+ background: var(--co-#{$key}-ss);
16
+ border-left: 2px solid var(--co-#{$key});
31
17
  }
32
18
  }
33
19
  }
@@ -4,14 +4,11 @@
4
4
  padding: 0.5em;
5
5
  border-radius: 0.25em;
6
6
  cursor: pointer;
7
- @include theme {
8
- box-shadow: inset 0 0 0 1px co(case);
9
- }
7
+
8
+ box-shadow: inset 0 0 0 1px var(--co-case);
10
9
 
11
10
  &.active {
12
- @include theme {
13
- box-shadow: inset 0 0 0 1px co(main);
14
- }
11
+ box-shadow: inset 0 0 0 1px var(--co-main);
15
12
 
16
13
  &::after {
17
14
  position: absolute;
@@ -29,10 +26,10 @@
29
26
  radial-gradient(circle at 47% 70%, currentColor 9%, transparent 10%), radial-gradient(circle at 53% 62%, currentColor 9%, transparent 10%),
30
27
  radial-gradient(circle at 59% 54%, currentColor 9%, transparent 10%), radial-gradient(circle at 65% 46%, currentColor 9%, transparent 10%),
31
28
  radial-gradient(circle at 71% 38%, currentColor 8%, transparent 9%);
32
- @include theme {
33
- background-color: co(main);
34
- color: co(fore);
35
- }
29
+
30
+ background-color: var(--co-main);
31
+ color: co(fore);
32
+
36
33
  -webkit-animation: am-selected 0.2s 0.1s both;
37
34
  animation: am-selected 0.2s 0.1s both;
38
35
  }
@@ -9,17 +9,13 @@
9
9
  transition: all 0.3s;
10
10
  @include dpc {
11
11
  &:hover {
12
- @include theme {
13
- color: co(main);
14
- }
12
+ color: var(--co-main);
15
13
  }
16
14
  }
17
15
 
18
16
  @include pad {
19
17
  &:active {
20
- @include theme {
21
- color: co(main);
22
- }
18
+ color: var(--co-main);
23
19
  }
24
20
  }
25
21
 
@@ -35,9 +35,7 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
35
35
  border-radius: 2px;
36
36
  left: 0;
37
37
  top: 0.75em;
38
- @include theme {
39
- background: radial-gradient(circle at 50% 50%, transparent 2%, co(case) 2.1%) no-repeat center / 100em 100%;
40
- }
38
+ background: radial-gradient(circle at 50% 50%, transparent 2%, var(--co-case) 2.1%) no-repeat center / 100em 100%;
41
39
  }
42
40
  &::after {
43
41
  position: absolute;
@@ -49,39 +47,29 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
49
47
  margin-left: -0.75em;
50
48
  top: 0;
51
49
  border-radius: 50%;
52
- @include theme {
53
- border: 1px solid co(case);
54
- }
50
+ border: 1px solid var(--co-case);
55
51
  }
56
52
 
57
53
  &.done {
58
- @include theme {
59
- color: co(well);
60
- }
54
+ color: var(--co-well);
55
+
61
56
  &::before {
62
- @include theme {
63
- background: radial-gradient(circle at 50% 50%, transparent 2%, co(well) 2.1%) no-repeat center / 100em 100%;
64
- }
57
+ background: radial-gradient(circle at 50% 50%, transparent 2%, var(--co-well) 2.1%) no-repeat center / 100em 100%;
65
58
  }
66
59
  &::after {
67
- @include theme {
68
- border: 1px solid co(well);
69
- }
60
+ border: 1px solid var(--co-well);
70
61
  @extend %icon-hook;
71
62
  }
72
63
  }
73
64
 
74
65
  &.fail {
75
- @include theme {
76
- color: co(risk);
77
- }
66
+ color: var(--co-risk);
67
+
78
68
  &::before {
79
- @include theme {
80
- background: radial-gradient(circle at 50% 50%, transparent 2%, co(risk) 2.1%) no-repeat center / 100em 100%;
81
- }
69
+ background: radial-gradient(circle at 50% 50%, transparent 2%, var(--co-risk) 2.1%) no-repeat center / 100em 100%;
82
70
  }
83
71
  &::after {
84
- border: 1px solid co(risk);
72
+ border: 1px solid var(--co-risk);
85
73
  @extend %icon-close;
86
74
  }
87
75
  }
@@ -22,9 +22,8 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
22
22
  padding-left: 2em;
23
23
  padding-bottom: 1.5em;
24
24
  flex-grow: 1;
25
- @include theme {
26
- color: co(note);
27
- }
25
+
26
+ color: var(--co-note);
28
27
 
29
28
  &:last-child {
30
29
  padding-bottom: 0;
@@ -44,9 +43,8 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
44
43
  left: 0.55em;
45
44
  top: 1.5em;
46
45
  bottom: 0.3em;
47
- @include theme {
48
- background: co(case);
49
- }
46
+
47
+ background: var(--co-case);
50
48
  }
51
49
  &::after {
52
50
  position: absolute;
@@ -59,62 +57,52 @@ $sz: 'xs', 's', 'm', 'l', 'xl';
59
57
  left: 0%;
60
58
  top: 0;
61
59
  border-radius: 50%;
62
- @include theme {
63
- color: co(note);
64
- border: 1px solid co(note);
65
- }
60
+
61
+ color: var(--co-note);
62
+ border: 1px solid var(--co-note);
66
63
  }
67
64
 
68
65
  &.done {
69
- @include theme {
70
- color: co(main);
71
- }
66
+ color: var(--co-main);
67
+
72
68
  &::before {
73
- @include theme {
74
- background: co(main);
75
- }
69
+ background: var(--co-main);
76
70
  }
77
71
  &::after {
78
72
  content: '';
79
- @include theme {
80
- color: co(main);
81
- border: 1px solid co(main);
82
- }
73
+
74
+ color: var(--co-main);
75
+ border: 1px solid var(--co-main);
76
+
83
77
  @extend %icon-hook;
84
78
  }
85
79
  }
86
80
 
87
81
  &.fail {
88
- @include theme {
89
- color: co(risk);
90
- }
82
+ color: var(--co-risk);
83
+
91
84
  &::before {
92
- @include theme {
93
- background: co(risk);
94
- }
85
+ background: var(--co-risk);
95
86
  }
96
87
  &::after {
97
88
  content: '';
98
- @include theme {
99
- color: co(risk);
100
- border: 1px solid co(risk);
101
- }
89
+
90
+ color: var(--co-risk);
91
+ border: 1px solid var(--co-risk);
92
+
102
93
  @extend %icon-close;
103
94
  }
104
95
  }
105
96
 
106
97
  &.curr {
107
98
  &::before {
108
- @include theme {
109
- background: co(read);
110
- }
99
+ background: var(--co-read);
111
100
  }
112
101
  &::after {
113
102
  content: '';
114
- @include theme {
115
- color: co(read);
116
- border: 1px solid co(read);
117
- }
103
+ color: var(--co-read);
104
+ border: 1px solid var(--co-read);
105
+
118
106
  @extend %icon-more;
119
107
  }
120
108
  }