@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
@@ -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
- @include theme {
69
- background: co(fore);
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
- @include theme {
98
- background: co(fore);
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
- @include theme {
28
- box-shadow: inset 0 -1px 0 0 co(case);
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
- @include theme {
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
- @include theme {
48
- background-color: co(fore);
49
- box-shadow:
50
- inset 0 -1px 0 0 rgba(co(main), 0.5),
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
- @include theme {
82
- box-shadow: 0 0 0 1000px co(fore) inset;
83
- color: co(read);
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
- @include theme {
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
- @include theme {
117
- color: mix(co($c), co(text), 85%);
118
- box-shadow:
119
- inset 0 -1px 0 0 rgba(co($c), 0.6),
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
- @include theme {
128
- color: mix(co($c), co(text), 85%);
129
- box-shadow:
130
- inset 0 -1px 0 0 rgba(co($c), 0.6),
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
- @include theme {
140
- color: mix(co($c), co(text), 85%);
141
- box-shadow:
142
- inset 0 -1px 0 0 rgba(co($c), 0.6),
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
  }
@@ -76,9 +76,7 @@ $co: 'info', 'well', 'warn', 'risk';
76
76
  animation: am-b-radio 0.3s;
77
77
  &,
78
78
  & + * {
79
- @include theme {
80
- color: co(main);
81
- }
79
+ color: var(--co-main);
82
80
  }
83
81
  }
84
82
 
@@ -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
- @include theme {
23
- color: co(note);
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
- @include theme {
35
- background: co(fore);
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
- @include theme {
66
- background: co(fore);
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
- @include theme {
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
- @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,47 @@ $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
+ box-shadow: inset 0 0 0 1px var(--co-case);
28
+ background-color: var(--co-fore);
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
- @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
- }
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
- @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
- }
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
- @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
- }
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
- @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
- }
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
- @include theme {
88
- box-shadow: 0 0 0 1000px co(fore) inset;
89
- color: co(read);
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
- @include theme {
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
- @include theme {
28
- border-color: co(line);
29
- background-color: co(fore);
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
- @include theme {
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
- @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
  }
@@ -138,9 +135,9 @@
138
135
  [ui-form-input] {
139
136
  @extend %item;
140
137
  border-style: dashed;
141
- @include theme {
142
- border-color: co(case);
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
- @include theme {
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
- @include theme {
29
- color: co(case);
30
- background:
31
- linear-gradient(45deg, transparent 40%, co(fore) 45%, co(fore) 55%, transparent 60%) no-repeat center / 38% 38%,
32
- linear-gradient(-45deg, transparent 40%, co(fore) 45%, co(fore) 55%, transparent 60%) no-repeat center / 38% 38%,
33
- radial-gradient(circle at 50% 50%, currentColor 53%, transparent 58%);
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
- @include theme {
39
- box-shadow: 0 0 0 1000px mix(co(weak), co(fore), 50%) inset;
40
- color: co(read);
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
- @include theme {
64
- background-color: mix(co(weak), co(fore), 50%);
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
- @include theme {
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
- @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
  }
@@ -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
- @include theme {
29
- box-shadow: inset 0 0 0 1px co(case);
30
- background-color: mix(co(weak), co(fore), 50%);
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
- @include theme {
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
- @include theme {
50
- background-color: mix(co(weak), co(fore), 50%);
51
- box-shadow:
52
- inset 0 0 0 1px rgba(co(main), 0.5),
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
- @include theme {
81
- box-shadow: 0 0 0 1000px mix(co(weak), co(fore), 50%) inset;
82
- color: co(read);
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
- @include theme {
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
- @include theme {
116
- color: mix(co($c), co(text), 85%);
117
- box-shadow:
118
- inset 0 0 0 1px rgba(co($c), 0.6),
119
- 0 0 0 2px rgba(co($c), 0.15) !important;
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
- @include theme {
127
- color: mix(co($c), co(text), 85%);
128
- box-shadow:
129
- inset 0 0 0 1px rgba(co($c), 0.6),
130
- 0 0 0 2px rgba(co($c), 0.15) !important;
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
- @include theme {
139
- color: mix(co($c), co(text), 85%);
140
- box-shadow:
141
- inset 0 0 0 1px rgba(co($c), 0.6),
142
- 0 0 0 2px rgba(co($c), 0.15) !important;
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
- @include theme {
64
- background-color: mix(co(weak), co(fore), 50%);
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
- @include theme {
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
- @include theme {
20
- color: co(note);
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
- @include theme {
32
- background: co(fore);
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
- @include theme {
63
- background: co(fore);
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
- @include theme {
85
- background: co(weak);
86
- }
84
+ background: var(--co-weak);
87
85
  }
88
86
  }
89
87
  }