@neatui/css 4.2.3 → 4.2.4

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
@@ -1350,7 +1350,7 @@ cursor-move
1350
1350
  - `ux-click[-sub] / hover-underline / ui-hover=":underline"`:始终显示
1351
1351
  pointer 与下划线,不会绑定 click 或 hover 事件;
1352
1352
  - `ux-scale`:`:active` 时缩放到 `.95`;
1353
- - `parent-hover:show / parent-hover:hide`:父级 hover 时只改变
1353
+ - `parent-hover:show / parent-hover:hide`:父级 `:hover` 或 `.active` 时只改变
1354
1354
  opacity 与 pointer-events,DOM 节点始终保留;
1355
1355
  - `ev-none|auto[-sub|-sun]`:以 `!important` 控制 self、直接子级或孙级的
1356
1356
  pointer-events。
package/core/ux.scss CHANGED
@@ -64,22 +64,24 @@
64
64
  }
65
65
  }
66
66
 
67
- // 移入显示
67
+ // 移入显示(父级 :hover 或 .active 同效)
68
68
  .parent-hover\:show {
69
69
  opacity: 0;
70
70
  pointer-events: none;
71
71
  transition: opacity 0.1s;
72
72
  }
73
- *:hover > .parent-hover\:show {
73
+ *:hover > .parent-hover\:show,
74
+ *.active > .parent-hover\:show {
74
75
  opacity: 1;
75
76
  pointer-events: auto;
76
77
  }
77
78
 
78
- // 移入隐藏
79
+ // 移入隐藏(父级 :hover 或 .active 同效)
79
80
  .parent-hover\:hide {
80
81
  transition: opacity 0.1s;
81
82
  }
82
- *:hover > .parent-hover\:hide {
83
+ *:hover > .parent-hover\:hide,
84
+ *.active > .parent-hover\:hide {
83
85
  opacity: 0;
84
86
  pointer-events: none;
85
87
  }
package/dist/neatui.css CHANGED
@@ -16617,7 +16617,7 @@ td[ui-col],th[ui-col]{
16617
16617
  transition:opacity .1s;
16618
16618
  }
16619
16619
 
16620
- :hover>.parent-hover\:show{
16620
+ .active>.parent-hover\:show,:hover>.parent-hover\:show{
16621
16621
  opacity:1;
16622
16622
  pointer-events:auto;
16623
16623
  }
@@ -16626,7 +16626,7 @@ td[ui-col],th[ui-col]{
16626
16626
  transition:opacity .1s;
16627
16627
  }
16628
16628
 
16629
- :hover>.parent-hover\:hide{
16629
+ .active>.parent-hover\:hide,:hover>.parent-hover\:hide{
16630
16630
  opacity:0;
16631
16631
  pointer-events:none;
16632
16632
  }