vanilla-jui 1.5.13 → 1.5.15

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/src/css/table.css CHANGED
@@ -7,47 +7,51 @@
7
7
  scrollbar-color: var(--ui-border) transparent;
8
8
  }
9
9
 
10
- table.j-table {
10
+ table {
11
+ min-width: var(--table-min-width);
12
+ max-width: 100%;
11
13
  text-indent: 0;
12
14
  border-color: inherit;
13
15
  border-collapse: collapse;
14
16
  border-spacing: 0;
15
17
  }
16
18
 
17
- table.j-table tr.is-selected {
19
+ table tr.is-selected {
18
20
  background: var(--table-selected-bg);
19
21
  }
20
22
 
21
- table.j-table td,
22
- table.j-table th {
23
+ table td,
24
+ table th {
23
25
  border-width: var(--table-border-width);
24
26
  border-style: var(--table-border-style);
25
27
  border-color: var(--table-border-color);
26
28
  padding: var(--table-cell-padding);
27
- }
28
-
29
- table.j-table th:not([align]),
30
- table.j-table td:not([align]) {
31
29
  text-align: var(--table-cell-text-align);
32
30
  vertical-align: var(--table-cell-vertical-align);
33
31
  }
34
32
 
35
- table.j-table a {
33
+ table thead th {
34
+ background: var(--table-striped-bg);
35
+ font-weight: var(--table-header-font-weight);
36
+ white-space: nowrap;
37
+ }
38
+
39
+ table a {
36
40
  text-decoration: inherit;
37
41
  color: var(--table-link-fg);
38
42
  }
39
43
 
40
- table.j-table.is-striped thead tr,
41
- table.j-table.is-striped tbody tr:not(.is-selected):nth-child(2n) {
44
+ table.is-striped thead tr,
45
+ table.is-striped tbody tr:not(.is-selected):nth-child(2n) {
42
46
  background: var(--table-striped-bg);
43
47
  }
44
48
 
45
- table.j-table.is-hoverable tbody tr:hover {
49
+ table tbody tr:hover {
46
50
  background: var(--table-hover-bg);
47
51
  }
48
52
 
49
- table.j-table.is-bordered td,
50
- table.j-table.is-bordered th {
53
+ table.is-bordered td,
54
+ table.is-bordered th {
51
55
  border-width: var(--table-bordered-width);
52
56
  }
53
57
  }
@@ -3,17 +3,19 @@
3
3
  --table-container-max-width: 100%;
4
4
  }
5
5
 
6
- .j-table {
6
+ table {
7
+ --table-min-width: 280px;
8
+ --table-header-font-weight: 600;
7
9
  --table-selected-bg: var(--tone-soft);
8
10
  --table-border-width: 0 0 1px;
9
11
  --table-border-style: solid;
10
12
  --table-border-color: var(--ui-border);
11
- --table-cell-padding: 0.5em 0.75em;
13
+ --table-cell-padding: 0.5rem;
12
14
  --table-cell-text-align: left;
13
15
  --table-cell-vertical-align: top;
14
16
  --table-link-fg: var(--tone-solid);
15
- --table-striped-bg: var(--tone-soft);
16
- --table-hover-bg: var(--tone-soft);
17
+ --table-striped-bg: var(--ui-bg-subtle);
18
+ --table-hover-bg: var(--ui-bg-subtle);
17
19
  --table-bordered-width: 1px;
18
20
  }
19
21
  }
@@ -93,9 +93,9 @@
93
93
  --radius-full: 9999px;
94
94
 
95
95
  /* --- Opacity --- */
96
- --opacity-hover: 0.8;
96
+ --opacity-hover: 0.85;
97
97
  --opacity-active: 0.95;
98
- --opacity-disabled: 0.5;
98
+ --opacity-disabled: 0.75;
99
99
  }
100
100
 
101
101
  /* ============================================