@neatui/css 2.0.0-beta.2 → 2.0.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/core/reset.scss CHANGED
@@ -156,7 +156,7 @@ img {
156
156
  sup {
157
157
  position: relative;
158
158
  vertical-align: text-top;
159
- font-size: 0.5em;
159
+ font-size: 0.6em;
160
160
  line-height: 1;
161
161
  font-weight: bold;
162
162
  }
package/core/theme.scss CHANGED
@@ -202,53 +202,29 @@ $theme: if(
202
202
  }
203
203
  }
204
204
  }
205
-
206
- // 文本颜色
207
- // --co-main-text: #{mix(map-get($s, 'main'), map-get($s, 'text'), 85%)};
208
- // --co-well-text: #{mix(map-get($s, 'well'), map-get($s, 'text'), 85%)};
209
- // --co-warn-text: #{mix(map-get($s, 'warn'), map-get($s, 'text'), 85%)};
210
- // --co-risk-text: #{mix(map-get($s, 'risk'), map-get($s, 'text'), 85%)};
211
-
212
- // --co-line-fore: #{mix(map-get($s, 'line'), map-get($s, 'fore'), 70%)};
213
- // --bg-main: #{saturate(rgba(map-get($s, 'main'), 0.05), 20%)};
214
- // --bg-weak: #{mix(map-get($s, 'weak'), map-get($s, 'fore'), 75%)};
215
- // --bg-well: #{saturate(rgba(map-get($s, 'well'), 0.05), 20%)};
216
- // --bg-warn: #{saturate(rgba(map-get($s, 'warn'), 0.05), 20%)};
217
- // --bg-risk: #{saturate(rgba(map-get($s, 'risk'), 0.05), 20%)};
218
- // --bg-info: #{saturate(rgba(map-get($s, 'info'), 0.05), 20%)};
219
- // --bg-well: #{rgba(map-get($s, 'well'), 0.08)};
220
- // --bg-warn: #{rgba(map-get($s, 'warn'), 0.08)};
221
- // --bg-risk: #{rgba(map-get($s, 'risk'), 0.08)};
222
-
223
- // @each $k in $colors {
224
- // $v: map-get($s, $k);
225
- // $ls: 0.05;
226
- // @each $l in $levels {
227
- // // 透明度
228
- // --co-#{$k}-#{$l}: #{rgba($v, $ls)};
229
- // // 增亮度
230
- // --bg-#{$k}-#{$l}: #{saturate(rgba($v, $ls), 20%)};
231
- // @if ($ls == 0.05 or $ls == 0.9) {
232
- // $ls: $ls + 0.05;
233
- // } @else {
234
- // $ls: $ls + 0.1;
235
- // }
236
- // }
237
- // }
238
205
  }
239
206
  } @else {
240
207
  [theme~='#{$n}'] {
241
208
  @each $c in $s {
242
209
  $k: nth($c, 1);
243
210
  $v: nth($c, 2);
244
- @if ($k != 'none') {
245
- --co-#{$k}: #{$v};
246
- }
211
+ --#{$k}: #{red($v), green($v), blue($v)};
212
+ --co-#{$k}: #{$v};
247
213
 
248
214
  $ls: 0.05;
249
215
  @each $l in $levels {
250
216
  // 透明度
251
- --co-#{$k}-#{$l}: #{rgba($v, $ls)};
217
+ @if ($k != 'none') {
218
+ --co-#{$k}-#{$l}: #{rgba($v, $ls)};
219
+
220
+ @if ($k != 'w' and $k != 'b') {
221
+ --co-#{$k}-fore-#{$l}: #{mix($v, map-get($s, 'fore'), $ls * 100%)};
222
+ }
223
+
224
+ @if ($k == 'main' or $k == 'well' or $k == 'warn' or $k == 'risk') {
225
+ --co-#{$k}-text-#{$l}: #{mix($v, map-get($s, 'text'), $ls * 100%)};
226
+ }
227
+ }
252
228
  @if ($ls <= 0.1 or $ls >= 0.8) {
253
229
  $ls: $ls + 0.05;
254
230
  } @else {
@@ -256,28 +232,6 @@ $theme: if(
256
232
  }
257
233
  }
258
234
  }
259
-
260
- // 文本颜色
261
- // --co-main-text: #{mix(map-get($s, 'main'), map-get($s, 'text'), 85%)};
262
- // --co-well-text: #{mix(map-get($s, 'well'), map-get($s, 'text'), 85%)};
263
- // --co-warn-text: #{mix(map-get($s, 'warn'), map-get($s, 'text'), 85%)};
264
- // --co-risk-text: #{mix(map-get($s, 'risk'), map-get($s, 'text'), 85%)};
265
-
266
- // @each $k in $colors {
267
- // $v: map-get($s, $k);
268
- // $ls: 0.05;
269
- // @each $l in $levels {
270
- // // 透明度
271
- // --co-#{$k}-#{$l}: #{rgba($v, $ls)};
272
- // // 增亮度
273
- // --bg-#{$k}-#{$l}: #{saturate(rgba($v, $ls), 20%)};
274
- // @if ($ls == 0.05 or $ls == 0.9) {
275
- // $ls: $ls + 0.05;
276
- // } @else {
277
- // $ls: $ls + 0.1;
278
- // }
279
- // }
280
- // }
281
235
  }
282
236
  }
283
237
  }
package/core/ux.scss CHANGED
@@ -163,7 +163,7 @@
163
163
  &::after {
164
164
  border-top-color: currentColor;
165
165
  transform: translateY(120%);
166
- opacity: 0.6;
166
+ opacity: 0.3;
167
167
  }
168
168
 
169
169
  &[ui-sort~='0'] {
@@ -171,12 +171,20 @@
171
171
  opacity: 0.3;
172
172
  }
173
173
  &::after {
174
- opacity: 0.6;
174
+ opacity: 0.3;
175
175
  }
176
176
  }
177
177
  &[ui-sort~='1'] {
178
178
  &::before {
179
- opacity: 0.6;
179
+ opacity: 0.3;
180
+ }
181
+ &::after {
182
+ opacity: 0.9;
183
+ }
184
+ }
185
+ &[ui-sort~='2'] {
186
+ &::before {
187
+ opacity: 0.9;
180
188
  }
181
189
  &::after {
182
190
  opacity: 0.3;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neatui/css",
3
- "version": "2.0.0-beta.2",
3
+ "version": "2.0.0",
4
4
  "description": "neatui",
5
5
  "main": "./neatui.scss",
6
6
  "license": "MIT",