@neatui/css 5.1.6 → 5.1.8

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.
@@ -9,6 +9,39 @@
9
9
  margin-block-start: -0.5em;
10
10
  }
11
11
 
12
+ // 尺寸:行已是卡片,纵向比横向收一档
13
+ &[ui-table~='sz:xs'] {
14
+ th,
15
+ td {
16
+ padding: 0.25em 0.5em;
17
+ }
18
+ }
19
+ &[ui-table~='sz:s'] {
20
+ th,
21
+ td {
22
+ padding: 0.5em 0.75em;
23
+ }
24
+ }
25
+ &,
26
+ &[ui-table~='sz:m'] {
27
+ th,
28
+ td {
29
+ padding: 0.75em 1em;
30
+ }
31
+ }
32
+ &[ui-table~='sz:l'] {
33
+ th,
34
+ td {
35
+ padding: 1em 1.25em;
36
+ }
37
+ }
38
+ &[ui-table~='sz:xl'] {
39
+ th,
40
+ td {
41
+ padding: 1.25em 1.5em;
42
+ }
43
+ }
44
+
12
45
  // 固定头部需实底,避免行卡片从下方透出
13
46
  .table-head-fixed {
14
47
  background-color: var(--co-fore);
@@ -21,4 +54,12 @@
21
54
  border-radius: 0.35em;
22
55
  }
23
56
  }
57
+
58
+ // 边框是阴影,ux-hover 的移入底色会把它覆盖,叠加时边框放在最上层
59
+ tr.ux-hover:hover,
60
+ .ux-hover-sub > tr:hover {
61
+ box-shadow:
62
+ inset 0 0 0 1px var(--co-line),
63
+ inset 0 0 0 100em var(--co-text-o-xxs);
64
+ }
24
65
  }
package/dist/neatui.css CHANGED
@@ -30260,6 +30260,21 @@ body [ui-btn~="@b"][ui-btn~=b][ui-btn~=":underline"]:hover{
30260
30260
  border-spacing:0 .5em;
30261
30261
  margin-block-start:-.5em;
30262
30262
  }
30263
+ [ui-table~="@d"][ui-table~="sz:xs"] td,[ui-table~="@d"][ui-table~="sz:xs"] th{
30264
+ padding:.25em .5em;
30265
+ }
30266
+ [ui-table~="@d"][ui-table~="sz:s"] td,[ui-table~="@d"][ui-table~="sz:s"] th{
30267
+ padding:.5em .75em;
30268
+ }
30269
+ [ui-table~="@d"] td,[ui-table~="@d"] th,[ui-table~="@d"][ui-table~="sz:m"] td,[ui-table~="@d"][ui-table~="sz:m"] th{
30270
+ padding:.75em 1em;
30271
+ }
30272
+ [ui-table~="@d"][ui-table~="sz:l"] td,[ui-table~="@d"][ui-table~="sz:l"] th{
30273
+ padding:1em 1.25em;
30274
+ }
30275
+ [ui-table~="@d"][ui-table~="sz:xl"] td,[ui-table~="@d"][ui-table~="sz:xl"] th{
30276
+ padding:1.25em 1.5em;
30277
+ }
30263
30278
  [ui-table~="@d"] .table-head-fixed{
30264
30279
  background-color:var(--co-fore);
30265
30280
  }
@@ -30267,6 +30282,9 @@ body [ui-btn~="@b"][ui-btn~=b][ui-btn~=":underline"]:hover{
30267
30282
  border-radius:.35em;
30268
30283
  box-shadow:inset 0 0 0 1px var(--co-line);
30269
30284
  }
30285
+ [ui-table~="@d"] .ux-hover-sub>tr:hover,[ui-table~="@d"] tr.ux-hover:hover{
30286
+ box-shadow:inset 0 0 0 1px var(--co-line), inset 0 0 0 100em var(--co-text-o-xxs);
30287
+ }
30270
30288
 
30271
30289
  [ui-tabs~="@a"]{
30272
30290
  box-shadow:inset 0 -1px 0 var(--co-line);