@voidable/theme 0.5.3 → 0.6.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/package.json
CHANGED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/* Layout primitives for dialog / detail bodies.
|
|
2
|
+
- .detail-grid: compact horizontal label | value pairs
|
|
3
|
+
- .info-grid: spacious vertical-stack 2-col grid */
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
--void-app-detail-label-width: 10rem;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/* Compact horizontal pairs */
|
|
10
|
+
.detail-grid {
|
|
11
|
+
display: grid;
|
|
12
|
+
grid-template-columns: var(--void-app-detail-label-width) 1fr;
|
|
13
|
+
gap: var(--void-space-3) var(--void-space-4);
|
|
14
|
+
margin: 0;
|
|
15
|
+
}
|
|
16
|
+
.detail-label {
|
|
17
|
+
font-family: var(--void-font-sans);
|
|
18
|
+
font-size: var(--void-text-sm);
|
|
19
|
+
color: var(--void-color-text-secondary);
|
|
20
|
+
margin: 0;
|
|
21
|
+
padding-top: 2px;
|
|
22
|
+
}
|
|
23
|
+
.detail-value {
|
|
24
|
+
font-family: var(--void-font-sans);
|
|
25
|
+
font-size: var(--void-text-sm);
|
|
26
|
+
color: var(--void-color-text);
|
|
27
|
+
margin: 0;
|
|
28
|
+
}
|
|
29
|
+
.detail-value-mono {
|
|
30
|
+
font-family: var(--void-font-mono);
|
|
31
|
+
font-size: var(--void-text-sm);
|
|
32
|
+
color: var(--void-color-text);
|
|
33
|
+
margin: 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* Spacious vertical stacks in a 2-col grid */
|
|
37
|
+
.info-grid {
|
|
38
|
+
display: grid;
|
|
39
|
+
grid-template-columns: 1fr 1fr;
|
|
40
|
+
gap: var(--void-space-4);
|
|
41
|
+
padding: var(--void-space-4) 0;
|
|
42
|
+
}
|
|
43
|
+
.info-grid-item {
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
gap: var(--void-space-1);
|
|
47
|
+
}
|
|
48
|
+
.info-grid-label {
|
|
49
|
+
font-size: var(--void-text-2xs);
|
|
50
|
+
font-family: var(--void-font-mono);
|
|
51
|
+
text-transform: uppercase;
|
|
52
|
+
letter-spacing: var(--void-tracking-widest);
|
|
53
|
+
color: var(--void-color-text-muted);
|
|
54
|
+
}
|
|
55
|
+
.info-grid-value {
|
|
56
|
+
font-size: var(--void-text-sm);
|
|
57
|
+
font-weight: var(--void-weight-medium);
|
|
58
|
+
color: var(--void-color-text);
|
|
59
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/* Sub-table inside a dialog body — for rendering related records. */
|
|
2
|
+
|
|
3
|
+
.subtable-section {
|
|
4
|
+
margin-bottom: var(--void-space-5);
|
|
5
|
+
}
|
|
6
|
+
.subtable-section:last-child {
|
|
7
|
+
margin-bottom: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.subtable-section-header {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
margin-bottom: var(--void-space-3);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.subtable-section-title {
|
|
18
|
+
font-size: var(--void-text-sm);
|
|
19
|
+
font-weight: var(--void-weight-semibold);
|
|
20
|
+
color: var(--void-color-text);
|
|
21
|
+
letter-spacing: var(--void-tracking-snug);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.subtable {
|
|
25
|
+
width: 100%;
|
|
26
|
+
border-collapse: collapse;
|
|
27
|
+
font-size: var(--void-text-xs);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.subtable th {
|
|
31
|
+
text-align: left;
|
|
32
|
+
padding: var(--void-space-2) var(--void-space-3);
|
|
33
|
+
font-size: var(--void-text-2xs);
|
|
34
|
+
font-family: var(--void-font-mono);
|
|
35
|
+
text-transform: uppercase;
|
|
36
|
+
letter-spacing: var(--void-tracking-widest);
|
|
37
|
+
color: var(--void-color-text-muted);
|
|
38
|
+
border-bottom: 1px solid var(--void-color-border);
|
|
39
|
+
font-weight: var(--void-weight-medium);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.subtable td {
|
|
43
|
+
padding: var(--void-space-2) var(--void-space-3);
|
|
44
|
+
border-bottom: 1px solid var(--void-color-border);
|
|
45
|
+
color: var(--void-color-text-secondary);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.subtable tr:last-child td {
|
|
49
|
+
border-bottom: none;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.subtable-key-mono {
|
|
53
|
+
font-family: var(--void-font-mono);
|
|
54
|
+
font-size: var(--void-text-xs);
|
|
55
|
+
color: var(--void-color-text);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.subtable-scopes-cell {
|
|
59
|
+
display: flex;
|
|
60
|
+
gap: var(--void-space-1);
|
|
61
|
+
flex-wrap: wrap;
|
|
62
|
+
}
|
package/src/index.css
CHANGED
|
@@ -64,3 +64,8 @@
|
|
|
64
64
|
@import './components/nav-menu.css';
|
|
65
65
|
@import './components/color-picker.css';
|
|
66
66
|
@import './components/action-input.css';
|
|
67
|
+
|
|
68
|
+
/* App-shell layout primitives */
|
|
69
|
+
@import './app-shell/detail.css';
|
|
70
|
+
@import './app-shell/modal-actions.css';
|
|
71
|
+
@import './app-shell/subtable.css';
|