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/dist/index.d.ts +17 -27
- package/dist/index.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/form.ts +143 -192
- package/src/css/content.css +0 -34
- package/src/css/form.css +5 -0
- package/src/css/table.css +18 -14
- package/src/css/themes/default/table.css +6 -4
- package/src/css/tokens.css +2 -2
package/src/css/table.css
CHANGED
|
@@ -7,47 +7,51 @@
|
|
|
7
7
|
scrollbar-color: var(--ui-border) transparent;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
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
|
|
19
|
+
table tr.is-selected {
|
|
18
20
|
background: var(--table-selected-bg);
|
|
19
21
|
}
|
|
20
22
|
|
|
21
|
-
table
|
|
22
|
-
table
|
|
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
|
|
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.
|
|
41
|
-
table.
|
|
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
|
|
49
|
+
table tbody tr:hover {
|
|
46
50
|
background: var(--table-hover-bg);
|
|
47
51
|
}
|
|
48
52
|
|
|
49
|
-
table.
|
|
50
|
-
table.
|
|
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
|
-
|
|
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.
|
|
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(--
|
|
16
|
-
--table-hover-bg: var(--
|
|
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
|
}
|
package/src/css/tokens.css
CHANGED