@voidable/theme 0.7.0 → 0.8.1
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/README.md +133 -8
- package/dist/base.css +20 -0
- package/dist/base.min.css +1 -0
- package/dist/component-tokens.json +1015 -0
- package/dist/components/accordion.css +149 -0
- package/dist/components/accordion.min.css +1 -0
- package/dist/components/action-input.css +416 -0
- package/dist/components/action-input.min.css +1 -0
- package/dist/components/alert.css +151 -0
- package/dist/components/alert.min.css +1 -0
- package/dist/components/avatar.css +73 -0
- package/dist/components/avatar.min.css +1 -0
- package/dist/components/badge.css +108 -0
- package/dist/components/badge.min.css +1 -0
- package/dist/components/banner.css +149 -0
- package/dist/components/banner.min.css +1 -0
- package/dist/components/bar-chart.css +101 -0
- package/dist/components/bar-chart.min.css +1 -0
- package/dist/components/breadcrumbs.css +82 -0
- package/dist/components/breadcrumbs.min.css +1 -0
- package/dist/components/button.css +237 -0
- package/dist/components/button.min.css +1 -0
- package/dist/components/calendar.css +669 -0
- package/dist/components/calendar.min.css +1 -0
- package/dist/components/card.css +161 -0
- package/dist/components/card.min.css +1 -0
- package/dist/components/carousel.css +223 -0
- package/dist/components/carousel.min.css +1 -0
- package/dist/components/checkbox-group.css +68 -0
- package/dist/components/checkbox-group.min.css +1 -0
- package/dist/components/checkbox.css +169 -0
- package/dist/components/checkbox.min.css +1 -0
- package/dist/components/collapsible.css +152 -0
- package/dist/components/collapsible.min.css +1 -0
- package/dist/components/color-picker.css +364 -0
- package/dist/components/color-picker.min.css +1 -0
- package/dist/components/combobox.css +548 -0
- package/dist/components/combobox.min.css +1 -0
- package/dist/components/compose-input.css +117 -0
- package/dist/components/compose-input.min.css +1 -0
- package/dist/components/dialog.css +175 -0
- package/dist/components/dialog.min.css +1 -0
- package/dist/components/divider.css +84 -0
- package/dist/components/divider.min.css +1 -0
- package/dist/components/donut-chart.css +122 -0
- package/dist/components/donut-chart.min.css +1 -0
- package/dist/components/drawer.css +230 -0
- package/dist/components/drawer.min.css +1 -0
- package/dist/components/dropdown-menu.css +274 -0
- package/dist/components/dropdown-menu.min.css +1 -0
- package/dist/components/editable.css +141 -0
- package/dist/components/editable.min.css +1 -0
- package/dist/components/error-fallback.css +129 -0
- package/dist/components/error-fallback.min.css +1 -0
- package/dist/components/field.css +103 -0
- package/dist/components/field.min.css +1 -0
- package/dist/components/file-upload.css +156 -0
- package/dist/components/file-upload.min.css +1 -0
- package/dist/components/gauge.css +186 -0
- package/dist/components/gauge.min.css +1 -0
- package/dist/components/hamburger.css +114 -0
- package/dist/components/hamburger.min.css +1 -0
- package/dist/components/hover-card.css +220 -0
- package/dist/components/hover-card.min.css +1 -0
- package/dist/components/indicator.css +159 -0
- package/dist/components/indicator.min.css +1 -0
- package/dist/components/input.css +134 -0
- package/dist/components/input.min.css +1 -0
- package/dist/components/line-chart.css +157 -0
- package/dist/components/line-chart.min.css +1 -0
- package/dist/components/list.css +90 -0
- package/dist/components/list.min.css +1 -0
- package/dist/components/menu.css +208 -0
- package/dist/components/menu.min.css +1 -0
- package/dist/components/multiselect.css +397 -0
- package/dist/components/multiselect.min.css +1 -0
- package/dist/components/nav-bar.css +75 -0
- package/dist/components/nav-bar.min.css +1 -0
- package/dist/components/nav-menu.css +173 -0
- package/dist/components/nav-menu.min.css +1 -0
- package/dist/components/number-input.css +272 -0
- package/dist/components/number-input.min.css +1 -0
- package/dist/components/pagination.css +128 -0
- package/dist/components/pagination.min.css +1 -0
- package/dist/components/panel.css +96 -0
- package/dist/components/panel.min.css +1 -0
- package/dist/components/pin-input.css +185 -0
- package/dist/components/pin-input.min.css +1 -0
- package/dist/components/popover.css +227 -0
- package/dist/components/popover.min.css +1 -0
- package/dist/components/progress.css +148 -0
- package/dist/components/progress.min.css +1 -0
- package/dist/components/radio-group.css +64 -0
- package/dist/components/radio-group.min.css +1 -0
- package/dist/components/radio.css +174 -0
- package/dist/components/radio.min.css +1 -0
- package/dist/components/scroll-area.css +83 -0
- package/dist/components/scroll-area.min.css +1 -0
- package/dist/components/segmented-control.css +158 -0
- package/dist/components/segmented-control.min.css +1 -0
- package/dist/components/select.css +207 -0
- package/dist/components/select.min.css +1 -0
- package/dist/components/sidebar.css +62 -0
- package/dist/components/sidebar.min.css +1 -0
- package/dist/components/skeleton.css +85 -0
- package/dist/components/skeleton.min.css +1 -0
- package/dist/components/slider.css +193 -0
- package/dist/components/slider.min.css +1 -0
- package/dist/components/spinner.css +100 -0
- package/dist/components/spinner.min.css +1 -0
- package/dist/components/stat.css +177 -0
- package/dist/components/stat.min.css +1 -0
- package/dist/components/status-dot.css +60 -0
- package/dist/components/status-dot.min.css +1 -0
- package/dist/components/stepper.css +114 -0
- package/dist/components/stepper.min.css +1 -0
- package/dist/components/switch.css +175 -0
- package/dist/components/switch.min.css +1 -0
- package/dist/components/table.css +416 -0
- package/dist/components/table.min.css +1 -0
- package/dist/components/tabs.css +185 -0
- package/dist/components/tabs.min.css +1 -0
- package/dist/components/tag.css +134 -0
- package/dist/components/tag.min.css +1 -0
- package/dist/components/tags-input.css +267 -0
- package/dist/components/tags-input.min.css +1 -0
- package/dist/components/textarea.css +127 -0
- package/dist/components/textarea.min.css +1 -0
- package/dist/components/toast.css +200 -0
- package/dist/components/toast.min.css +1 -0
- package/dist/components/toggle-group.css +59 -0
- package/dist/components/toggle-group.min.css +1 -0
- package/dist/components/toggle.css +139 -0
- package/dist/components/toggle.min.css +1 -0
- package/dist/components/tooltip.css +221 -0
- package/dist/components/tooltip.min.css +1 -0
- package/dist/core.css +9657 -0
- package/dist/core.min.css +1 -0
- package/dist/dtcg/aurora.dark.tokens.json +4723 -0
- package/dist/dtcg/aurora.light.tokens.json +4723 -0
- package/dist/dtcg/capsule.dark.tokens.json +4723 -0
- package/dist/dtcg/capsule.light.tokens.json +4723 -0
- package/dist/dtcg/console.dark.tokens.json +4723 -0
- package/dist/dtcg/console.light.tokens.json +4723 -0
- package/dist/dtcg/dune.dark.tokens.json +4723 -0
- package/dist/dtcg/dune.light.tokens.json +4723 -0
- package/dist/dtcg/iris.dark.tokens.json +4723 -0
- package/dist/dtcg/iris.light.tokens.json +4723 -0
- package/dist/dtcg/loft.dark.tokens.json +5203 -0
- package/dist/dtcg/loft.light.tokens.json +5203 -0
- package/dist/dtcg/orbit.dark.tokens.json +4723 -0
- package/dist/dtcg/orbit.light.tokens.json +4723 -0
- package/dist/dtcg/paper.dark.tokens.json +4723 -0
- package/dist/dtcg/paper.light.tokens.json +4723 -0
- package/dist/dtcg/slab.dark.tokens.json +4969 -0
- package/dist/dtcg/slab.light.tokens.json +4969 -0
- package/dist/dtcg/void.dark.tokens.json +4723 -0
- package/dist/dtcg/void.light.tokens.json +4723 -0
- package/dist/dtcg/voidable.resolver.json +117 -0
- package/dist/exports.json +708 -0
- package/dist/json/aurora.dark.json +394 -0
- package/dist/json/aurora.light.json +394 -0
- package/dist/json/capsule.dark.json +394 -0
- package/dist/json/capsule.light.json +394 -0
- package/dist/json/console.dark.json +394 -0
- package/dist/json/console.light.json +394 -0
- package/dist/json/dune.dark.json +394 -0
- package/dist/json/dune.light.json +394 -0
- package/dist/json/iris.dark.json +394 -0
- package/dist/json/iris.light.json +394 -0
- package/dist/json/loft.dark.json +423 -0
- package/dist/json/loft.light.json +423 -0
- package/dist/json/orbit.dark.json +394 -0
- package/dist/json/orbit.light.json +394 -0
- package/dist/json/paper.dark.json +394 -0
- package/dist/json/paper.light.json +394 -0
- package/dist/json/slab.dark.json +412 -0
- package/dist/json/slab.light.json +412 -0
- package/dist/json/void.dark.json +394 -0
- package/dist/json/void.light.json +394 -0
- package/dist/knobs.css +21 -0
- package/dist/knobs.json +362 -0
- package/dist/knobs.min.css +1 -0
- package/dist/layers.css +2 -0
- package/dist/layers.min.css +1 -0
- package/dist/names.d.ts +519 -0
- package/dist/names.js +719 -0
- package/dist/patterns/app-shell.css +136 -0
- package/dist/patterns/app-shell.min.css +1 -0
- package/dist/patterns/data.css +430 -0
- package/dist/patterns/data.min.css +1 -0
- package/dist/patterns/media.css +288 -0
- package/dist/patterns/media.min.css +1 -0
- package/dist/patterns/page.css +323 -0
- package/dist/patterns/page.min.css +1 -0
- package/dist/patterns/shell.css +328 -0
- package/dist/patterns/shell.min.css +1 -0
- package/dist/primitives.css +175 -0
- package/dist/primitives.min.css +1 -0
- package/dist/reset.css +44 -0
- package/dist/reset.min.css +1 -0
- package/dist/skin.d.ts +14 -0
- package/dist/skin.js +158 -0
- package/dist/skins/loft.css +94 -0
- package/dist/skins/loft.min.css +1 -0
- package/dist/skins/slab.css +99 -0
- package/dist/skins/slab.min.css +1 -0
- package/dist/themes/aurora.css +18 -0
- package/dist/themes/aurora.min.css +1 -0
- package/dist/themes/capsule.css +18 -0
- package/dist/themes/capsule.min.css +1 -0
- package/dist/themes/console.css +18 -0
- package/dist/themes/console.min.css +1 -0
- package/dist/themes/dune.css +18 -0
- package/dist/themes/dune.min.css +1 -0
- package/dist/themes/iris.css +18 -0
- package/dist/themes/iris.min.css +1 -0
- package/dist/themes/orbit.css +18 -0
- package/dist/themes/orbit.min.css +1 -0
- package/dist/themes/paper.css +19 -0
- package/dist/themes/paper.min.css +1 -0
- package/dist/themes/void.css +18 -0
- package/dist/themes/void.min.css +1 -0
- package/dist/tokens.css +695 -0
- package/dist/tokens.min.css +1 -0
- package/dist/type.css +99 -0
- package/dist/type.min.css +1 -0
- package/dist/void.css +9673 -0
- package/dist/void.min.css +1 -0
- package/package.json +66 -8
- package/src/app-shell/detail.css +7 -5
- package/src/app-shell/subtable.css +7 -6
- package/src/base.css +28 -0
- package/src/components/accordion.css +96 -19
- package/src/components/action-input.css +51 -61
- package/src/components/alert.css +63 -23
- package/src/components/avatar.css +0 -2
- package/src/components/badge.css +35 -25
- package/src/components/banner.css +60 -19
- package/src/components/bar-chart.css +10 -3
- package/src/components/breadcrumbs.css +20 -16
- package/src/components/button.css +130 -55
- package/src/components/calendar.css +40 -17
- package/src/components/card.css +122 -23
- package/src/components/carousel.css +85 -118
- package/src/components/checkbox-group.css +3 -1
- package/src/components/checkbox.css +18 -23
- package/src/components/collapsible.css +95 -29
- package/src/components/color-picker.css +10 -10
- package/src/components/combobox.css +47 -29
- package/src/components/compose-input.css +3 -3
- package/src/components/dialog.css +115 -41
- package/src/components/divider.css +7 -4
- package/src/components/donut-chart.css +25 -15
- package/src/components/drawer.css +135 -68
- package/src/components/dropdown-menu.css +21 -43
- package/src/components/editable.css +7 -7
- package/src/components/error-fallback.css +48 -27
- package/src/components/field.css +12 -5
- package/src/components/file-upload.css +2 -1
- package/src/components/gauge.css +35 -23
- package/src/components/hamburger.css +10 -10
- package/src/components/hover-card.css +13 -113
- package/src/components/indicator.css +22 -18
- package/src/components/input.css +15 -12
- package/src/components/line-chart.css +10 -10
- package/src/components/list.css +28 -7
- package/src/components/menu.css +48 -33
- package/src/components/multiselect.css +57 -40
- package/src/components/nav-bar.css +23 -14
- package/src/components/nav-menu.css +31 -22
- package/src/components/number-input.css +56 -79
- package/src/components/overlay.css +215 -0
- package/src/components/pagination.css +42 -31
- package/src/components/panel.css +37 -11
- package/src/components/pin-input.css +23 -22
- package/src/components/popover.css +19 -35
- package/src/components/progress.css +19 -10
- package/src/components/radio-group.css +2 -1
- package/src/components/radio.css +15 -20
- package/src/components/scroll-area.css +3 -3
- package/src/components/segmented-control.css +46 -29
- package/src/components/select.css +99 -31
- package/src/components/sidebar.css +8 -4
- package/src/components/skeleton.css +8 -3
- package/src/components/slider.css +4 -2
- package/src/components/spinner.css +5 -4
- package/src/components/stat.css +59 -52
- package/src/components/status-dot.css +0 -1
- package/src/components/switch.css +18 -26
- package/src/components/table.css +443 -16
- package/src/components/tabs.css +92 -29
- package/src/components/tag.css +44 -20
- package/src/components/tags-input.css +43 -55
- package/src/components/textarea.css +15 -12
- package/src/components/toast.css +84 -22
- package/src/components/toggle.css +35 -42
- package/src/components/tooltip.css +19 -38
- package/src/core.css +98 -0
- package/src/forced-colors.css +134 -0
- package/src/index.css +4 -77
- package/src/knobs.css +101 -0
- package/src/layers.css +38 -0
- package/src/media/media.css +258 -0
- package/src/media/surface.css +143 -0
- package/src/patterns/data.css +461 -0
- package/src/patterns/page.css +348 -0
- package/src/patterns/shell.css +371 -0
- package/src/pre-upgrade.css +202 -0
- package/src/primitives.css +19 -97
- package/src/reset.css +45 -21
- package/src/skins/loft.css +114 -0
- package/src/skins/slab.css +107 -0
- package/src/themes/aurora.css +16 -0
- package/src/themes/capsule.css +16 -0
- package/src/themes/console.css +16 -0
- package/src/themes/dune.css +16 -0
- package/src/themes/iris.css +16 -0
- package/src/themes/orbit.css +16 -0
- package/src/themes/paper.css +18 -0
- package/src/themes/void.css +16 -0
- package/src/tokens.css +552 -98
- package/src/type.css +103 -0
|
@@ -0,0 +1,461 @@
|
|
|
1
|
+
/* ── void-figure: one number that matters ──
|
|
2
|
+
<void-figure>
|
|
3
|
+
<span data-void-type="label">Downlink</span>
|
|
4
|
+
<span data-void-type="value">79.6 <span data-void-type="unit">TB</span></span>
|
|
5
|
+
<void-progress value="64" size="sm" aria-label="…"></void-progress>
|
|
6
|
+
<span data-void-type="caption"><void-delta trend="up">4%</void-delta> on last week</span>
|
|
7
|
+
</void-figure>
|
|
8
|
+
Its parts are the type roles, in this order: label, value (with
|
|
9
|
+
its unit inside), an optional progress bar, caption. */
|
|
10
|
+
/* @tokens void-figures
|
|
11
|
+
--void-figures-gap Space between figures; 0 by default, where rules separate them.
|
|
12
|
+
--void-figures-rule The line between two figures, beside and above.
|
|
13
|
+
--void-figures-rule-edge The lines above and below the row of figures. */
|
|
14
|
+
|
|
15
|
+
/* @tokens void-figure
|
|
16
|
+
--void-figure-surface Fill of one figure.
|
|
17
|
+
--void-figure-radius Corner radius of one figure.
|
|
18
|
+
--void-figure-shadow Shadow of one figure.
|
|
19
|
+
--void-figure-border Colour of the edge drawn just inside one figure.
|
|
20
|
+
--void-figure-border-width Thickness of that edge; 0 by default. Set it (the colour may be transparent) whenever a figure has a fill or a shadow: forced colours removes both, and the edge is what remains.
|
|
21
|
+
--void-figure-padding Padding of every figure on every side. Unset, the first figure of a row sits flush on the content edge; set, each figure is a padded tile. */
|
|
22
|
+
|
|
23
|
+
/* @tokens void-description-list
|
|
24
|
+
--void-description-list-rule The line between pairs.
|
|
25
|
+
--void-description-list-rule-edge The lines above the first pair and below the last. */
|
|
26
|
+
|
|
27
|
+
/* @tokens void-rows
|
|
28
|
+
--void-rows-rule The line between rows.
|
|
29
|
+
--void-rows-rule-edge The lines above the first row and below the last.
|
|
30
|
+
--void-rows-padding Block padding of a row. */
|
|
31
|
+
|
|
32
|
+
void-figure {
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
gap: var(--void-gap-tight);
|
|
36
|
+
min-width: 0;
|
|
37
|
+
border-radius: var(--void-figure-radius, 0);
|
|
38
|
+
background: var(--void-figure-surface, transparent);
|
|
39
|
+
box-shadow: var(--void-figure-shadow, none);
|
|
40
|
+
/* An outline, drawn inside, and not a border: the borders of a figure
|
|
41
|
+
are the rules between figures, and an edge must not move them. */
|
|
42
|
+
outline: var(--void-figure-border-width, 0) solid var(--void-figure-border, transparent);
|
|
43
|
+
outline-offset: calc(var(--void-figure-border-width, 0px) * -1);
|
|
44
|
+
font-family: var(--void-font-sans);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* Forced colours removes a tile's fill and shadow; its edge remains. */
|
|
48
|
+
@media (forced-colors: active) {
|
|
49
|
+
void-figure {
|
|
50
|
+
outline-color: CanvasText;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
void-figure > [data-void-type="value"] {
|
|
55
|
+
display: block;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* The unit follows the number on its baseline. The space between
|
|
59
|
+
them is set in the number's size, which is too wide: pull it in. */
|
|
60
|
+
[data-void-type="value"] > [data-void-type="unit"] {
|
|
61
|
+
margin-inline-start: -0.3em;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
void-figure > void-progress {
|
|
65
|
+
margin-block: var(--void-space-1);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* ── void-figures: figures in a hairline-divided row ──
|
|
69
|
+
<void-figures columns="4">…void-figure children…</void-figures>
|
|
70
|
+
columns: 2, 3 or 4 (default). Below 48rem it is two columns and an
|
|
71
|
+
odd last figure takes the full width. */
|
|
72
|
+
void-figures {
|
|
73
|
+
--_void-figures-columns: 4;
|
|
74
|
+
|
|
75
|
+
display: grid;
|
|
76
|
+
grid-template-columns: repeat(var(--_void-figures-columns), minmax(0, 1fr));
|
|
77
|
+
gap: var(--void-figures-gap, 0);
|
|
78
|
+
border-block: var(--void-figures-rule-edge, var(--void-rule-edge));
|
|
79
|
+
/* The line between two figures, beside and above. */
|
|
80
|
+
--_void-figures-rule: var(--void-figures-rule, var(--void-rule-between));
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
void-figures[columns="2"] { --_void-figures-columns: 2; }
|
|
84
|
+
void-figures[columns="3"] { --_void-figures-columns: 3; }
|
|
85
|
+
|
|
86
|
+
void-figures > void-figure {
|
|
87
|
+
padding: var(--void-figure-padding, var(--void-gap-inside));
|
|
88
|
+
border-inline-start: var(--_void-figures-rule);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* The first figure of each row sits on the content edge, unless the
|
|
92
|
+
figures are padded tiles (--void-figure-padding is set). */
|
|
93
|
+
void-figures:not([columns]) > void-figure:nth-child(4n + 1),
|
|
94
|
+
void-figures[columns="4"] > void-figure:nth-child(4n + 1),
|
|
95
|
+
void-figures[columns="3"] > void-figure:nth-child(3n + 1),
|
|
96
|
+
void-figures[columns="2"] > void-figure:nth-child(2n + 1) {
|
|
97
|
+
padding-inline-start: var(--void-figure-padding, 0);
|
|
98
|
+
border-inline-start: 0;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
void-figures:not([columns]) > void-figure:nth-child(n + 5),
|
|
102
|
+
void-figures[columns="4"] > void-figure:nth-child(n + 5),
|
|
103
|
+
void-figures[columns="3"] > void-figure:nth-child(n + 4),
|
|
104
|
+
void-figures[columns="2"] > void-figure:nth-child(n + 3) {
|
|
105
|
+
border-top: var(--_void-figures-rule);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@media (max-width: 48rem) {
|
|
109
|
+
void-figures,
|
|
110
|
+
void-figures[columns] {
|
|
111
|
+
--_void-figures-columns: 2;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
void-figures > void-figure:nth-child(n) {
|
|
115
|
+
padding-inline-start: var(--void-figure-padding, var(--void-gap-inside));
|
|
116
|
+
border-inline-start: var(--_void-figures-rule);
|
|
117
|
+
border-top: 0;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
void-figures > void-figure:nth-child(2n + 1) {
|
|
121
|
+
padding-inline-start: var(--void-figure-padding, 0);
|
|
122
|
+
border-inline-start: 0;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
void-figures > void-figure:nth-child(n + 3) {
|
|
126
|
+
border-top: var(--_void-figures-rule);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
void-figures > void-figure:last-child:nth-child(2n + 1) {
|
|
130
|
+
grid-column: 1 / -1;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/* ── void-delta: a change, with its direction ──
|
|
135
|
+
<void-delta trend="up">4.2%</void-delta>
|
|
136
|
+
The arrow carries the direction, so colour is not the only signal.
|
|
137
|
+
trend: up, down, flat. By default up is good (green) and down is
|
|
138
|
+
bad (red); `invert` swaps that for figures where less is better. */
|
|
139
|
+
void-delta {
|
|
140
|
+
display: inline-flex;
|
|
141
|
+
align-items: baseline;
|
|
142
|
+
gap: 0.25em;
|
|
143
|
+
font-variant-numeric: tabular-nums;
|
|
144
|
+
white-space: nowrap;
|
|
145
|
+
color: var(--void-color-text-secondary);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
void-delta::before {
|
|
149
|
+
content: "→";
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
void-delta[trend="up"]::before { content: "↑"; }
|
|
153
|
+
void-delta[trend="down"]::before { content: "↓"; }
|
|
154
|
+
|
|
155
|
+
void-delta[trend="up"],
|
|
156
|
+
void-delta[trend="down"][invert] {
|
|
157
|
+
color: var(--void-color-success);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
void-delta[trend="down"],
|
|
161
|
+
void-delta[trend="up"][invert] {
|
|
162
|
+
color: var(--void-color-error);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/* ── void-state: a state, as a dot and a word ──
|
|
166
|
+
<void-state color="success">Tracking</void-state>
|
|
167
|
+
The word is the content and is always there, so colour is never the
|
|
168
|
+
only signal. color: default (grey), success, info, warning,
|
|
169
|
+
caution, error, notice, highlight. `pulse` marks something happening now. */
|
|
170
|
+
void-state {
|
|
171
|
+
--_void-tone: var(--void-color-text-disabled);
|
|
172
|
+
|
|
173
|
+
display: inline-flex;
|
|
174
|
+
align-items: center;
|
|
175
|
+
gap: var(--void-gap-tight);
|
|
176
|
+
white-space: nowrap;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
void-state::before {
|
|
180
|
+
content: "";
|
|
181
|
+
flex: none;
|
|
182
|
+
width: 0.5rem;
|
|
183
|
+
height: 0.5rem;
|
|
184
|
+
border-radius: var(--void-radius-full);
|
|
185
|
+
background: var(--_void-tone);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
void-state[color="success"] { --_void-tone: var(--void-color-success); }
|
|
189
|
+
void-state[color="info"] { --_void-tone: var(--void-color-info); }
|
|
190
|
+
void-state[color="warning"] { --_void-tone: var(--void-color-warning); }
|
|
191
|
+
void-state[color="caution"] { --_void-tone: var(--void-color-caution); }
|
|
192
|
+
void-state[color="highlight"] { --_void-tone: var(--void-color-highlight); }
|
|
193
|
+
void-state[color="error"] { --_void-tone: var(--void-color-error); }
|
|
194
|
+
void-state[color="notice"] { --_void-tone: var(--void-color-notice); }
|
|
195
|
+
|
|
196
|
+
void-state[pulse]::before {
|
|
197
|
+
animation: void-state-pulse calc(1.6s * var(--void-anim-scale)) var(--void-ease-in-out) infinite;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
@keyframes void-state-pulse {
|
|
201
|
+
0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--_void-tone) 55%, transparent); }
|
|
202
|
+
70% { box-shadow: 0 0 0 0.375rem color-mix(in srgb, var(--_void-tone) 0%, transparent); }
|
|
203
|
+
100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--_void-tone) 0%, transparent); }
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/* ── void-description-list: labels and their values ──
|
|
207
|
+
Wraps a native <dl>, as void-table wraps a <table>. Each pair is a
|
|
208
|
+
<div> holding a <dt> and a <dd>.
|
|
209
|
+
|
|
210
|
+
<void-description-list>
|
|
211
|
+
<dl>
|
|
212
|
+
<div><dt>Region</dt><dd>eu-north-2</dd></div>
|
|
213
|
+
<div><dt>Antenna</dt><dd>7.3 m</dd></div>
|
|
214
|
+
</dl>
|
|
215
|
+
</void-description-list>
|
|
216
|
+
|
|
217
|
+
Default: one pair per row, label left and value right, a hairline
|
|
218
|
+
between rows. layout="grid" stacks each label over its value and
|
|
219
|
+
sets the pairs in columns ("2", "3" or "4"). */
|
|
220
|
+
void-description-list {
|
|
221
|
+
display: block;
|
|
222
|
+
font-family: var(--void-font-sans);
|
|
223
|
+
font-size: var(--void-type-body-size);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
void-description-list > dl {
|
|
227
|
+
display: grid;
|
|
228
|
+
grid-template-columns: minmax(0, 1fr);
|
|
229
|
+
border-top: var(--void-description-list-rule-edge, var(--void-rule-edge));
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
void-description-list > dl > div {
|
|
233
|
+
display: flex;
|
|
234
|
+
align-items: baseline;
|
|
235
|
+
justify-content: space-between;
|
|
236
|
+
gap: var(--void-gap-inside);
|
|
237
|
+
padding-block: var(--void-cell-padding-block);
|
|
238
|
+
border-bottom: var(--void-description-list-rule, var(--void-rule-between));
|
|
239
|
+
min-width: 0;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/* The last pair closes the list. */
|
|
243
|
+
void-description-list:not([layout="grid"]) > dl > div:last-child {
|
|
244
|
+
border-bottom: var(--void-description-list-rule-edge, var(--void-rule-edge));
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
void-description-list dt {
|
|
248
|
+
flex: none;
|
|
249
|
+
font-family: var(--void-type-label-family);
|
|
250
|
+
font-size: var(--void-type-label-size);
|
|
251
|
+
line-height: var(--void-type-label-leading);
|
|
252
|
+
font-weight: var(--void-type-label-weight);
|
|
253
|
+
letter-spacing: var(--void-type-label-tracking);
|
|
254
|
+
text-transform: var(--void-type-label-case);
|
|
255
|
+
color: var(--void-type-label-color);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
void-description-list dd {
|
|
259
|
+
min-width: 0;
|
|
260
|
+
color: var(--void-color-text);
|
|
261
|
+
font-variant-numeric: tabular-nums;
|
|
262
|
+
text-align: end;
|
|
263
|
+
overflow-wrap: anywhere;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/* Rows in two columns, for a wide page with many short pairs. */
|
|
267
|
+
void-description-list:not([layout="grid"])[columns="2"] > dl {
|
|
268
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
269
|
+
column-gap: var(--void-gap-group);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/* Grid: label over value, pairs side by side, no row lines. */
|
|
273
|
+
void-description-list[layout="grid"] > dl {
|
|
274
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
275
|
+
gap: var(--void-gap-stack) var(--void-gap-inside);
|
|
276
|
+
border-top: 0;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
void-description-list[layout="grid"][columns="1"] > dl { grid-template-columns: minmax(0, 1fr); }
|
|
280
|
+
void-description-list[layout="grid"][columns="3"] > dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
281
|
+
void-description-list[layout="grid"][columns="4"] > dl { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
|
282
|
+
|
|
283
|
+
void-description-list[layout="grid"] > dl > div {
|
|
284
|
+
flex-direction: column;
|
|
285
|
+
align-items: stretch;
|
|
286
|
+
justify-content: flex-start;
|
|
287
|
+
gap: var(--void-space-1);
|
|
288
|
+
padding-block: 0;
|
|
289
|
+
border-bottom: 0;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
void-description-list[layout="grid"] dd {
|
|
293
|
+
text-align: start;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
@media (max-width: 48rem) {
|
|
297
|
+
void-description-list:not([layout="grid"])[columns="2"] > dl {
|
|
298
|
+
grid-template-columns: minmax(0, 1fr);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
void-description-list[layout="grid"]:is([columns="3"], [columns="4"]) > dl {
|
|
302
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/* ── void-rows: a list of rows, text left and a value or control right ──
|
|
307
|
+
<void-rows>
|
|
308
|
+
<void-row>
|
|
309
|
+
<void-row-text>
|
|
310
|
+
<span>Maintenance alerts</span>
|
|
311
|
+
<span data-void-type="caption">Email the on-call engineer.</span>
|
|
312
|
+
</void-row-text>
|
|
313
|
+
<void-switch checked></void-switch>
|
|
314
|
+
</void-row>
|
|
315
|
+
</void-rows>
|
|
316
|
+
For settings, event lists and anything that is one thing per line
|
|
317
|
+
but is not tabular. */
|
|
318
|
+
void-rows {
|
|
319
|
+
display: flex;
|
|
320
|
+
flex-direction: column;
|
|
321
|
+
border-top: var(--void-rows-rule-edge, var(--void-rule-edge));
|
|
322
|
+
font-family: var(--void-font-sans);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
void-row {
|
|
326
|
+
display: flex;
|
|
327
|
+
align-items: center;
|
|
328
|
+
justify-content: space-between;
|
|
329
|
+
gap: var(--void-gap-inside);
|
|
330
|
+
padding-block: var(--void-rows-padding, var(--void-gap-inside));
|
|
331
|
+
border-bottom: var(--void-rows-rule, var(--void-rule-between));
|
|
332
|
+
min-width: 0;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/* The last row closes the list. */
|
|
336
|
+
void-row:last-child {
|
|
337
|
+
border-bottom: var(--void-rows-rule-edge, var(--void-rule-edge));
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
void-row-text {
|
|
341
|
+
display: flex;
|
|
342
|
+
flex-direction: column;
|
|
343
|
+
gap: var(--void-space-1);
|
|
344
|
+
min-width: 0;
|
|
345
|
+
max-width: var(--void-measure);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
void-row > :not(void-row-text) {
|
|
349
|
+
flex: none;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
/* The same two lines in a table cell sit closer together. */
|
|
353
|
+
void-table void-row-text {
|
|
354
|
+
gap: 0;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/* ── void-toolbar: the controls above a table or a list ──
|
|
358
|
+
<void-toolbar>
|
|
359
|
+
<void-input type="search" placeholder="Search"></void-input>
|
|
360
|
+
<void-select>…</void-select>
|
|
361
|
+
<void-spacer></void-spacer>
|
|
362
|
+
<void-button variant="ghost" aria-label="Refresh">…</void-button>
|
|
363
|
+
</void-toolbar>
|
|
364
|
+
One row that wraps. A search field takes the room it needs and no
|
|
365
|
+
more; void-spacer pushes what follows to the far end. */
|
|
366
|
+
void-toolbar {
|
|
367
|
+
display: flex;
|
|
368
|
+
align-items: center;
|
|
369
|
+
flex-wrap: wrap;
|
|
370
|
+
gap: var(--void-gap-tight);
|
|
371
|
+
min-width: 0;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
void-toolbar > :is(void-input, void-action-input) {
|
|
375
|
+
flex: 1 1 12rem;
|
|
376
|
+
max-width: 20rem;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
void-toolbar > :is(void-select, void-combobox, void-multiselect) {
|
|
380
|
+
flex: 0 1 11rem;
|
|
381
|
+
width: auto;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/* On a phone the fields take the row: a search field that stops 40px short
|
|
385
|
+
of the edge and a select that stops halfway are two ragged ends. The
|
|
386
|
+
search field has a row to itself, a picker grows to fill its own. */
|
|
387
|
+
@media (max-width: 30rem) {
|
|
388
|
+
void-toolbar > :is(void-input, void-action-input) {
|
|
389
|
+
flex-basis: 100%;
|
|
390
|
+
max-width: none;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
void-toolbar > :is(void-select, void-combobox, void-multiselect) {
|
|
394
|
+
flex-grow: 1;
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
/* Text in a toolbar (a count, a selection summary) is quiet. */
|
|
399
|
+
void-toolbar > :is(span, p) {
|
|
400
|
+
color: var(--void-color-text-secondary);
|
|
401
|
+
font-size: var(--void-type-body-size);
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
/* ── void-empty: nothing here yet ──
|
|
405
|
+
<void-empty>
|
|
406
|
+
<svg aria-hidden="true">…</svg> optional icon
|
|
407
|
+
<h3>No stations match</h3>
|
|
408
|
+
<p>Try another region, or clear the filters.</p>
|
|
409
|
+
<void-actions>…</void-actions> optional
|
|
410
|
+
</void-empty>
|
|
411
|
+
Centred, quiet, and roomy. `bordered` draws a dashed hairline
|
|
412
|
+
around it, for an empty area inside a page that is otherwise full. */
|
|
413
|
+
void-empty {
|
|
414
|
+
display: flex;
|
|
415
|
+
flex-direction: column;
|
|
416
|
+
align-items: center;
|
|
417
|
+
gap: var(--void-gap-tight);
|
|
418
|
+
padding: var(--void-gap-section) var(--void-gap-inside);
|
|
419
|
+
text-align: center;
|
|
420
|
+
font-family: var(--void-font-sans);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
void-empty > :is(svg, i, img) {
|
|
424
|
+
width: 1.5rem;
|
|
425
|
+
height: 1.5rem;
|
|
426
|
+
margin-bottom: var(--void-gap-tight);
|
|
427
|
+
color: var(--void-color-text-muted);
|
|
428
|
+
font-size: 1.5rem; /* token-ok: icon-font glyph box, matches width */
|
|
429
|
+
fill: none;
|
|
430
|
+
stroke: currentColor;
|
|
431
|
+
stroke-width: var(--void-icon-stroke-width);
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
void-empty > :is(h2, h3, h4) {
|
|
435
|
+
font-family: var(--void-type-heading-family);
|
|
436
|
+
font-size: var(--void-type-body-size);
|
|
437
|
+
line-height: var(--void-type-heading-leading);
|
|
438
|
+
font-weight: var(--void-type-heading-weight);
|
|
439
|
+
color: var(--void-type-heading-color);
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
void-empty > p {
|
|
443
|
+
max-width: 26rem;
|
|
444
|
+
font-size: var(--void-type-body-size);
|
|
445
|
+
line-height: var(--void-type-body-leading);
|
|
446
|
+
color: var(--void-color-text-secondary);
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
void-empty > void-actions {
|
|
450
|
+
justify-content: center;
|
|
451
|
+
margin-top: var(--void-gap-inside);
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
void-empty[bordered] {
|
|
455
|
+
border: 1px dashed var(--void-color-border-strong);
|
|
456
|
+
border-radius: var(--void-container-radius);
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
void-empty[size="sm"] {
|
|
460
|
+
padding-block: var(--void-gap-group);
|
|
461
|
+
}
|