@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
package/src/components/badge.css
CHANGED
|
@@ -2,44 +2,54 @@
|
|
|
2
2
|
void-badge — Tone system component
|
|
3
3
|
============================================================ */
|
|
4
4
|
|
|
5
|
+
/* @tokens void-badge
|
|
6
|
+
--void-badge-height Least height and width. Applies at every size.
|
|
7
|
+
--void-badge-padding Inline padding.
|
|
8
|
+
--void-badge-font-size Size of the text.
|
|
9
|
+
--void-badge-radius Corner radius: a pill by default, whatever the radius knob says.
|
|
10
|
+
--void-badge-border Edge colour of an outline badge, in place of a tint of its tone. */
|
|
11
|
+
|
|
5
12
|
void-badge {
|
|
6
|
-
--tone: var(--void-color-accent);
|
|
13
|
+
--_void-tone: var(--void-color-accent);
|
|
14
|
+
--_void-badge-height: var(--void-badge-height, 1.375rem);
|
|
15
|
+
--_void-badge-padding: var(--void-badge-padding, var(--void-space-2));
|
|
16
|
+
--_void-badge-font-size: var(--void-badge-font-size, var(--void-text-xs));
|
|
7
17
|
|
|
8
18
|
display: inline-grid;
|
|
9
19
|
place-content: center;
|
|
10
|
-
padding: 0
|
|
11
|
-
min-width:
|
|
12
|
-
min-height:
|
|
13
|
-
border:
|
|
14
|
-
border-radius: var(--void-radius-full);
|
|
15
|
-
background: var(--tone);
|
|
20
|
+
padding: 0 var(--_void-badge-padding);
|
|
21
|
+
min-width: var(--_void-badge-height);
|
|
22
|
+
min-height: var(--_void-badge-height);
|
|
23
|
+
border: var(--void-control-border-width) solid transparent;
|
|
24
|
+
border-radius: var(--void-badge-radius, var(--void-radius-full));
|
|
25
|
+
background: var(--_void-tone);
|
|
16
26
|
color: var(--void-color-text-on-accent);
|
|
17
27
|
font-family: var(--void-font-sans);
|
|
18
|
-
font-size: var(--
|
|
19
|
-
font-weight: var(--void-weight-
|
|
20
|
-
|
|
28
|
+
font-size: var(--_void-badge-font-size);
|
|
29
|
+
font-weight: var(--void-weight-medium);
|
|
30
|
+
font-variant-numeric: tabular-nums;
|
|
31
|
+
line-height: var(--void-leading-none);
|
|
21
32
|
white-space: nowrap;
|
|
22
33
|
text-align: center;
|
|
23
34
|
}
|
|
24
35
|
|
|
25
36
|
/* Colors */
|
|
26
|
-
void-badge[color="error"] { --tone: var(--void-color-error); }
|
|
27
|
-
void-badge[color="warning"] { --tone: var(--void-color-warning); }
|
|
28
|
-
void-badge[color="caution"] { --tone: var(--void-color-caution); }
|
|
29
|
-
void-badge[color="success"] { --tone: var(--void-color-success); }
|
|
30
|
-
void-badge[color="info"] { --tone: var(--void-color-info); }
|
|
31
|
-
void-badge[color="notice"] { --tone: var(--void-color-notice); }
|
|
32
|
-
void-badge[color="highlight"] { --tone: var(--void-color-highlight); }
|
|
37
|
+
void-badge[color="error"] { --_void-tone: var(--void-color-error); }
|
|
38
|
+
void-badge[color="warning"] { --_void-tone: var(--void-color-warning); }
|
|
39
|
+
void-badge[color="caution"] { --_void-tone: var(--void-color-caution); }
|
|
40
|
+
void-badge[color="success"] { --_void-tone: var(--void-color-success); }
|
|
41
|
+
void-badge[color="info"] { --_void-tone: var(--void-color-info); }
|
|
42
|
+
void-badge[color="notice"] { --_void-tone: var(--void-color-notice); }
|
|
43
|
+
void-badge[color="highlight"] { --_void-tone: var(--void-color-highlight); }
|
|
33
44
|
|
|
34
|
-
/* Variants
|
|
45
|
+
/* Variants — outline is the status chip: a tint of the tone, the tone
|
|
46
|
+
as text, and a faint edge. */
|
|
35
47
|
void-badge[variant="outline"] {
|
|
36
|
-
background: color-mix(in srgb, var(--tone)
|
|
37
|
-
border:
|
|
38
|
-
color: var(--tone);
|
|
48
|
+
background: color-mix(in srgb, var(--_void-tone) var(--void-tone-tint), var(--void-color-control-fill));
|
|
49
|
+
border: var(--void-control-border-width) solid var(--void-badge-border, color-mix(in srgb, var(--_void-tone) 24%, transparent));
|
|
50
|
+
color: var(--_void-tone);
|
|
39
51
|
}
|
|
40
52
|
|
|
41
53
|
/* Sizes */
|
|
42
|
-
void-badge[size="sm"]
|
|
43
|
-
void-badge[size="lg"]
|
|
44
|
-
void-badge[size="xl"] { min-width: 2.25rem; min-height: 2.25rem; font-size: var(--void-text-base); padding: 0.375rem var(--void-space-4) 0.25rem; }
|
|
45
|
-
void-badge[size="xxl"] { min-width: 3rem; min-height: 3rem; font-size: var(--void-text-lg); padding: 0.4375rem var(--void-space-5) 0.3125rem; }
|
|
54
|
+
void-badge[size="sm"] { --_void-badge-height: var(--void-badge-height, 1.125rem); --_void-badge-padding: var(--void-badge-padding, var(--void-space-1h)); --_void-badge-font-size: var(--void-badge-font-size, var(--void-type-label-size)); }
|
|
55
|
+
void-badge[size="lg"] { --_void-badge-height: var(--void-badge-height, 1.75rem); --_void-badge-padding: var(--void-badge-padding, var(--void-space-3)); --_void-badge-font-size: var(--void-badge-font-size, var(--void-text-sm)); }
|
|
@@ -1,37 +1,65 @@
|
|
|
1
1
|
void-banner {
|
|
2
|
-
--tone: var(--void-color-accent);
|
|
3
|
-
--tone-subtle: color-mix(in srgb, var(--tone)
|
|
4
|
-
--tone-border: color-mix(in srgb, var(--tone) 36%, transparent);
|
|
2
|
+
--_void-tone: var(--void-color-accent);
|
|
3
|
+
--_void-tone-subtle: color-mix(in srgb, var(--_void-tone) var(--void-tone-tint), transparent);
|
|
4
|
+
--_void-tone-border: color-mix(in srgb, var(--_void-tone) 36%, transparent);
|
|
5
5
|
|
|
6
6
|
display: flex;
|
|
7
7
|
align-items: center;
|
|
8
8
|
gap: var(--void-space-3);
|
|
9
|
-
padding: var(--void-space-3) var(--void-
|
|
10
|
-
border:
|
|
9
|
+
padding: var(--void-space-3) var(--void-container-padding);
|
|
10
|
+
border: var(--void-container-border-width) solid var(--_void-tone-border);
|
|
11
11
|
border-radius: var(--void-radius-md);
|
|
12
|
-
background: var(--tone-subtle);
|
|
12
|
+
background: var(--_void-tone-subtle);
|
|
13
13
|
color: var(--void-color-text);
|
|
14
14
|
font-family: var(--void-font-sans);
|
|
15
|
-
font-size: var(--void-
|
|
15
|
+
font-size: var(--void-type-body-size);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
void-banner[variant="filled"] {
|
|
19
|
-
background: var(--tone);
|
|
20
|
-
border-color: var(--tone);
|
|
19
|
+
background: var(--_void-tone);
|
|
20
|
+
border-color: var(--_void-tone);
|
|
21
21
|
color: var(--void-color-text-on-accent);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
void-banner[color="error"] { --tone: var(--void-color-error); }
|
|
25
|
-
void-banner[color="warning"] { --tone: var(--void-color-warning); }
|
|
26
|
-
void-banner[color="caution"] { --tone: var(--void-color-caution); }
|
|
27
|
-
void-banner[color="
|
|
28
|
-
void-banner[color="
|
|
29
|
-
void-banner[color="
|
|
24
|
+
void-banner[color="error"] { --_void-tone: var(--void-color-error); }
|
|
25
|
+
void-banner[color="warning"] { --_void-tone: var(--void-color-warning); }
|
|
26
|
+
void-banner[color="caution"] { --_void-tone: var(--void-color-caution); }
|
|
27
|
+
void-banner[color="highlight"] { --_void-tone: var(--void-color-highlight); }
|
|
28
|
+
void-banner[color="success"] { --_void-tone: var(--void-color-success); }
|
|
29
|
+
void-banner[color="info"] { --_void-tone: var(--void-color-info); }
|
|
30
|
+
void-banner[color="notice"] { --_void-tone: var(--void-color-notice); }
|
|
30
31
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
/* Parts (CSS-only): title, description, actions and the close control the
|
|
33
|
+
author wrote. The text takes the room, the buttons sit at the far end. */
|
|
34
|
+
void-banner-title {
|
|
34
35
|
flex-shrink: 0;
|
|
36
|
+
font-weight: var(--void-weight-medium);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
void-banner-description {
|
|
40
|
+
flex: 1 1 auto;
|
|
41
|
+
min-width: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
void-banner-actions {
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-shrink: 0;
|
|
47
|
+
align-items: center;
|
|
48
|
+
gap: var(--void-space-2);
|
|
49
|
+
margin-inline-start: auto;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
void-banner-close {
|
|
53
|
+
display: flex;
|
|
54
|
+
flex-shrink: 0;
|
|
55
|
+
margin-inline-start: auto;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
void-banner-actions + void-banner-close {
|
|
59
|
+
margin-inline-start: 0;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
void-banner-close > button {
|
|
35
63
|
display: inline-flex;
|
|
36
64
|
align-items: center;
|
|
37
65
|
justify-content: center;
|
|
@@ -48,6 +76,19 @@ void-banner[color="notice"] { --tone: var(--void-color-notice); }
|
|
|
48
76
|
transition: opacity var(--void-duration-fast) var(--void-ease-in-out);
|
|
49
77
|
}
|
|
50
78
|
|
|
51
|
-
|
|
79
|
+
void-banner-close > button:hover {
|
|
52
80
|
opacity: 1;
|
|
53
81
|
}
|
|
82
|
+
|
|
83
|
+
void-banner-close > button:focus-visible {
|
|
84
|
+
opacity: 1;
|
|
85
|
+
outline: var(--void-focus-ring-width) solid currentColor;
|
|
86
|
+
outline-offset: var(--void-focus-ring-offset);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* The attribute is reflected, so the plain banner carries color="default":
|
|
90
|
+
it is a quiet container, not an accent-tinted one. */
|
|
91
|
+
void-banner:not([variant="filled"]):is([color="default"], :not([color])) {
|
|
92
|
+
--_void-tone-subtle: var(--void-color-bg-secondary);
|
|
93
|
+
--_void-tone-border: var(--void-color-border);
|
|
94
|
+
}
|
|
@@ -19,7 +19,14 @@ void-bar-chart svg {
|
|
|
19
19
|
/* Gridlines */
|
|
20
20
|
void-bar-chart .void-bar-chart-grid line {
|
|
21
21
|
stroke: var(--void-chart-grid);
|
|
22
|
-
stroke-width:
|
|
22
|
+
stroke-width: var(--void-chart-stroke-hairline);
|
|
23
|
+
shape-rendering: crispEdges;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* The zero line when values go negative: bars grow up and down from it. */
|
|
27
|
+
void-bar-chart .void-bar-chart-baseline {
|
|
28
|
+
stroke: var(--void-color-text-muted);
|
|
29
|
+
stroke-width: var(--void-chart-stroke-hairline);
|
|
23
30
|
shape-rendering: crispEdges;
|
|
24
31
|
}
|
|
25
32
|
|
|
@@ -48,14 +55,14 @@ void-bar-chart .void-bar-chart-bar {
|
|
|
48
55
|
void-bar-chart[variant="outline"] .void-bar-chart-bar {
|
|
49
56
|
fill: color-mix(in srgb, var(--series-color, var(--void-color-accent)) 18%, transparent);
|
|
50
57
|
stroke: var(--series-color, var(--void-color-accent));
|
|
51
|
-
stroke-width:
|
|
58
|
+
stroke-width: var(--void-chart-stroke-thin);
|
|
52
59
|
}
|
|
53
60
|
|
|
54
61
|
/* 'wireframe' variant — stroke only, no fill */
|
|
55
62
|
void-bar-chart[variant="wireframe"] .void-bar-chart-bar {
|
|
56
63
|
fill: none;
|
|
57
64
|
stroke: var(--series-color, var(--void-color-accent));
|
|
58
|
-
stroke-width:
|
|
65
|
+
stroke-width: var(--void-chart-stroke-thin);
|
|
59
66
|
}
|
|
60
67
|
|
|
61
68
|
/* Value labels above bars */
|
|
@@ -3,39 +3,43 @@ void-breadcrumbs {
|
|
|
3
3
|
font-family: var(--void-font-sans);
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
/* A flex container, never `display: contents`: some engines drop list semantics from boxless lists. */
|
|
7
|
+
void-breadcrumbs-list {
|
|
7
8
|
display: flex;
|
|
8
9
|
flex-wrap: wrap;
|
|
9
10
|
align-items: center;
|
|
10
|
-
|
|
11
|
-
padding: 0;
|
|
12
|
-
margin: 0;
|
|
13
|
-
gap: var(--void-space-1);
|
|
11
|
+
gap: var(--void-space-2);
|
|
14
12
|
}
|
|
15
13
|
|
|
16
|
-
|
|
14
|
+
void-breadcrumbs-item {
|
|
17
15
|
display: inline-flex;
|
|
18
16
|
align-items: center;
|
|
19
|
-
font-
|
|
20
|
-
|
|
17
|
+
font-family: var(--void-type-label-family);
|
|
18
|
+
font-size: var(--void-type-label-size);
|
|
19
|
+
line-height: var(--void-type-label-leading);
|
|
20
|
+
font-weight: var(--void-type-label-weight);
|
|
21
|
+
letter-spacing: var(--void-type-label-tracking);
|
|
22
|
+
text-transform: var(--void-type-label-case);
|
|
23
|
+
color: var(--void-type-label-color);
|
|
21
24
|
}
|
|
22
25
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
/* The separator is generated content (hidden from assistive technology by the empty alternative text), so
|
|
27
|
+
items come and go, reorder and re-render without the component touching them. */
|
|
28
|
+
void-breadcrumbs-item + void-breadcrumbs-item::before {
|
|
29
|
+
content: var(--_void-breadcrumbs-separator, "/") / "";
|
|
30
|
+
margin-inline-end: var(--void-space-2);
|
|
26
31
|
color: var(--void-color-text-muted);
|
|
27
|
-
opacity: 0.5;
|
|
28
32
|
}
|
|
29
33
|
|
|
30
|
-
|
|
34
|
+
void-breadcrumbs-item[aria-current] {
|
|
31
35
|
color: var(--void-color-text);
|
|
32
36
|
}
|
|
33
37
|
|
|
34
|
-
|
|
35
|
-
color:
|
|
38
|
+
void-breadcrumbs-item a {
|
|
39
|
+
color: inherit;
|
|
36
40
|
text-decoration: none;
|
|
37
41
|
}
|
|
38
42
|
|
|
39
|
-
|
|
43
|
+
void-breadcrumbs-item a:hover {
|
|
40
44
|
color: var(--void-color-text);
|
|
41
45
|
}
|
|
@@ -1,35 +1,54 @@
|
|
|
1
1
|
/* ============================================================
|
|
2
2
|
void-button — Tone system component
|
|
3
|
+
Three variants, one size: outline (default), filled and ghost are
|
|
4
|
+
the same height and padding at each size step, so buttons in a row
|
|
5
|
+
line up whatever their variant.
|
|
3
6
|
============================================================ */
|
|
4
7
|
|
|
8
|
+
/* @tokens void-button
|
|
9
|
+
--void-button-height Height of the button. Applies at every size step; for a proportional change set the --void-control-* steps instead.
|
|
10
|
+
--void-button-padding Inline padding. Applies at every size step; for a proportional change set the --void-control-* steps instead.
|
|
11
|
+
--void-button-font-size Size of the label. Applies at every size step; for a proportional change set the --void-control-* steps instead.
|
|
12
|
+
--void-button-font-weight Weight of the label.
|
|
13
|
+
--void-button-radius Corner radius.
|
|
14
|
+
--void-button-border Edge colour of the default outline button. A coloured button keeps the edge of its tone; a filled one is its tone.
|
|
15
|
+
--void-button-shadow Shadow of the outline and filled button at rest. A ghost button never casts one. */
|
|
16
|
+
|
|
5
17
|
void-button {
|
|
6
18
|
/* Tone system — base defaults to accent (monochrome white/black) */
|
|
7
|
-
--tone: var(--void-color-accent);
|
|
8
|
-
--tone-text: var(--
|
|
9
|
-
--tone-subtle:
|
|
10
|
-
--tone-border:
|
|
11
|
-
--tone-hover: color-mix(in srgb, var(--tone)
|
|
19
|
+
--_void-tone: var(--void-color-accent);
|
|
20
|
+
--_void-tone-text: var(--void-color-text);
|
|
21
|
+
--_void-tone-subtle: var(--void-color-control-fill);
|
|
22
|
+
--_void-tone-border: var(--void-button-border, var(--void-color-border-control));
|
|
23
|
+
--_void-tone-hover: color-mix(in srgb, var(--_void-tone) 8%, var(--void-color-control-fill));
|
|
24
|
+
--_void-tone-active: color-mix(in srgb, var(--_void-tone) 13%, var(--void-color-control-fill));
|
|
25
|
+
|
|
26
|
+
/* Size — each size step sets these three and nothing else */
|
|
27
|
+
--_void-button-height: var(--void-button-height, var(--void-control-height));
|
|
28
|
+
--_void-button-padding: var(--void-button-padding, calc(var(--void-control-padding) * 1.25));
|
|
29
|
+
--_void-button-font-size: var(--void-button-font-size, var(--void-control-text));
|
|
12
30
|
|
|
13
31
|
/* Layout */
|
|
14
32
|
display: inline-flex;
|
|
15
33
|
align-items: center;
|
|
16
34
|
justify-content: center;
|
|
17
35
|
gap: var(--void-space-2);
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
padding: var(--void-space-2) var(--void-space-4);
|
|
36
|
+
min-height: var(--_void-button-height);
|
|
37
|
+
padding: 0 var(--_void-button-padding);
|
|
21
38
|
|
|
22
39
|
/* Typography */
|
|
23
40
|
font-family: var(--void-font-sans);
|
|
24
|
-
font-size: var(--
|
|
25
|
-
font-weight: var(--void-weight-medium);
|
|
41
|
+
font-size: var(--_void-button-font-size);
|
|
42
|
+
font-weight: var(--void-button-font-weight, var(--void-weight-medium));
|
|
26
43
|
line-height: var(--void-leading-tight);
|
|
44
|
+
white-space: nowrap;
|
|
27
45
|
|
|
28
46
|
/* Visual */
|
|
29
|
-
background: var(--tone-subtle);
|
|
30
|
-
border:
|
|
31
|
-
border-radius: var(--void-radius-
|
|
32
|
-
|
|
47
|
+
background: var(--_void-tone-subtle);
|
|
48
|
+
border: var(--void-control-border-width) solid var(--_void-tone-border);
|
|
49
|
+
border-radius: var(--void-button-radius, var(--void-control-radius));
|
|
50
|
+
box-shadow: var(--void-button-shadow, none);
|
|
51
|
+
color: var(--_void-tone-text);
|
|
33
52
|
cursor: pointer;
|
|
34
53
|
|
|
35
54
|
/* Motion */
|
|
@@ -41,21 +60,32 @@ void-button {
|
|
|
41
60
|
user-select: none;
|
|
42
61
|
}
|
|
43
62
|
|
|
44
|
-
/*
|
|
63
|
+
/* Inline icons keep their size and sit on the text baseline */
|
|
64
|
+
void-button svg {
|
|
65
|
+
flex-shrink: 0;
|
|
66
|
+
vertical-align: -0.15em;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Hover and pressed */
|
|
45
70
|
void-button:hover {
|
|
46
|
-
background: var(--tone-hover);
|
|
71
|
+
background: var(--_void-tone-hover);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
void-button:active {
|
|
75
|
+
background: var(--_void-tone-active);
|
|
47
76
|
}
|
|
48
77
|
|
|
49
78
|
/* Focus */
|
|
50
|
-
void-button:focus-visible
|
|
51
|
-
|
|
52
|
-
outline
|
|
79
|
+
void-button:focus-visible,
|
|
80
|
+
void-button:has(> :is(a, button):focus-visible) {
|
|
81
|
+
outline: var(--void-focus-ring-width) solid var(--void-focus-ring-color);
|
|
82
|
+
outline-offset: var(--void-focus-ring-offset);
|
|
53
83
|
}
|
|
54
84
|
|
|
55
85
|
/* Filled variant */
|
|
56
86
|
void-button[variant="filled"] {
|
|
57
|
-
background: var(--tone);
|
|
58
|
-
border-color: var(--tone);
|
|
87
|
+
background: var(--_void-tone);
|
|
88
|
+
border-color: var(--_void-tone);
|
|
59
89
|
color: var(--void-color-text-on-accent);
|
|
60
90
|
}
|
|
61
91
|
|
|
@@ -63,65 +93,110 @@ void-button[variant="filled"]:hover {
|
|
|
63
93
|
opacity: 0.9;
|
|
64
94
|
}
|
|
65
95
|
|
|
96
|
+
void-button[variant="filled"]:active {
|
|
97
|
+
opacity: 0.8;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* Ghost variant — nothing drawn at rest: for row actions, toolbars
|
|
101
|
+
and the quiet button beside a primary one. */
|
|
102
|
+
void-button[variant="ghost"] {
|
|
103
|
+
--_void-tone-hover: color-mix(in srgb, var(--_void-tone) 8%, transparent);
|
|
104
|
+
--_void-tone-active: color-mix(in srgb, var(--_void-tone) 13%, transparent);
|
|
105
|
+
background: transparent;
|
|
106
|
+
border-color: transparent;
|
|
107
|
+
box-shadow: none;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
void-button[variant="ghost"]:hover {
|
|
111
|
+
background: var(--_void-tone-hover);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
void-button[variant="ghost"]:active {
|
|
115
|
+
background: var(--_void-tone-active);
|
|
116
|
+
}
|
|
117
|
+
|
|
66
118
|
/* Color variants — one override cascades to all derived states */
|
|
67
|
-
void-button[color="error"] { --tone: var(--void-color-error); }
|
|
68
|
-
void-button[color="warning"] { --tone: var(--void-color-warning); }
|
|
69
|
-
void-button[color="caution"] { --tone: var(--void-color-caution); }
|
|
70
|
-
void-button[color="
|
|
71
|
-
void-button[color="
|
|
72
|
-
void-button[color="
|
|
119
|
+
void-button[color="error"] { --_void-tone: var(--void-color-error); }
|
|
120
|
+
void-button[color="warning"] { --_void-tone: var(--void-color-warning); }
|
|
121
|
+
void-button[color="caution"] { --_void-tone: var(--void-color-caution); }
|
|
122
|
+
void-button[color="highlight"] { --_void-tone: var(--void-color-highlight); }
|
|
123
|
+
void-button[color="success"] { --_void-tone: var(--void-color-success); }
|
|
124
|
+
void-button[color="info"] { --_void-tone: var(--void-color-info); }
|
|
125
|
+
void-button[color="notice"] { --_void-tone: var(--void-color-notice); }
|
|
126
|
+
|
|
127
|
+
/* Coloured buttons keep a tone-derived border and tint; only the
|
|
128
|
+
default (accent) button uses the control boundary token. The
|
|
129
|
+
attribute is reflected, so the default button carries
|
|
130
|
+
color="default". */
|
|
131
|
+
void-button[color]:not([color="default"]) {
|
|
132
|
+
--_void-tone-subtle: color-mix(in srgb, var(--_void-tone) var(--void-tone-tint), var(--void-color-control-fill));
|
|
133
|
+
--_void-tone-border: color-mix(in srgb, var(--_void-tone) 50%, transparent);
|
|
134
|
+
--_void-tone-hover: color-mix(in srgb, var(--_void-tone) calc(var(--void-tone-tint) * 1.5), var(--void-color-control-fill));
|
|
135
|
+
--_void-tone-active: color-mix(in srgb, var(--_void-tone) calc(var(--void-tone-tint) * 2), var(--void-color-control-fill));
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* A coloured ghost button carries its colour in the label, and its
|
|
139
|
+
hover fill is the same tint the tone uses everywhere else, so the
|
|
140
|
+
label keeps 4.5:1 on it. */
|
|
141
|
+
void-button[variant="ghost"][color]:not([color="default"]) {
|
|
142
|
+
--_void-tone-text: var(--_void-tone);
|
|
143
|
+
--_void-tone-hover: color-mix(in srgb, var(--_void-tone) var(--void-tone-tint), transparent);
|
|
144
|
+
--_void-tone-active: color-mix(in srgb, var(--_void-tone) calc(var(--void-tone-tint) * 1.25), transparent);
|
|
145
|
+
}
|
|
73
146
|
|
|
74
147
|
/* Size variants */
|
|
75
148
|
void-button[size="sm"] {
|
|
76
|
-
|
|
77
|
-
|
|
149
|
+
--_void-button-height: var(--void-button-height, var(--void-control-height-sm));
|
|
150
|
+
--_void-button-padding: var(--void-button-padding, calc(var(--void-control-padding-sm) * 1.25));
|
|
151
|
+
--_void-button-font-size: var(--void-button-font-size, var(--void-control-text-sm));
|
|
78
152
|
}
|
|
79
153
|
|
|
80
154
|
void-button[size="lg"] {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
void-button[size="xl"] {
|
|
86
|
-
padding: var(--void-space-4) var(--void-space-8);
|
|
87
|
-
font-size: var(--void-text-lg);
|
|
155
|
+
--_void-button-height: var(--void-button-height, var(--void-control-height-lg));
|
|
156
|
+
--_void-button-padding: var(--void-button-padding, calc(var(--void-control-padding-lg) * 1.25));
|
|
157
|
+
--_void-button-font-size: var(--void-button-font-size, var(--void-control-text-lg));
|
|
88
158
|
}
|
|
89
159
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
160
|
+
/* Icon-only: a labelled button whose only child is an icon is square. */
|
|
161
|
+
void-button[aria-label]:has(> svg:only-child),
|
|
162
|
+
void-button[aria-label]:has(> i:only-child) {
|
|
163
|
+
padding: 0;
|
|
164
|
+
min-width: var(--_void-button-height);
|
|
93
165
|
}
|
|
94
166
|
|
|
95
|
-
/* Link
|
|
96
|
-
|
|
167
|
+
/* Link buttons — the link (or native button) is the one control: it fills the button and carries the padding, so
|
|
168
|
+
the whole button is the hit area at every size, and the button draws the focus ring when it has focus. */
|
|
169
|
+
void-button:has(> :is(a, button)) {
|
|
97
170
|
padding: 0;
|
|
98
171
|
}
|
|
99
172
|
|
|
100
|
-
void-button > a {
|
|
173
|
+
void-button > :is(a, button) {
|
|
101
174
|
display: inline-flex;
|
|
102
175
|
align-items: center;
|
|
103
176
|
justify-content: center;
|
|
177
|
+
align-self: stretch;
|
|
104
178
|
gap: var(--void-space-2);
|
|
105
|
-
padding:
|
|
179
|
+
padding: 0 var(--_void-button-padding);
|
|
106
180
|
color: inherit;
|
|
107
181
|
text-decoration: none;
|
|
108
182
|
flex: 1;
|
|
109
183
|
}
|
|
110
184
|
|
|
111
|
-
void-button
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
void-button[size="lg"] > a {
|
|
116
|
-
padding: var(--void-space-3) var(--void-space-6);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
void-button[size="xl"] > a {
|
|
120
|
-
padding: var(--void-space-4) var(--void-space-8);
|
|
185
|
+
void-button > :is(a, button):focus-visible {
|
|
186
|
+
outline: none;
|
|
121
187
|
}
|
|
122
188
|
|
|
123
|
-
|
|
124
|
-
|
|
189
|
+
/* A native button inside is bare: the host draws the button. */
|
|
190
|
+
void-button > button {
|
|
191
|
+
appearance: none;
|
|
192
|
+
background: none;
|
|
193
|
+
border: 0;
|
|
194
|
+
margin: 0;
|
|
195
|
+
font: inherit;
|
|
196
|
+
letter-spacing: inherit;
|
|
197
|
+
text-transform: inherit;
|
|
198
|
+
white-space: inherit;
|
|
199
|
+
cursor: inherit;
|
|
125
200
|
}
|
|
126
201
|
|
|
127
202
|
/* Disabled */
|
|
@@ -105,10 +105,20 @@ void-calendar {
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
.void-calendar-days {
|
|
108
|
+
display: flex;
|
|
109
|
+
flex-direction: column;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.void-calendar-week {
|
|
108
113
|
display: grid;
|
|
109
114
|
grid-template-columns: repeat(7, 1fr);
|
|
110
115
|
}
|
|
111
116
|
|
|
117
|
+
.void-calendar-cell {
|
|
118
|
+
display: flex;
|
|
119
|
+
justify-content: center;
|
|
120
|
+
}
|
|
121
|
+
|
|
112
122
|
.void-calendar-day {
|
|
113
123
|
display: inline-flex;
|
|
114
124
|
align-items: center;
|
|
@@ -132,8 +142,8 @@ void-calendar {
|
|
|
132
142
|
}
|
|
133
143
|
|
|
134
144
|
.void-calendar-day:focus-visible {
|
|
135
|
-
outline:
|
|
136
|
-
outline-offset: -
|
|
145
|
+
outline: var(--void-focus-ring-width) solid var(--void-focus-ring-color);
|
|
146
|
+
outline-offset: calc(-1 * var(--void-focus-ring-width));
|
|
137
147
|
}
|
|
138
148
|
|
|
139
149
|
.void-calendar-day.outside {
|
|
@@ -306,13 +316,19 @@ void-date-picker {
|
|
|
306
316
|
|
|
307
317
|
.void-date-picker-input {
|
|
308
318
|
width: 100%;
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
319
|
+
/* Room for a date beside the calendar button, which must never sit over the text. */
|
|
320
|
+
min-width: calc(var(--void-space-8) + 10ch);
|
|
321
|
+
/* A field like every other: the shared control height, the field's fill
|
|
322
|
+
and its 3:1 edge. It used to be drawn with the divider colour, which is
|
|
323
|
+
allowed to be faint, at a height and text size of its own. */
|
|
324
|
+
height: var(--void-control-height);
|
|
325
|
+
padding: 0 var(--void-space-8) 0 var(--void-control-padding);
|
|
326
|
+
background: var(--void-field-surface);
|
|
327
|
+
border: var(--void-control-border-width) solid var(--void-field-border);
|
|
328
|
+
border-radius: var(--void-control-radius);
|
|
313
329
|
color: var(--void-color-text);
|
|
314
330
|
font-family: inherit;
|
|
315
|
-
font-size: var(--void-text
|
|
331
|
+
font-size: var(--void-control-text);
|
|
316
332
|
line-height: var(--void-leading-normal);
|
|
317
333
|
outline: none;
|
|
318
334
|
cursor: pointer;
|
|
@@ -325,7 +341,7 @@ void-date-picker {
|
|
|
325
341
|
}
|
|
326
342
|
|
|
327
343
|
.void-date-picker-input:hover {
|
|
328
|
-
border-color: var(--void-
|
|
344
|
+
border-color: var(--void-field-border);
|
|
329
345
|
}
|
|
330
346
|
|
|
331
347
|
.void-date-picker-input:focus {
|
|
@@ -373,22 +389,22 @@ void-date-picker {
|
|
|
373
389
|
|
|
374
390
|
/* ── Expanded state ── */
|
|
375
391
|
|
|
376
|
-
void-date-picker[
|
|
392
|
+
void-date-picker[open] .void-date-picker-input {
|
|
377
393
|
border-color: var(--void-color-border-focus);
|
|
378
394
|
box-shadow: 0 0 0 1px var(--void-color-border-focus);
|
|
379
395
|
}
|
|
380
396
|
|
|
381
397
|
/* ── Dropdown ── */
|
|
382
398
|
|
|
399
|
+
/* A popover="manual" surface in the top layer; placement, flipping and
|
|
400
|
+
transitions are shared (overlay.css). */
|
|
383
401
|
.void-date-picker-dropdown {
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
border:
|
|
389
|
-
|
|
390
|
-
box-shadow: 0 4px 16px var(--void-color-bg-overlay);
|
|
391
|
-
z-index: var(--void-z-dropdown);
|
|
402
|
+
--void-overlay-gap: var(--void-space-1);
|
|
403
|
+
background: var(--void-float-surface);
|
|
404
|
+
color: var(--void-color-text);
|
|
405
|
+
border: var(--void-float-border-width) solid var(--void-float-border);
|
|
406
|
+
border-radius: var(--void-float-radius);
|
|
407
|
+
box-shadow: var(--void-float-shadow);
|
|
392
408
|
padding: var(--void-space-2);
|
|
393
409
|
}
|
|
394
410
|
|
|
@@ -411,9 +427,16 @@ void-date-picker[color="warning"] .void-date-picker-input:focus {
|
|
|
411
427
|
void-date-picker[color="caution"] .void-date-picker-input {
|
|
412
428
|
border-color: var(--void-color-caution);
|
|
413
429
|
}
|
|
430
|
+
|
|
431
|
+
void-date-picker[color="highlight"] .void-date-picker-input {
|
|
432
|
+
border-color: var(--void-color-highlight);
|
|
433
|
+
}
|
|
414
434
|
void-date-picker[color="caution"] .void-date-picker-input:focus {
|
|
415
435
|
box-shadow: 0 0 0 1px var(--void-color-caution);
|
|
416
436
|
}
|
|
437
|
+
void-date-picker[color="highlight"] .void-date-picker-input:focus {
|
|
438
|
+
box-shadow: 0 0 0 1px var(--void-color-highlight);
|
|
439
|
+
}
|
|
417
440
|
|
|
418
441
|
void-date-picker[color="success"] .void-date-picker-input {
|
|
419
442
|
border-color: var(--void-color-success);
|