@neatui/css 3.7.2 → 3.8.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.
@@ -163,11 +163,9 @@
163
163
  // }
164
164
 
165
165
  // 排序图标
166
- [ui-order],
167
- .ux-order {
166
+ [ui-order~='@a'] {
168
167
  position: relative;
169
168
  cursor: pointer;
170
- // padding-right: 0.75em;
171
169
  &::before,
172
170
  &::after {
173
171
  content: '';
package/core/theme.scss CHANGED
@@ -5,6 +5,23 @@
5
5
  @use 'sass:map';
6
6
  @use 'sass:color';
7
7
  @use 'sass:string';
8
+ @use 'sass:math';
9
+
10
+ // 动态加深颜色
11
+ @function deep-color($c, $min: 8%, $max: 16%) {
12
+ $perc: color.channel($c, 'lightness', $space: hsl);
13
+ $L: math.div($perc, 1%);
14
+ $ratio: math.div(100 - $L, 100);
15
+ $w: $min + $ratio * ($max - $min);
16
+ @if $w < $min {
17
+ $w: $min;
18
+ }
19
+ @if $w > $max {
20
+ $w: $max;
21
+ }
22
+
23
+ @return color.mix(black, $c, $w);
24
+ }
8
25
 
9
26
  @mixin theme(
10
27
  $theme: (
@@ -18,8 +35,8 @@
18
35
  well: #4bbc73,
19
36
  warn: #fb9a2a,
20
37
  risk: #f95850,
21
- info: #0889e4
22
- )
38
+ info: #0889e4,
39
+ ),
23
40
  )
24
41
  ) {
25
42
  // 检测
@@ -61,12 +78,13 @@
61
78
  note: color.mix(map.get($s, 'text'), map.get($s, 'fore'), 35%),
62
79
  case: color.mix(map.get($s, 'text'), map.get($s, 'fore'), 20%),
63
80
  line: color.mix(map.get($s, 'text'), map.get($s, 'fore'), 10%),
64
- weak: color.mix(map.get($s, 'text'), map.get($s, 'fore'), 4%)
81
+ weak: color.mix(map.get($s, 'text'), map.get($s, 'fore'), 4%),
82
+ deep: deep-color(map.get($s, 'back')),
65
83
  );
66
84
  $theme: map.merge(
67
85
  $theme,
68
86
  (
69
- $n: map.merge($m, $s)
87
+ $n: map.merge($m, $s),
70
88
  )
71
89
  );
72
90
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neatui/css",
3
- "version": "3.7.2",
3
+ "version": "3.8.1",
4
4
  "description": "neatui",
5
5
  "main": "./neatui.scss",
6
6
  "license": "MIT",