@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.
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 +11 -11
  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 +11 -7
  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 +18 -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
@@ -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: mix(co(weak), co(fore), 50%);
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
- @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,60 +24,48 @@ $co: 'info', 'well', 'warn', 'risk';
24
24
  transition: all 0.5s;
25
25
  background-color: transparent;
26
26
 
27
- @include theme {
28
- box-shadow: inset 0 0 0 1px co(case);
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
- @include theme {
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
- @include theme {
42
- box-shadow:
43
- inset 0 0 0 1px rgba(co(main), 0.5),
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
- @include theme {
52
- color: mix(co($c), co(text), 85%);
53
- box-shadow:
54
- inset 0 0 0 1px rgba(co($c), 0.6),
55
- 0 0 0 2px rgba(co($c), 0.15) !important;
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
- @include theme {
63
- color: mix(co($c), co(text), 85%);
64
- box-shadow:
65
- inset 0 0 0 1px rgba(co($c), 0.6),
66
- 0 0 0 2px rgba(co($c), 0.15) !important;
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
- @include theme {
75
- color: mix(co($c), co(text), 85%);
76
- box-shadow:
77
- inset 0 0 0 1px rgba(co($c), 0.6),
78
- 0 0 0 2px rgba(co($c), 0.15) !important;
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
- @include theme {
28
- border-color: co(line);
29
- background-color: mix(co(weak), co(fore), 50%);
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
- @include theme {
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
- @include theme {
94
- background-color: rgba(co(fore), 0.85);
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
- @include theme {
141
- border-color: co(case);
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
- @include theme {
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 rgba(co(main), 0.5);
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 rgba(co(main), 0.5),
52
- 0 2px 0 0 rgba(co(main), 0.15);
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: rgba(co(read), 0.5);
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: mix(co($c), co(text), 85%);
293
+ color: var(--co-#{$c}-text);
294
294
  box-shadow:
295
- inset 0 -1px 0 0 rgba(co($c), 0.6),
296
- 0 2px 0 0 rgba(co($c), 0.15) !important;
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: mix(co($c), co(text), 85%);
304
+ color: var(--co-#{$c}-text);
305
305
  box-shadow:
306
- inset 0 -1px 0 0 rgba(co($c), 0.6),
307
- 0 2px 0 0 rgba(co($c), 0.15) !important;
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: mix(co($c), co(text), 85%);
316
+ color: var(--co-#{$c}-text);
317
317
  box-shadow:
318
- inset 0 -1px 0 0 rgba(co($c), 0.6),
319
- 0 2px 0 0 rgba(co($c), 0.15) !important;
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 rgba(co(main), 0.5);
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 rgba(co(main), 0.5),
42
- 0 0 0 2px rgba(co(main), 0.15);
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: mix(co($c), co(text), 85%);
50
+ color: var(--co-#{$c}-text);
51
51
  box-shadow:
52
- inset 0 0 0 1px rgba(co($c), 0.6),
53
- 0 0 0 2px rgba(co($c), 0.15) !important;
54
- background-color: rgba(co($c), 0.035);
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: mix(co($c), co(text), 85%);
61
+ color: var(--co-#{$c}-text);
62
62
  box-shadow:
63
- inset 0 0 0 1px rgba(co($c), 0.6),
64
- 0 0 0 2px rgba(co($c), 0.15) !important;
65
- background-color: rgba(co($c), 0.035);
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: mix(co($c), co(text), 85%);
73
+ color: var(--co-#{$c}-text);
74
74
  box-shadow:
75
- inset 0 0 0 1px rgba(co($c), 0.6),
76
- 0 0 0 2px rgba(co($c), 0.15) !important;
77
- background-color: rgba(co($c), 0.035);
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: rgba(co(read), 0.5);
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: co(line);
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: rgba(co(fore), 0.85);
94
+ background-color: var(--co-fore-lm);
95
95
  }
96
96
  top: 0;
97
97
  right: 0;
@@ -1,4 +1,4 @@
1
1
  @import './form@a';
2
2
  @import './form@b';
3
3
  @import './form@c';
4
- @import './form@d';
4
+ // @import './form@d';
@@ -49,13 +49,9 @@
49
49
  .ui-radio > input + * {
50
50
  -webkit-transition: all 0.3s;
51
51
  -moz-transition: all 0.3s;
52
- -o-transition: all 0.3s;
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
- @include theme {
15
- box-shadow:
16
- inset -1px -1px 0 0 co(line),
17
- -1px -1px 0 0 co(line);
18
- background-color: co(fore);
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
- @include theme {
42
- background-color: co(weak);
43
- }
40
+
41
+ background-color: var(--co-weak);
44
42
  }
45
43
  }
46
44
 
@@ -1,8 +1,7 @@
1
1
  [ui-imgs~=':strand'] {
2
2
  & > * {
3
3
  margin-right: -0.5em;
4
- @include theme {
5
- background-color: co(fore);
6
- }
4
+
5
+ background-color: var(--co-fore);
7
6
  }
8
7
  }
@@ -38,10 +38,8 @@
38
38
  }
39
39
 
40
40
  &:hover {
41
- @include theme {
42
- // border: 1px solid co(text);
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
- @include theme {
53
- // border: 1px solid co(main) !important;
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
- @include theme {
61
- // border: 1px solid co(main) !important;
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
- @include theme {
82
- background-color: co(main);
83
- color: co(back);
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
- @include theme {
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
  }
@@ -126,7 +126,7 @@
126
126
  &[#{$n}~='#{$co}'] {
127
127
  &#{$sub} {
128
128
  @include theme {
129
- box-shadow: inset 0 0 0 1px co($co);
129
+ box-shadow: inset 0 0 0 1px var(--co-#{$co});
130
130
  }
131
131
  }
132
132
  }
@@ -16,9 +16,8 @@
16
16
  height: 1px;
17
17
  flex-grow: 1;
18
18
  flex-shrink: 1;
19
- @include theme {
20
- background: co(line);
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
- @include theme {
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
- @include theme {
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
- @include theme {
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
- @include theme {
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
- @include theme {
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', 'vice', 'read', 'info', 'well', 'warn', 'risk';
1
+ $type: 'main', 'read', 'info', 'well', 'warn', 'risk';
2
2
 
3
3
  [ui-list~='@a'] {
4
4
  // 基础样式
5
5
  & {
6
- @include theme {
7
- background-color: co(fore);
8
- box-shadow:
9
- inset 0 0.3rem 0 0 co(main),
10
- inset 0 0 0 1px co(line);
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
- @include theme {
25
- border-bottom: 1px solid mix(co(line), co(fore), 53%);
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 $name in $type {
53
- &[ui-list~='#{$name}'] {
54
- @include theme {
55
- // border-top: 0.3rem solid co($name);
56
- box-shadow:
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', 'vice', 'read', 'info', 'well', 'warn', 'risk';
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
- @include theme {
19
- background: linear-gradient(0deg, rgba(co(line), 0) 0%, co(line) 3%);
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
- @include theme {
44
- background-image: radial-gradient(at 50% 50%, co(fore) 37%, co(line) 39%, co(line) 47%, co(fore) 49%);
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
- @include theme {
68
- background-image: radial-gradient(at 50% 50%, co(main) 20%, transparent 23%), radial-gradient(at 50% 50%, co(fore) 37%, co(main) 39%, co(main) 47%, co(fore) 49%);
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
- @include theme {
74
- color: co(main);
75
- }
70
+
71
+ color: var(--co-main);
76
72
  }
77
73
  }
78
74