@neatui/css 4.2.6 → 4.4.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/GUIDE.md +3 -2
- package/components/table/index.scss +1 -0
- package/components/table/table@d.scss +17 -0
- package/core/ux.scss +14 -8
- package/dist/neatui.css +13 -4
- package/dist/neatui.min.css +1 -1
- package/dist/neatui.preview.css +13 -4
- package/dist/neatui.preview.min.css +1 -1
- package/package.json +1 -1
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
|
-
- `
|
|
1395
|
-
opacity 与 pointer-events
|
|
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
|
|
package/core/ux.scss
CHANGED
|
@@ -64,24 +64,30 @@
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
//
|
|
68
|
-
.
|
|
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 > .
|
|
74
|
-
*.active > .
|
|
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
|
-
//
|
|
80
|
-
.
|
|
82
|
+
// 移入隐藏(祖先 :hover 或 .active 同效;sub 子级,sun 孙级)
|
|
83
|
+
.sub-hover\:hide,
|
|
84
|
+
.sun-hover\:hide {
|
|
81
85
|
transition: opacity 0.1s;
|
|
82
86
|
}
|
|
83
|
-
*:hover > .
|
|
84
|
-
*.active > .
|
|
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
|
-
.
|
|
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>.
|
|
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
|
-
.
|
|
16701
|
+
.sub-hover\:hide,.sun-hover\:hide{
|
|
16702
16702
|
transition:opacity .1s;
|
|
16703
16703
|
}
|
|
16704
16704
|
|
|
16705
|
-
.active>.
|
|
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
|
}
|
|
@@ -27500,6 +27500,15 @@ body [ui-btn~="@b"][ui-btn~=b][ui-btn~=":underline"]:hover{
|
|
|
27500
27500
|
background-color:var(--co-weak-w-lm);
|
|
27501
27501
|
}
|
|
27502
27502
|
|
|
27503
|
+
[ui-table~="@d"]{
|
|
27504
|
+
border-collapse:separate;
|
|
27505
|
+
border-spacing:0 .5em;
|
|
27506
|
+
}
|
|
27507
|
+
[ui-table~="@d"] tbody tr,[ui-table~="@d"] thead tr{
|
|
27508
|
+
border-radius:.35em;
|
|
27509
|
+
box-shadow:inset 0 0 0 1px var(--co-line);
|
|
27510
|
+
}
|
|
27511
|
+
|
|
27503
27512
|
[ui-tabs~="@a"]{
|
|
27504
27513
|
box-shadow:inset 0 -1px 0 var(--co-line);
|
|
27505
27514
|
height:2.5em;
|