@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
|
@@ -1,15 +1,29 @@
|
|
|
1
|
+
/* The host is a two-row grid, the trigger and then the content, and the
|
|
2
|
+
content row is 0fr closed and 1fr open: the row animates between them, so
|
|
3
|
+
content of any height opens and closes smoothly with no script measuring it
|
|
4
|
+
(animating grid rows is baseline widely available; where it is not, the
|
|
5
|
+
content just appears and disappears). */
|
|
1
6
|
void-collapsible {
|
|
2
|
-
display:
|
|
7
|
+
display: grid;
|
|
8
|
+
grid-template-rows: auto 0fr;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
void-collapsible[open] {
|
|
12
|
+
grid-template-rows: auto 1fr;
|
|
3
13
|
}
|
|
4
14
|
|
|
5
|
-
|
|
15
|
+
/* The trigger part is the button (role="button", a tab stop, written by the
|
|
16
|
+
collapsible); the chevron is drawn here, so it shows before the script loads. */
|
|
17
|
+
void-collapsible-trigger {
|
|
6
18
|
display: flex;
|
|
7
19
|
align-items: center;
|
|
8
20
|
justify-content: space-between;
|
|
21
|
+
gap: var(--void-space-2);
|
|
22
|
+
box-sizing: border-box;
|
|
9
23
|
width: 100%;
|
|
10
24
|
padding: var(--void-space-3) var(--void-space-4);
|
|
11
|
-
border:
|
|
12
|
-
border-radius: var(--void-radius
|
|
25
|
+
border: var(--void-rule-frame);
|
|
26
|
+
border-radius: var(--void-control-radius);
|
|
13
27
|
background: transparent;
|
|
14
28
|
color: var(--void-color-text);
|
|
15
29
|
font-family: var(--void-font-sans);
|
|
@@ -17,49 +31,101 @@ void-collapsible {
|
|
|
17
31
|
font-weight: var(--void-weight-medium);
|
|
18
32
|
text-align: left;
|
|
19
33
|
cursor: pointer;
|
|
34
|
+
user-select: none;
|
|
35
|
+
outline: none;
|
|
20
36
|
transition: background var(--void-duration-fast) var(--void-ease-in-out);
|
|
21
37
|
}
|
|
22
38
|
|
|
23
|
-
|
|
24
|
-
|
|
39
|
+
void-collapsible-trigger::after {
|
|
40
|
+
content: '';
|
|
41
|
+
width: 1rem;
|
|
42
|
+
height: 1rem;
|
|
43
|
+
flex-shrink: 0;
|
|
44
|
+
background: var(--void-color-text-secondary);
|
|
45
|
+
/* token-ok: the chevron's shape; its colour is the background token above */
|
|
46
|
+
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
|
|
47
|
+
transition: transform var(--void-duration-fast) var(--void-ease-in-out);
|
|
25
48
|
}
|
|
26
49
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
outline-offset: -2px;
|
|
50
|
+
void-collapsible-trigger:hover {
|
|
51
|
+
background: var(--void-color-bg-hover);
|
|
30
52
|
}
|
|
31
53
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
flex-shrink: 0;
|
|
36
|
-
color: var(--void-color-text-secondary);
|
|
37
|
-
transition: transform var(--void-duration-fast) var(--void-ease-in-out);
|
|
54
|
+
void-collapsible-trigger:focus-visible {
|
|
55
|
+
outline: var(--void-focus-ring-width) solid var(--void-focus-ring-color);
|
|
56
|
+
outline-offset: calc(-1 * var(--void-focus-ring-width));
|
|
38
57
|
}
|
|
39
58
|
|
|
40
|
-
void-collapsible[open]
|
|
59
|
+
void-collapsible[open] > void-collapsible-trigger::after {
|
|
41
60
|
transform: rotate(180deg);
|
|
42
61
|
}
|
|
43
62
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
grid-template-rows: 0fr;
|
|
47
|
-
transition: grid-template-rows var(--void-duration-normal) var(--void-ease-in-out);
|
|
63
|
+
void-collapsible-trigger {
|
|
64
|
+
grid-row: 1;
|
|
48
65
|
}
|
|
49
66
|
|
|
50
|
-
.
|
|
67
|
+
/* The content is the second row. Closed, its box is empty (no block padding,
|
|
68
|
+
which would keep the row open) and it is visibility:hidden, so it is out of
|
|
69
|
+
the accessibility tree, the tab order and find-in-page, all from the host's
|
|
70
|
+
own attribute and before any script loads. The visibility change waits for
|
|
71
|
+
the closing animation to finish and happens at once on opening. The
|
|
72
|
+
collapsible then also marks closed content hidden="until-found" (see
|
|
73
|
+
collapsible.ts), which keeps it hidden from assistive technology and lets
|
|
74
|
+
find-in-page open it where the browser supports that. */
|
|
75
|
+
void-collapsible-content {
|
|
76
|
+
grid-row: 2;
|
|
77
|
+
display: block;
|
|
78
|
+
min-height: 0;
|
|
51
79
|
overflow: hidden;
|
|
80
|
+
padding: 0 var(--void-space-4);
|
|
81
|
+
visibility: hidden;
|
|
82
|
+
color: var(--void-color-text);
|
|
83
|
+
font-family: var(--void-font-sans);
|
|
84
|
+
font-size: var(--void-type-body-size);
|
|
52
85
|
}
|
|
53
86
|
|
|
54
|
-
void-collapsible[open]
|
|
55
|
-
|
|
87
|
+
void-collapsible[open] > void-collapsible-content {
|
|
88
|
+
padding-block: var(--void-space-3) var(--void-space-4);
|
|
89
|
+
visibility: visible;
|
|
56
90
|
}
|
|
57
91
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
92
|
+
/* hidden="until-found" hides through content-visibility; find-in-page only
|
|
93
|
+
searches it when it is not also visibility:hidden. */
|
|
94
|
+
void-collapsible-content[hidden="until-found"] {
|
|
95
|
+
visibility: visible;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* Only once the element is defined: a page whose stylesheet arrives after the
|
|
99
|
+
first paint must not animate its open items into place. The visibility
|
|
100
|
+
change waits for the closing animation and happens at once on opening. */
|
|
101
|
+
void-collapsible:defined {
|
|
102
|
+
transition: grid-template-rows var(--void-duration-normal) var(--void-ease-in-out);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
void-collapsible:defined > void-collapsible-content {
|
|
106
|
+
transition: padding-block var(--void-duration-normal) var(--void-ease-in-out),
|
|
107
|
+
visibility 0s linear var(--void-duration-normal);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
void-collapsible[open]:defined > void-collapsible-content {
|
|
111
|
+
transition: padding-block var(--void-duration-normal) var(--void-ease-in-out),
|
|
112
|
+
visibility 0s linear 0s;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* The until-found mark is put on once the content has closed; taking the delay
|
|
116
|
+
off here keeps visibility from lagging behind an opening that follows it. */
|
|
117
|
+
void-collapsible:defined > void-collapsible-content[hidden="until-found"] {
|
|
118
|
+
transition: padding-block var(--void-duration-normal) var(--void-ease-in-out),
|
|
119
|
+
visibility 0s linear 0s;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@media (prefers-reduced-motion: reduce) {
|
|
123
|
+
void-collapsible:defined,
|
|
124
|
+
void-collapsible:defined > void-collapsible-content,
|
|
125
|
+
void-collapsible:defined > void-collapsible-content[hidden="until-found"],
|
|
126
|
+
void-collapsible[open]:defined > void-collapsible-content {
|
|
127
|
+
transition: none;
|
|
128
|
+
}
|
|
63
129
|
}
|
|
64
130
|
|
|
65
131
|
/* Disabled state */
|
|
@@ -67,7 +133,7 @@ void-collapsible[disabled] {
|
|
|
67
133
|
opacity: 0.5;
|
|
68
134
|
}
|
|
69
135
|
|
|
70
|
-
void-collapsible[disabled]
|
|
136
|
+
void-collapsible[disabled] > void-collapsible-trigger {
|
|
71
137
|
pointer-events: none;
|
|
72
138
|
cursor: default;
|
|
73
139
|
}
|
|
@@ -86,15 +86,15 @@ void-color-picker {
|
|
|
86
86
|
align-items: center;
|
|
87
87
|
gap: var(--void-space-2);
|
|
88
88
|
padding: var(--void-space-2);
|
|
89
|
-
background: var(--void-color-
|
|
90
|
-
border: 1px solid var(--void-color-border);
|
|
89
|
+
background: var(--void-color-surface);
|
|
90
|
+
border: 1px solid var(--void-color-border-control);
|
|
91
91
|
border-radius: var(--void-radius-md);
|
|
92
92
|
transition: border-color var(--void-duration-fast) var(--void-ease-in-out),
|
|
93
93
|
box-shadow var(--void-duration-fast) var(--void-ease-in-out);
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
.void-color-picker-field:hover {
|
|
97
|
-
border-color: var(--void-color-border-
|
|
97
|
+
border-color: var(--void-color-border-control);
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
.void-color-picker-field:focus-within {
|
|
@@ -186,15 +186,15 @@ void-color-picker {
|
|
|
186
186
|
align-items: center;
|
|
187
187
|
gap: var(--void-space-2);
|
|
188
188
|
padding: var(--void-space-2) var(--void-space-3);
|
|
189
|
-
background: var(--void-color-
|
|
190
|
-
border: 1px solid var(--void-color-border);
|
|
189
|
+
background: var(--void-color-surface);
|
|
190
|
+
border: 1px solid var(--void-color-border-control);
|
|
191
191
|
border-radius: var(--void-radius-md);
|
|
192
192
|
cursor: pointer;
|
|
193
193
|
transition: border-color var(--void-duration-fast) var(--void-ease-in-out);
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
.void-color-picker-compact-trigger:hover {
|
|
197
|
-
border-color: var(--void-color-border-
|
|
197
|
+
border-color: var(--void-color-border-control);
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
.void-color-picker-compact-trigger:focus-within {
|
|
@@ -237,11 +237,11 @@ void-color-picker {
|
|
|
237
237
|
top: calc(100% + var(--void-space-2));
|
|
238
238
|
left: 0;
|
|
239
239
|
z-index: var(--void-z-dropdown);
|
|
240
|
-
background: var(--void-
|
|
241
|
-
border:
|
|
242
|
-
border-radius: var(--void-radius
|
|
240
|
+
background: var(--void-float-surface);
|
|
241
|
+
border: var(--void-float-border-width) solid var(--void-float-border);
|
|
242
|
+
border-radius: var(--void-float-radius);
|
|
243
243
|
padding: var(--void-space-3);
|
|
244
|
-
box-shadow: var(--void-shadow-lg
|
|
244
|
+
box-shadow: var(--void-shadow-lg);
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
/* ── Size variants ── */
|
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
void-combobox {
|
|
2
|
+
--_void-field-height: var(--void-control-height);
|
|
3
|
+
--_void-field-padding: var(--void-control-padding);
|
|
4
|
+
--_void-field-text: var(--void-control-text);
|
|
2
5
|
display: flex;
|
|
3
6
|
flex-direction: column;
|
|
4
|
-
gap: var(--void-space-
|
|
7
|
+
gap: var(--void-space-1h);
|
|
5
8
|
font-family: var(--void-font-sans);
|
|
6
9
|
position: relative;
|
|
7
10
|
}
|
|
8
11
|
|
|
9
12
|
.void-combobox-input {
|
|
10
13
|
width: 100%;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
border
|
|
14
|
+
height: var(--_void-field-height);
|
|
15
|
+
padding: 0 var(--_void-field-padding);
|
|
16
|
+
background: var(--void-field-surface);
|
|
17
|
+
border: var(--void-control-border-width) solid var(--void-field-border);
|
|
18
|
+
border-radius: var(--void-control-radius);
|
|
15
19
|
color: var(--void-color-text);
|
|
16
20
|
font-family: inherit;
|
|
17
|
-
font-size: var(--
|
|
21
|
+
font-size: var(--_void-field-text);
|
|
18
22
|
line-height: var(--void-leading-normal);
|
|
19
23
|
outline: none;
|
|
20
24
|
transition: border-color var(--void-duration-fast) var(--void-ease-in-out),
|
|
@@ -22,13 +26,13 @@ void-combobox {
|
|
|
22
26
|
}
|
|
23
27
|
|
|
24
28
|
.void-combobox-input::placeholder { color: var(--void-color-text-muted); }
|
|
25
|
-
.void-combobox-input:hover { border-color: var(--void-
|
|
29
|
+
.void-combobox-input:hover { border-color: var(--void-field-border); }
|
|
26
30
|
.void-combobox-input:focus {
|
|
27
31
|
border-color: var(--void-color-border-focus);
|
|
28
32
|
box-shadow: 0 0 0 1px var(--void-color-border-focus);
|
|
29
33
|
}
|
|
30
34
|
|
|
31
|
-
void-combobox[
|
|
35
|
+
void-combobox[open] .void-combobox-input {
|
|
32
36
|
border-color: var(--void-color-border-focus);
|
|
33
37
|
box-shadow: 0 0 0 1px var(--void-color-border-focus);
|
|
34
38
|
}
|
|
@@ -42,42 +46,57 @@ void-combobox[error]:not([error='']) .void-combobox-input:focus {
|
|
|
42
46
|
|
|
43
47
|
.void-combobox-error {
|
|
44
48
|
color: var(--void-color-error);
|
|
45
|
-
font-size: var(--void-
|
|
49
|
+
font-size: var(--void-type-caption-size);
|
|
50
|
+
line-height: var(--void-type-caption-leading);
|
|
46
51
|
}
|
|
47
52
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
/* The content part: a popover="manual" surface in the top layer, at least as
|
|
54
|
+
wide as the field; placement, flipping and transitions are shared
|
|
55
|
+
(overlay.css). */
|
|
56
|
+
void-combobox-content {
|
|
57
|
+
--void-overlay-gap: var(--void-space-1);
|
|
58
|
+
min-width: var(--void-overlay-anchor-width);
|
|
59
|
+
color: var(--void-color-text);
|
|
60
|
+
background: var(--void-float-surface);
|
|
61
|
+
border: var(--void-float-border-width) solid var(--void-float-border);
|
|
62
|
+
border-radius: var(--void-float-radius);
|
|
63
|
+
box-shadow: var(--void-float-shadow);
|
|
57
64
|
max-height: 16rem;
|
|
58
65
|
overflow-y: auto;
|
|
59
|
-
z-index: var(--void-z-dropdown);
|
|
60
66
|
padding: var(--void-space-1) 0;
|
|
61
67
|
}
|
|
62
68
|
|
|
63
|
-
|
|
69
|
+
/* Each option is the author's void-option, wired as role="option": `active`
|
|
70
|
+
marks the highlighted one (aria-activedescendant), aria-selected the chosen
|
|
71
|
+
one. The typed text filters options out with `hidden`. */
|
|
72
|
+
void-combobox-content > void-option {
|
|
73
|
+
/* Flex, so rich content (an avatar, then the name) lines up. */
|
|
74
|
+
display: flex;
|
|
75
|
+
align-items: center;
|
|
76
|
+
gap: var(--void-space-2);
|
|
64
77
|
padding: var(--void-space-2) var(--void-space-3);
|
|
65
78
|
cursor: pointer;
|
|
66
79
|
color: var(--void-color-text);
|
|
67
|
-
font-size: var(--
|
|
80
|
+
font-size: var(--_void-field-text);
|
|
68
81
|
user-select: none;
|
|
69
82
|
transition: background var(--void-duration-fast) var(--void-ease-in-out);
|
|
70
83
|
}
|
|
71
|
-
|
|
72
|
-
|
|
84
|
+
void-combobox-content > void-option[hidden] { display: none; }
|
|
85
|
+
void-combobox-content > void-option:hover { background: var(--void-color-bg-hover); }
|
|
86
|
+
void-combobox-content > void-option[aria-selected='true'] { font-weight: var(--void-weight-medium); }
|
|
87
|
+
void-combobox-content > void-option[active] {
|
|
73
88
|
background: var(--void-color-accent);
|
|
74
89
|
color: var(--void-color-text-on-accent);
|
|
75
90
|
}
|
|
91
|
+
void-combobox-content > void-option[disabled] { opacity: 0.5; cursor: default; }
|
|
76
92
|
|
|
77
|
-
.
|
|
93
|
+
/* Nothing matches what was typed. */
|
|
94
|
+
void-combobox-content[empty]::after {
|
|
95
|
+
content: 'No options found';
|
|
96
|
+
display: block;
|
|
78
97
|
padding: var(--void-space-2) var(--void-space-3);
|
|
79
98
|
color: var(--void-color-text-muted);
|
|
80
|
-
font-size: var(--
|
|
99
|
+
font-size: var(--_void-field-text);
|
|
81
100
|
}
|
|
82
101
|
|
|
83
102
|
void-combobox[disabled] {
|
|
@@ -86,7 +105,6 @@ void-combobox[disabled] {
|
|
|
86
105
|
}
|
|
87
106
|
void-combobox[disabled] .void-combobox-input { cursor: not-allowed; }
|
|
88
107
|
|
|
89
|
-
|
|
90
|
-
void-combobox[size='
|
|
91
|
-
void-combobox[size='
|
|
92
|
-
void-combobox[size='xxl'] .void-combobox-input { padding: var(--void-space-5) var(--void-space-6); font-size: var(--void-text-xl); }
|
|
108
|
+
/* Size variants: each step sets the field tokens and nothing else */
|
|
109
|
+
void-combobox[size='sm'] { --_void-field-height: var(--void-control-height-sm); --_void-field-padding: var(--void-control-padding-sm); --_void-field-text: var(--void-control-text-sm); }
|
|
110
|
+
void-combobox[size='lg'] { --_void-field-height: var(--void-control-height-lg); --_void-field-padding: var(--void-control-padding-lg); --_void-field-text: var(--void-control-text-lg); }
|
|
@@ -8,8 +8,8 @@ void-compose-input {
|
|
|
8
8
|
align-items: flex-end;
|
|
9
9
|
gap: var(--void-space-2);
|
|
10
10
|
padding: var(--void-space-2);
|
|
11
|
-
background: var(--void-
|
|
12
|
-
border:
|
|
11
|
+
background: var(--void-field-surface);
|
|
12
|
+
border: var(--void-control-border-width) solid var(--void-field-border);
|
|
13
13
|
border-radius: var(--void-radius-lg);
|
|
14
14
|
transition: border-color var(--void-duration-fast) var(--void-ease-in-out);
|
|
15
15
|
}
|
|
@@ -45,7 +45,7 @@ void-compose-input {
|
|
|
45
45
|
width: 2rem;
|
|
46
46
|
height: 2rem;
|
|
47
47
|
border: none;
|
|
48
|
-
border-radius: var(--void-radius
|
|
48
|
+
border-radius: var(--void-control-radius);
|
|
49
49
|
background: var(--void-color-accent);
|
|
50
50
|
color: var(--void-color-text-on-accent);
|
|
51
51
|
cursor: pointer;
|
|
@@ -1,53 +1,129 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/* The host only carries attributes. Its parts (title, description, body,
|
|
2
|
+
actions) are its own children, shown inside a native <dialog> that lives in
|
|
3
|
+
the host's shadow root (::part(surface)), with the close button
|
|
4
|
+
(::part(close)). Before the element upgrades there is no <dialog>, so the
|
|
5
|
+
parts must not show inline (pre-upgrade.css). */
|
|
6
|
+
/* @tokens void-dialog
|
|
7
|
+
--void-dialog-radius Corner radius of the panel (::part(surface)).
|
|
8
|
+
--void-dialog-shadow Shadow of the panel (::part(surface)). */
|
|
4
9
|
|
|
5
|
-
void-dialog
|
|
10
|
+
void-dialog {
|
|
6
11
|
display: contents;
|
|
12
|
+
/* The title row is one step above the large control (56px by default,
|
|
13
|
+
52px under a denser skin), whatever the title's own leading, so a
|
|
14
|
+
dialog, a drawer and their close buttons line up with each other. */
|
|
15
|
+
--_void-dialog-row: calc(var(--void-control-height-lg) + var(--void-space-3));
|
|
16
|
+
--_void-dialog-title-inset: calc((var(--_void-dialog-row) - var(--void-type-heading-size) * var(--void-type-heading-leading)) / 2);
|
|
7
17
|
}
|
|
8
18
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
.void-dialog-panel {
|
|
20
|
-
background: var(--void-color-bg-elevated);
|
|
21
|
-
border: 1px solid var(--void-color-border);
|
|
22
|
-
border-radius: var(--void-radius-lg);
|
|
23
|
-
box-shadow: var(--void-shadow-lg);
|
|
19
|
+
/* Modal panel in the top layer (showModal); ::backdrop and transitions in overlay.css. */
|
|
20
|
+
void-dialog::part(surface) {
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
margin: auto;
|
|
23
|
+
padding: 0;
|
|
24
|
+
background: var(--void-float-surface);
|
|
25
|
+
color: var(--void-color-text);
|
|
26
|
+
border: var(--void-float-border-width) solid var(--void-float-border);
|
|
27
|
+
border-radius: var(--void-dialog-radius, var(--void-radius-xl));
|
|
28
|
+
box-shadow: var(--void-dialog-shadow, var(--void-shadow-lg));
|
|
24
29
|
max-height: 85vh;
|
|
30
|
+
max-height: 85dvh;
|
|
25
31
|
overflow-y: auto;
|
|
26
|
-
width: 100
|
|
32
|
+
width: calc(100% - 2 * var(--void-space-4));
|
|
27
33
|
max-width: 32rem;
|
|
34
|
+
opacity: 0;
|
|
35
|
+
scale: 0.97;
|
|
28
36
|
}
|
|
29
37
|
|
|
30
|
-
void-dialog[
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
38
|
+
void-dialog[open]::part(surface) {
|
|
39
|
+
opacity: 1;
|
|
40
|
+
scale: 1;
|
|
41
|
+
}
|
|
34
42
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
43
|
+
@starting-style {
|
|
44
|
+
void-dialog[open]::part(surface) {
|
|
45
|
+
opacity: 0;
|
|
46
|
+
scale: 0.97;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
void-dialog[size="sm"]::part(surface) { max-width: 24rem; }
|
|
51
|
+
void-dialog[size="md"]::part(surface) { max-width: 32rem; }
|
|
52
|
+
void-dialog[size="lg"]::part(surface) { max-width: 48rem; }
|
|
53
|
+
|
|
54
|
+
/* The title row: the close button sits at its far end. */
|
|
55
|
+
void-dialog-title {
|
|
56
|
+
display: block;
|
|
57
|
+
margin: 0;
|
|
58
|
+
/* Room for the close button, which is laid over the end of the row. */
|
|
59
|
+
padding: var(--_void-dialog-title-inset) calc(var(--void-container-padding) + 1.5rem + var(--void-space-2)) var(--_void-dialog-title-inset) var(--void-container-padding);
|
|
60
|
+
border-bottom: var(--void-rule-head);
|
|
61
|
+
font-family: var(--void-type-heading-family);
|
|
62
|
+
font-size: var(--void-type-heading-size);
|
|
63
|
+
line-height: var(--void-type-heading-leading);
|
|
64
|
+
font-weight: var(--void-type-heading-weight);
|
|
65
|
+
letter-spacing: var(--void-type-heading-tracking);
|
|
66
|
+
color: var(--void-type-heading-color);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
void-dialog[hide-close] void-dialog-title {
|
|
70
|
+
padding-inline-end: var(--void-container-padding);
|
|
41
71
|
}
|
|
42
72
|
|
|
43
|
-
.
|
|
73
|
+
/* A description joins the title's row: the hairline moves below it. */
|
|
74
|
+
void-dialog-title:has(+ void-dialog-description) {
|
|
75
|
+
padding-bottom: var(--void-space-1);
|
|
76
|
+
border-bottom: none;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
void-dialog-description {
|
|
80
|
+
display: block;
|
|
81
|
+
padding: 0 var(--void-container-padding) var(--void-space-4);
|
|
82
|
+
border-bottom: var(--void-rule-head);
|
|
44
83
|
font-family: var(--void-font-sans);
|
|
45
|
-
font-size: var(--void-
|
|
46
|
-
|
|
84
|
+
font-size: var(--void-type-body-size);
|
|
85
|
+
color: var(--void-color-text-secondary);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
void-dialog-body {
|
|
89
|
+
display: block;
|
|
90
|
+
padding: var(--void-container-padding);
|
|
91
|
+
font-family: var(--void-font-sans);
|
|
92
|
+
font-size: var(--void-type-body-size);
|
|
47
93
|
color: var(--void-color-text);
|
|
48
94
|
}
|
|
49
95
|
|
|
50
|
-
|
|
96
|
+
|
|
97
|
+
/* Blocks written straight into the body (a paragraph, then a field) sit a
|
|
98
|
+
step apart. The scoped reset removes every margin, so without this a label
|
|
99
|
+
sat directly under the sentence above it. Only block-level content is
|
|
100
|
+
named: text with inline markup, and a row of buttons, are left alone. For
|
|
101
|
+
another rhythm, wrap the content in void-stack. */
|
|
102
|
+
void-dialog-body > :where(p, ul, ol, dl, pre, blockquote, form, fieldset, table, figure, div, section, h2, h3, h4, h5, h6, void-field, void-stack, void-alert, void-banner, void-rows, void-description-list, void-checkbox-group, void-radio-group, void-table, void-card, void-panel, void-list, void-divider, void-figures, void-split, void-input, void-textarea, void-select, void-combobox, void-progress) + :where(p, ul, ol, dl, pre, blockquote, form, fieldset, table, figure, div, section, h2, h3, h4, h5, h6, void-field, void-stack, void-alert, void-banner, void-rows, void-description-list, void-checkbox-group, void-radio-group, void-table, void-card, void-panel, void-list, void-divider, void-figures, void-split, void-input, void-textarea, void-select, void-combobox, void-progress) {
|
|
103
|
+
margin-block-start: var(--void-gap-inside);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* The actions close the dialog: they stand clear of the last line or field
|
|
107
|
+
of the body (the body's own padding plus a step), and keep the container
|
|
108
|
+
padding below and beside them. */
|
|
109
|
+
void-dialog-actions {
|
|
110
|
+
display: flex;
|
|
111
|
+
flex-wrap: wrap;
|
|
112
|
+
justify-content: flex-end;
|
|
113
|
+
gap: var(--void-space-2);
|
|
114
|
+
padding: var(--void-space-3) var(--void-container-padding) var(--void-container-padding);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* Actions straight after the title: they need their own top space. */
|
|
118
|
+
:is(void-dialog-title, void-dialog-description) + void-dialog-actions {
|
|
119
|
+
padding-top: var(--void-container-padding);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
void-dialog::part(close) {
|
|
123
|
+
position: absolute;
|
|
124
|
+
/* Centred in the title row. */
|
|
125
|
+
top: calc((var(--_void-dialog-row) - 1.5rem) / 2);
|
|
126
|
+
inset-inline-end: var(--void-container-padding);
|
|
51
127
|
display: inline-flex;
|
|
52
128
|
align-items: center;
|
|
53
129
|
justify-content: center;
|
|
@@ -62,16 +138,14 @@ void-dialog[size="xl"] .void-dialog-panel { max-width: 64rem; }
|
|
|
62
138
|
cursor: pointer;
|
|
63
139
|
opacity: 0.6;
|
|
64
140
|
transition: opacity var(--void-duration-fast) var(--void-ease-in-out);
|
|
65
|
-
flex-shrink: 0;
|
|
66
141
|
}
|
|
67
142
|
|
|
68
|
-
|
|
143
|
+
void-dialog::part(close):hover {
|
|
69
144
|
opacity: 1;
|
|
70
145
|
}
|
|
71
146
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
color: var(--void-color-text);
|
|
147
|
+
void-dialog::part(close):focus-visible {
|
|
148
|
+
opacity: 1;
|
|
149
|
+
outline: var(--void-focus-ring-width) solid var(--void-focus-ring-color);
|
|
150
|
+
outline-offset: var(--void-focus-ring-offset);
|
|
77
151
|
}
|
|
@@ -2,10 +2,13 @@ void-divider {
|
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
gap: var(--void-space-3);
|
|
5
|
-
|
|
6
|
-
font-
|
|
7
|
-
|
|
8
|
-
font-weight: var(--void-weight
|
|
5
|
+
font-family: var(--void-type-label-family);
|
|
6
|
+
font-size: var(--void-type-label-size);
|
|
7
|
+
line-height: var(--void-type-label-leading);
|
|
8
|
+
font-weight: var(--void-type-label-weight);
|
|
9
|
+
letter-spacing: var(--void-type-label-tracking);
|
|
10
|
+
text-transform: var(--void-type-label-case);
|
|
11
|
+
color: var(--void-type-label-color);
|
|
9
12
|
}
|
|
10
13
|
|
|
11
14
|
/* Horizontal line via pseudo-elements */
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
/* ============================================================
|
|
2
2
|
void-donut-chart — light DOM SVG, theme-driven
|
|
3
3
|
============================================================ */
|
|
4
|
+
/* @tokens void-donut-chart
|
|
5
|
+
--void-donut-chart-size Setting: the largest width (and height) of the chart. It fills its container up to this and shrinks with it below. */
|
|
4
6
|
|
|
7
|
+
/* A square that fills its container up to a ceiling. Without the ceiling
|
|
8
|
+
the SVG (width: 100%) grew to the full width of whatever held it, so a
|
|
9
|
+
donut beside a bar chart was several times its height. */
|
|
5
10
|
void-donut-chart {
|
|
6
|
-
display:
|
|
11
|
+
display: block;
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
inline-size: 100%;
|
|
14
|
+
max-inline-size: var(--void-donut-chart-size, 13.75rem);
|
|
15
|
+
aspect-ratio: 1;
|
|
7
16
|
font-family: var(--void-font-mono);
|
|
8
17
|
color: var(--void-color-text);
|
|
9
18
|
}
|
|
@@ -22,28 +31,29 @@ void-donut-chart svg {
|
|
|
22
31
|
void-donut-chart .void-donut-chart-segment {
|
|
23
32
|
fill: var(--segment-color, var(--void-color-accent));
|
|
24
33
|
stroke: var(--segment-color, var(--void-color-accent));
|
|
25
|
-
stroke-width:
|
|
34
|
+
stroke-width: var(--void-chart-stroke-none);
|
|
26
35
|
}
|
|
27
36
|
|
|
28
37
|
/* 'outline' variant — tinted fill + stroke */
|
|
29
38
|
void-donut-chart[variant="outline"] .void-donut-chart-segment {
|
|
30
39
|
fill: color-mix(in srgb, var(--segment-color, var(--void-color-accent)) 18%, transparent);
|
|
31
|
-
stroke-width:
|
|
40
|
+
stroke-width: var(--void-chart-stroke-thin);
|
|
32
41
|
}
|
|
33
42
|
|
|
34
43
|
/* 'wireframe' variant — stroke only */
|
|
35
44
|
void-donut-chart[variant="wireframe"] .void-donut-chart-segment {
|
|
36
45
|
fill: none;
|
|
37
|
-
stroke-width:
|
|
46
|
+
stroke-width: var(--void-chart-stroke-thin);
|
|
38
47
|
}
|
|
39
48
|
|
|
40
49
|
/* Center total (when show-total) */
|
|
41
50
|
void-donut-chart .void-donut-chart-total text {
|
|
42
|
-
font-family: var(--void-
|
|
51
|
+
font-family: var(--void-type-value-family);
|
|
43
52
|
font-size: var(--void-text-xl);
|
|
44
|
-
font-weight: var(--void-weight
|
|
45
|
-
|
|
46
|
-
|
|
53
|
+
font-weight: var(--void-type-value-weight);
|
|
54
|
+
font-variant-numeric: var(--void-type-value-numeric);
|
|
55
|
+
fill: var(--void-type-value-color);
|
|
56
|
+
letter-spacing: var(--void-type-value-tracking);
|
|
47
57
|
}
|
|
48
58
|
|
|
49
59
|
/* Per-segment labels (when show-values).
|
|
@@ -59,7 +69,7 @@ void-donut-chart .void-donut-chart-labels text {
|
|
|
59
69
|
letter-spacing: var(--void-tracking-wide);
|
|
60
70
|
paint-order: stroke;
|
|
61
71
|
stroke: var(--void-color-bg);
|
|
62
|
-
stroke-width:
|
|
72
|
+
stroke-width: var(--void-chart-stroke-thick);
|
|
63
73
|
stroke-linejoin: round;
|
|
64
74
|
stroke-linecap: round;
|
|
65
75
|
pointer-events: none;
|
|
@@ -70,16 +80,16 @@ void-donut-chart .void-donut-chart-labels text {
|
|
|
70
80
|
void-donut-chart .void-donut-chart-tooltip-bg {
|
|
71
81
|
fill: var(--void-color-bg-elevated);
|
|
72
82
|
stroke: var(--void-color-border);
|
|
73
|
-
stroke-width:
|
|
83
|
+
stroke-width: var(--void-chart-stroke-hairline);
|
|
74
84
|
}
|
|
75
85
|
|
|
76
86
|
void-donut-chart .void-donut-chart-tooltip-name {
|
|
77
|
-
font-family: var(--void-
|
|
78
|
-
font-size: var(--void-
|
|
79
|
-
font-weight: var(--void-weight
|
|
87
|
+
font-family: var(--void-type-label-family);
|
|
88
|
+
font-size: var(--void-type-label-size);
|
|
89
|
+
font-weight: var(--void-type-label-weight);
|
|
80
90
|
fill: var(--void-color-text);
|
|
81
|
-
text-transform:
|
|
82
|
-
letter-spacing: var(--void-tracking
|
|
91
|
+
text-transform: var(--void-type-label-case);
|
|
92
|
+
letter-spacing: var(--void-type-label-tracking);
|
|
83
93
|
}
|
|
84
94
|
|
|
85
95
|
void-donut-chart .void-donut-chart-tooltip-value {
|