@neatui/css 4.3.0 → 4.4.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.
package/GUIDE.md CHANGED
@@ -1391,8 +1391,9 @@ cursor-move
1391
1391
  - `ux-click[-sub] / hover-underline / ui-hover=":underline"`:始终显示
1392
1392
  pointer 与下划线,不会绑定 click 或 hover 事件;
1393
1393
  - `ux-scale`:`:active` 时缩放到 `.95`;
1394
- - `parent-hover:show / parent-hover:hide`:父级 `:hover` 或 `.active` 时只改变
1395
- opacity 与 pointer-events,DOM 节点始终保留;
1394
+ - `sub-hover / sun-hover` 与 `sub-hover:hide / sun-hover:hide`:祖先 `:hover`
1395
+ 或 `.active` 时只改变 opacity 与 pointer-events(`sub` 直接子级,`sun` 孙级),
1396
+ DOM 节点始终保留;
1396
1397
  - `ev-none|auto[-sub|-sun]`:以 `!important` 控制 self、直接子级或孙级的
1397
1398
  pointer-events。
1398
1399
 
@@ -18,6 +18,10 @@
18
18
  white-space: nowrap;
19
19
  }
20
20
 
21
+ &[max-width] {
22
+ width: 100%;
23
+ }
24
+
21
25
  &[col-fixed-side='l'] {
22
26
  position: sticky;
23
27
  &::before {
package/core/ux.scss CHANGED
@@ -64,24 +64,30 @@
64
64
  }
65
65
  }
66
66
 
67
- // 移入显示(父级 :hover 或 .active 同效)
68
- .parent-hover\:show {
67
+ // 移入显示(祖先 :hover 或 .active 同效;sub 子级,sun 孙级)
68
+ .sub-hover,
69
+ .sun-hover {
69
70
  opacity: 0;
70
71
  pointer-events: none;
71
72
  transition: opacity 0.1s;
72
73
  }
73
- *:hover > .parent-hover\:show,
74
- *.active > .parent-hover\:show {
74
+ *:hover > .sub-hover,
75
+ *.active > .sub-hover,
76
+ *:hover > * > .sun-hover,
77
+ *.active > * > .sun-hover {
75
78
  opacity: 1;
76
79
  pointer-events: auto;
77
80
  }
78
81
 
79
- // 移入隐藏(父级 :hover 或 .active 同效)
80
- .parent-hover\:hide {
82
+ // 移入隐藏(祖先 :hover 或 .active 同效;sub 子级,sun 孙级)
83
+ .sub-hover\:hide,
84
+ .sun-hover\:hide {
81
85
  transition: opacity 0.1s;
82
86
  }
83
- *:hover > .parent-hover\:hide,
84
- *.active > .parent-hover\:hide {
87
+ *:hover > .sub-hover\:hide,
88
+ *.active > .sub-hover\:hide,
89
+ *:hover > * > .sun-hover\:hide,
90
+ *.active > * > .sun-hover\:hide {
85
91
  opacity: 0;
86
92
  pointer-events: none;
87
93
  }
package/dist/neatui.css CHANGED
@@ -16687,22 +16687,22 @@ td[ui-col],th[ui-col]{
16687
16687
  transform:scale(.95);
16688
16688
  }
16689
16689
 
16690
- .parent-hover\:show{
16690
+ .sub-hover,.sun-hover{
16691
16691
  opacity:0;
16692
16692
  pointer-events:none;
16693
16693
  transition:opacity .1s;
16694
16694
  }
16695
16695
 
16696
- .active>.parent-hover\:show,:hover>.parent-hover\:show{
16696
+ .active>*>.sun-hover,.active>.sub-hover,:hover>*>.sun-hover,:hover>.sub-hover{
16697
16697
  opacity:1;
16698
16698
  pointer-events:auto;
16699
16699
  }
16700
16700
 
16701
- .parent-hover\:hide{
16701
+ .sub-hover\:hide,.sun-hover\:hide{
16702
16702
  transition:opacity .1s;
16703
16703
  }
16704
16704
 
16705
- .active>.parent-hover\:hide,:hover>.parent-hover\:hide{
16705
+ .active>*>.sun-hover\:hide,.active>.sub-hover\:hide,:hover>*>.sun-hover\:hide,:hover>.sub-hover\:hide{
16706
16706
  opacity:0;
16707
16707
  pointer-events:none;
16708
16708
  }
@@ -27341,6 +27341,9 @@ body [ui-btn~="@b"][ui-btn~=b][ui-btn~=":underline"]:hover{
27341
27341
  white-space:nowrap;
27342
27342
  width:1%;
27343
27343
  }
27344
+ [ui-table] td[max-width],[ui-table] th[max-width]{
27345
+ width:100%;
27346
+ }
27344
27347
  [ui-table] td[col-fixed-side=l],[ui-table] th[col-fixed-side=l]{
27345
27348
  position:sticky;
27346
27349
  }