@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/package.json
CHANGED
|
@@ -1,20 +1,78 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voidable/theme",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1",
|
|
4
|
+
"description": "CSS custom properties, design tokens, reset and component styles for Voidable UI",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"css",
|
|
7
|
+
"design-tokens",
|
|
8
|
+
"theme",
|
|
9
|
+
"custom-properties",
|
|
10
|
+
"dark-mode",
|
|
11
|
+
"design-system",
|
|
12
|
+
"void-ui"
|
|
13
|
+
],
|
|
14
|
+
"homepage": "https://voidable.dev",
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/VoidableUI/Voidable/issues"
|
|
17
|
+
},
|
|
4
18
|
"type": "module",
|
|
19
|
+
"sideEffects": [
|
|
20
|
+
"*.css"
|
|
21
|
+
],
|
|
5
22
|
"license": "MIT",
|
|
23
|
+
"style": "./dist/void.css",
|
|
6
24
|
"exports": {
|
|
7
|
-
".":
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
25
|
+
".": {
|
|
26
|
+
"style": "./dist/void.css",
|
|
27
|
+
"default": "./dist/void.css"
|
|
28
|
+
},
|
|
29
|
+
"./core": "./dist/core.css",
|
|
30
|
+
"./tokens": "./dist/tokens.css",
|
|
31
|
+
"./base": "./dist/base.css",
|
|
32
|
+
"./layers": "./dist/layers.css",
|
|
33
|
+
"./primitives": "./dist/primitives.css",
|
|
34
|
+
"./knobs": "./dist/knobs.css",
|
|
35
|
+
"./reset": "./dist/reset.css",
|
|
36
|
+
"./type": "./dist/type.css",
|
|
37
|
+
"./components/*": "./dist/components/*",
|
|
38
|
+
"./patterns/*": "./dist/patterns/*",
|
|
39
|
+
"./themes/*": "./dist/themes/*",
|
|
40
|
+
"./dist/*": "./dist/*",
|
|
41
|
+
"./src/*": "./src/*",
|
|
42
|
+
"./skins/*": "./dist/skins/*",
|
|
43
|
+
"./dtcg/*": "./dist/dtcg/*",
|
|
44
|
+
"./json/*": "./dist/json/*",
|
|
45
|
+
"./knobs.json": "./dist/knobs.json",
|
|
46
|
+
"./component-tokens.json": "./dist/component-tokens.json",
|
|
47
|
+
"./skin": {
|
|
48
|
+
"types": "./dist/skin.d.ts",
|
|
49
|
+
"default": "./dist/skin.js"
|
|
50
|
+
},
|
|
51
|
+
"./names": {
|
|
52
|
+
"types": "./dist/names.d.ts",
|
|
53
|
+
"default": "./dist/names.js"
|
|
54
|
+
}
|
|
11
55
|
},
|
|
12
56
|
"files": [
|
|
13
|
-
"src"
|
|
57
|
+
"src",
|
|
58
|
+
"dist"
|
|
14
59
|
],
|
|
15
60
|
"repository": {
|
|
16
61
|
"type": "git",
|
|
17
|
-
"url": "https://github.com/VoidableUI/Voidable",
|
|
62
|
+
"url": "git+https://github.com/VoidableUI/Voidable.git",
|
|
18
63
|
"directory": "packages/theme"
|
|
64
|
+
},
|
|
65
|
+
"publishConfig": {
|
|
66
|
+
"access": "public"
|
|
67
|
+
},
|
|
68
|
+
"devDependencies": {
|
|
69
|
+
"lightningcss": "^1.32.0",
|
|
70
|
+
"postcss": "^8.5.12",
|
|
71
|
+
"postcss-selector-parser": "^6.1.2"
|
|
72
|
+
},
|
|
73
|
+
"scripts": {
|
|
74
|
+
"build": "node scripts/build.mjs && node scripts/export-tokens.mjs",
|
|
75
|
+
"test": "node --test \"test/*.test.mjs\"",
|
|
76
|
+
"generate": "node scripts/build.mjs --generated-only"
|
|
19
77
|
}
|
|
20
|
-
}
|
|
78
|
+
}
|
package/src/app-shell/detail.css
CHANGED
|
@@ -46,11 +46,13 @@
|
|
|
46
46
|
gap: var(--void-space-1);
|
|
47
47
|
}
|
|
48
48
|
.info-grid-label {
|
|
49
|
-
font-
|
|
50
|
-
font-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
font-family: var(--void-type-label-family);
|
|
50
|
+
font-size: var(--void-type-label-size);
|
|
51
|
+
line-height: var(--void-type-label-leading);
|
|
52
|
+
font-weight: var(--void-type-label-weight);
|
|
53
|
+
letter-spacing: var(--void-type-label-tracking);
|
|
54
|
+
text-transform: var(--void-type-label-case);
|
|
55
|
+
color: var(--void-type-label-color);
|
|
54
56
|
}
|
|
55
57
|
.info-grid-value {
|
|
56
58
|
font-size: var(--void-text-sm);
|
|
@@ -30,13 +30,14 @@
|
|
|
30
30
|
.subtable th {
|
|
31
31
|
text-align: left;
|
|
32
32
|
padding: var(--void-space-2) var(--void-space-3);
|
|
33
|
-
font-
|
|
34
|
-
font-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
font-family: var(--void-type-label-family);
|
|
34
|
+
font-size: var(--void-type-label-size);
|
|
35
|
+
line-height: var(--void-type-label-leading);
|
|
36
|
+
font-weight: var(--void-type-label-weight);
|
|
37
|
+
letter-spacing: var(--void-type-label-tracking);
|
|
38
|
+
text-transform: var(--void-type-label-case);
|
|
39
|
+
color: var(--void-type-label-color);
|
|
38
40
|
border-bottom: 1px solid var(--void-color-border);
|
|
39
|
-
font-weight: var(--void-weight-medium);
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
.subtable td {
|
package/src/base.css
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* ============================================================
|
|
2
|
+
@voidable/theme — Base
|
|
3
|
+
The only styling the theme applies to the page itself rather than to
|
|
4
|
+
`void-*` elements and what is inside them: the colour scheme, the page
|
|
5
|
+
background and the default text of the document. Every other element
|
|
6
|
+
selector in the theme is scoped to the inside of a theme element
|
|
7
|
+
(reset.css), so the theme does not restyle an application's own markup.
|
|
8
|
+
|
|
9
|
+
Optional. `@voidable/theme` includes it; `@voidable/theme/core` leaves it
|
|
10
|
+
out, for an application that sets its own body and html. Without it, set
|
|
11
|
+
`color-scheme`, `background` and `color` on your own page.
|
|
12
|
+
============================================================ */
|
|
13
|
+
|
|
14
|
+
html {
|
|
15
|
+
color-scheme: var(--void-color-scheme);
|
|
16
|
+
-webkit-font-smoothing: antialiased;
|
|
17
|
+
-moz-osx-font-smoothing: grayscale;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
body {
|
|
21
|
+
margin: 0;
|
|
22
|
+
font-family: var(--void-type-body-family);
|
|
23
|
+
font-size: var(--void-type-body-size);
|
|
24
|
+
line-height: var(--void-type-body-leading);
|
|
25
|
+
font-weight: var(--void-type-body-weight);
|
|
26
|
+
color: var(--void-type-body-color);
|
|
27
|
+
background: var(--void-color-bg);
|
|
28
|
+
}
|
|
@@ -3,14 +3,30 @@ void-accordion {
|
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
+
/* Each item is a two-row grid, the trigger and then the content, and the
|
|
7
|
+
content row is 0fr closed and 1fr open: the row animates between them, so
|
|
8
|
+
content of any height opens and closes smoothly with no script measuring it
|
|
9
|
+
(animating grid rows is baseline widely available; where it is not, the
|
|
10
|
+
content just appears and disappears). */
|
|
6
11
|
void-accordion-item {
|
|
7
|
-
|
|
12
|
+
display: grid;
|
|
13
|
+
grid-template-rows: auto 0fr;
|
|
14
|
+
border-bottom: var(--void-rule-between);
|
|
15
|
+
transition: grid-template-rows var(--void-duration-normal) var(--void-ease-in-out);
|
|
8
16
|
}
|
|
9
17
|
|
|
10
|
-
|
|
18
|
+
void-accordion-item[open] {
|
|
19
|
+
grid-template-rows: auto 1fr;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* The trigger part is the button (role="button", a tab stop, written by the
|
|
23
|
+
item); the chevron is drawn here, so it shows before the script loads. */
|
|
24
|
+
void-accordion-trigger {
|
|
11
25
|
display: flex;
|
|
12
26
|
align-items: center;
|
|
13
27
|
justify-content: space-between;
|
|
28
|
+
gap: var(--void-space-2);
|
|
29
|
+
box-sizing: border-box;
|
|
14
30
|
width: 100%;
|
|
15
31
|
padding: var(--void-space-3) var(--void-space-4);
|
|
16
32
|
border: none;
|
|
@@ -21,38 +37,99 @@ void-accordion-item {
|
|
|
21
37
|
font-weight: var(--void-weight-medium);
|
|
22
38
|
text-align: left;
|
|
23
39
|
cursor: pointer;
|
|
40
|
+
user-select: none;
|
|
41
|
+
outline: none;
|
|
24
42
|
transition: background var(--void-duration-fast) var(--void-ease-in-out);
|
|
25
43
|
}
|
|
26
44
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.void-accordion-trigger:focus-visible {
|
|
32
|
-
outline: 2px solid var(--void-color-border);
|
|
33
|
-
outline-offset: -2px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.void-accordion-chevron {
|
|
45
|
+
void-accordion-trigger::after {
|
|
46
|
+
content: '';
|
|
37
47
|
width: 1rem;
|
|
38
48
|
height: 1rem;
|
|
39
49
|
flex-shrink: 0;
|
|
40
|
-
|
|
50
|
+
background: var(--void-color-text-secondary);
|
|
51
|
+
/* token-ok: the chevron's shape; its colour is the background token above */
|
|
52
|
+
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M6 4l4 4-4 4' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
|
|
41
53
|
transition: transform var(--void-duration-fast) var(--void-ease-in-out);
|
|
42
54
|
}
|
|
43
55
|
|
|
44
|
-
void-accordion-
|
|
56
|
+
void-accordion-trigger:hover {
|
|
57
|
+
background: var(--void-color-bg-hover);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
void-accordion-trigger:focus-visible {
|
|
61
|
+
outline: var(--void-focus-ring-width) solid var(--void-focus-ring-color);
|
|
62
|
+
outline-offset: calc(var(--void-focus-ring-width) * -1);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
void-accordion-item[open] > void-accordion-trigger::after {
|
|
45
66
|
transform: rotate(90deg);
|
|
46
67
|
}
|
|
47
68
|
|
|
48
|
-
|
|
49
|
-
|
|
69
|
+
void-accordion-trigger {
|
|
70
|
+
grid-row: 1;
|
|
50
71
|
}
|
|
51
72
|
|
|
52
|
-
|
|
73
|
+
/* The content is the second row. Closed, its box is empty (no block padding,
|
|
74
|
+
which would keep the row open) and it is visibility:hidden, so it is out of
|
|
75
|
+
the accessibility tree, the tab order and find-in-page, all from the item's
|
|
76
|
+
own attribute and before any script loads. The visibility change waits for
|
|
77
|
+
the closing animation to finish and happens at once on opening. The item
|
|
78
|
+
then also marks closed content hidden="until-found" (see accordion.ts),
|
|
79
|
+
which keeps it hidden from assistive technology and lets find-in-page open
|
|
80
|
+
it where the browser supports that. Same mechanism as the collapsible. */
|
|
81
|
+
void-accordion-content {
|
|
82
|
+
grid-row: 2;
|
|
53
83
|
display: block;
|
|
54
|
-
|
|
84
|
+
min-height: 0;
|
|
85
|
+
overflow: hidden;
|
|
86
|
+
padding: 0 var(--void-space-4);
|
|
87
|
+
visibility: hidden;
|
|
55
88
|
color: var(--void-color-text);
|
|
56
89
|
font-family: var(--void-font-sans);
|
|
57
|
-
font-size: var(--void-
|
|
90
|
+
font-size: var(--void-type-body-size);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
void-accordion-item[open] > void-accordion-content {
|
|
94
|
+
padding-block: var(--void-space-3) var(--void-space-4);
|
|
95
|
+
visibility: visible;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* hidden="until-found" hides through content-visibility; find-in-page only
|
|
99
|
+
searches it when it is not also visibility:hidden. */
|
|
100
|
+
void-accordion-content[hidden="until-found"] {
|
|
101
|
+
visibility: visible;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* Only once the element is defined: a page whose stylesheet arrives after the
|
|
105
|
+
first paint must not animate its open items into place. The visibility
|
|
106
|
+
change waits for the closing animation and happens at once on opening. */
|
|
107
|
+
void-accordion-item:defined {
|
|
108
|
+
transition: grid-template-rows var(--void-duration-normal) var(--void-ease-in-out);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
void-accordion-item:defined > void-accordion-content {
|
|
112
|
+
transition: padding-block var(--void-duration-normal) var(--void-ease-in-out),
|
|
113
|
+
visibility 0s linear var(--void-duration-normal);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
void-accordion-item[open]:defined > void-accordion-content {
|
|
117
|
+
transition: padding-block var(--void-duration-normal) var(--void-ease-in-out),
|
|
118
|
+
visibility 0s linear 0s;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* The until-found mark is put on once the content has closed; taking the delay
|
|
122
|
+
off here keeps visibility from lagging behind an opening that follows it. */
|
|
123
|
+
void-accordion-item:defined > void-accordion-content[hidden="until-found"] {
|
|
124
|
+
transition: padding-block var(--void-duration-normal) var(--void-ease-in-out),
|
|
125
|
+
visibility 0s linear 0s;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@media (prefers-reduced-motion: reduce) {
|
|
129
|
+
void-accordion-item:defined,
|
|
130
|
+
void-accordion-item:defined > void-accordion-content,
|
|
131
|
+
void-accordion-item:defined > void-accordion-content[hidden="until-found"],
|
|
132
|
+
void-accordion-item[open]:defined > void-accordion-content {
|
|
133
|
+
transition: none;
|
|
134
|
+
}
|
|
58
135
|
}
|
|
@@ -4,17 +4,21 @@
|
|
|
4
4
|
|
|
5
5
|
void-action-input {
|
|
6
6
|
/* Tone system */
|
|
7
|
-
--tone: var(--void-color-accent);
|
|
8
|
-
--tone-subtle: color-mix(in srgb, var(--tone) 14%, transparent);
|
|
9
|
-
--tone-border: color-mix(in srgb, var(--tone) 36%, transparent);
|
|
10
|
-
--tone-hover: color-mix(in srgb, var(--tone) 22%, transparent);
|
|
7
|
+
--_void-tone: var(--void-color-accent);
|
|
8
|
+
--_void-tone-subtle: color-mix(in srgb, var(--_void-tone) 14%, transparent);
|
|
9
|
+
--_void-tone-border: color-mix(in srgb, var(--_void-tone) 36%, transparent);
|
|
10
|
+
--_void-tone-hover: color-mix(in srgb, var(--_void-tone) 22%, transparent);
|
|
11
|
+
--_void-field-height: var(--void-control-height);
|
|
12
|
+
--_void-field-padding: var(--void-control-padding);
|
|
13
|
+
--_void-field-text: var(--void-control-text);
|
|
11
14
|
|
|
12
15
|
display: inline-flex;
|
|
13
16
|
align-items: stretch;
|
|
14
17
|
font-family: var(--void-font-sans);
|
|
15
|
-
border:
|
|
16
|
-
border-radius: var(--void-radius
|
|
17
|
-
background: var(--void-
|
|
18
|
+
border: var(--void-control-border-width) solid var(--void-field-border);
|
|
19
|
+
border-radius: var(--void-control-radius);
|
|
20
|
+
background: var(--void-field-surface);
|
|
21
|
+
min-height: var(--_void-field-height);
|
|
18
22
|
transition: border-color var(--void-duration-fast) var(--void-ease-in-out),
|
|
19
23
|
box-shadow var(--void-duration-fast) var(--void-ease-in-out);
|
|
20
24
|
}
|
|
@@ -25,36 +29,36 @@ void-action-input:focus-within {
|
|
|
25
29
|
}
|
|
26
30
|
|
|
27
31
|
void-action-input:hover:not(:focus-within) {
|
|
28
|
-
border-color: var(--void-
|
|
32
|
+
border-color: var(--void-field-border);
|
|
29
33
|
}
|
|
30
34
|
|
|
31
35
|
/* Border-radius on children (no overflow:hidden so tooltip can escape) */
|
|
32
36
|
void-action-input input.void-action-input-field {
|
|
33
|
-
border-radius: var(--void-radius
|
|
37
|
+
border-radius: var(--void-control-radius) 0 0 var(--void-control-radius);
|
|
34
38
|
}
|
|
35
39
|
|
|
36
40
|
void-action-input .void-action-input-btn {
|
|
37
|
-
border-radius: 0 var(--void-radius
|
|
41
|
+
border-radius: 0 var(--void-control-radius) var(--void-control-radius) 0;
|
|
38
42
|
}
|
|
39
43
|
|
|
40
|
-
void-action-input[
|
|
41
|
-
border-radius: 0 var(--void-radius
|
|
44
|
+
void-action-input[icon-side="left"] input.void-action-input-field {
|
|
45
|
+
border-radius: 0 var(--void-control-radius) var(--void-control-radius) 0;
|
|
42
46
|
}
|
|
43
47
|
|
|
44
|
-
void-action-input[
|
|
45
|
-
border-radius: var(--void-radius
|
|
48
|
+
void-action-input[icon-side="left"] .void-action-input-btn {
|
|
49
|
+
border-radius: var(--void-control-radius) 0 0 var(--void-control-radius);
|
|
46
50
|
}
|
|
47
51
|
|
|
48
52
|
/* The native input inside */
|
|
49
53
|
void-action-input input.void-action-input-field {
|
|
50
54
|
flex: 1;
|
|
51
55
|
min-width: 0;
|
|
52
|
-
padding:
|
|
56
|
+
padding: 0 var(--_void-field-padding);
|
|
53
57
|
background: transparent;
|
|
54
58
|
border: none;
|
|
55
59
|
color: var(--void-color-text);
|
|
56
60
|
font-family: inherit;
|
|
57
|
-
font-size: var(--
|
|
61
|
+
font-size: var(--_void-field-text);
|
|
58
62
|
line-height: var(--void-leading-normal);
|
|
59
63
|
outline: none;
|
|
60
64
|
text-align: left;
|
|
@@ -70,7 +74,8 @@ void-action-input input.void-action-input-field::placeholder {
|
|
|
70
74
|
display: inline-flex;
|
|
71
75
|
align-items: center;
|
|
72
76
|
justify-content: center;
|
|
73
|
-
padding: 0 var(--
|
|
77
|
+
padding: 0 var(--_void-field-padding);
|
|
78
|
+
font-size: var(--_void-field-text);
|
|
74
79
|
background: transparent;
|
|
75
80
|
border: none;
|
|
76
81
|
color: var(--void-color-text-secondary);
|
|
@@ -83,13 +88,13 @@ void-action-input input.void-action-input-field::placeholder {
|
|
|
83
88
|
}
|
|
84
89
|
|
|
85
90
|
.void-action-input-btn:hover:not(:disabled) {
|
|
86
|
-
background: var(--tone-hover);
|
|
91
|
+
background: var(--_void-tone-hover);
|
|
87
92
|
color: var(--void-color-text);
|
|
88
93
|
}
|
|
89
94
|
|
|
90
95
|
.void-action-input-btn:focus-visible {
|
|
91
|
-
outline:
|
|
92
|
-
outline-offset: -
|
|
96
|
+
outline: var(--void-focus-ring-width) solid var(--void-focus-ring-color);
|
|
97
|
+
outline-offset: calc(-1 * var(--void-focus-ring-width));
|
|
93
98
|
}
|
|
94
99
|
|
|
95
100
|
.void-action-input-btn:disabled {
|
|
@@ -105,64 +110,45 @@ void-action-input void-tooltip {
|
|
|
105
110
|
/* Separator lines between btn and input */
|
|
106
111
|
/* Default: button on the right */
|
|
107
112
|
void-action-input .void-action-input-btn {
|
|
108
|
-
border-left:
|
|
113
|
+
border-left: var(--void-rule-between);
|
|
109
114
|
}
|
|
110
115
|
|
|
111
116
|
/* Button on the left */
|
|
112
|
-
void-action-input[
|
|
117
|
+
void-action-input[icon-side="left"] .void-action-input-btn {
|
|
113
118
|
border-left: none;
|
|
114
|
-
border-right:
|
|
119
|
+
border-right: var(--void-rule-between);
|
|
115
120
|
}
|
|
116
121
|
|
|
117
122
|
/* Color variants */
|
|
118
|
-
void-action-input[color="error"] { --tone: var(--void-color-error); }
|
|
119
|
-
void-action-input[color="warning"] { --tone: var(--void-color-warning); }
|
|
120
|
-
void-action-input[color="caution"] { --tone: var(--void-color-caution); }
|
|
121
|
-
void-action-input[color="
|
|
122
|
-
void-action-input[color="
|
|
123
|
-
void-action-input[color="
|
|
123
|
+
void-action-input[color="error"] { --_void-tone: var(--void-color-error); }
|
|
124
|
+
void-action-input[color="warning"] { --_void-tone: var(--void-color-warning); }
|
|
125
|
+
void-action-input[color="caution"] { --_void-tone: var(--void-color-caution); }
|
|
126
|
+
void-action-input[color="highlight"] { --_void-tone: var(--void-color-highlight); }
|
|
127
|
+
void-action-input[color="success"] { --_void-tone: var(--void-color-success); }
|
|
128
|
+
void-action-input[color="info"] { --_void-tone: var(--void-color-info); }
|
|
129
|
+
void-action-input[color="notice"] { --_void-tone: var(--void-color-notice); }
|
|
124
130
|
|
|
125
|
-
void-action-input:where([color="error"], [color="warning"], [color="caution"], [color="success"], [color="info"], [color="notice"]) {
|
|
126
|
-
border-color: var(--tone-border);
|
|
127
|
-
background: var(--tone-subtle);
|
|
131
|
+
void-action-input:where([color="error"], [color="warning"], [color="caution"], [color="highlight"], [color="success"], [color="info"], [color="notice"]) {
|
|
132
|
+
border-color: var(--_void-tone-border);
|
|
133
|
+
background: var(--_void-tone-subtle);
|
|
128
134
|
}
|
|
129
135
|
|
|
130
|
-
void-action-input:where([color="error"], [color="warning"], [color="caution"], [color="success"], [color="info"], [color="notice"]) .void-action-input-btn {
|
|
131
|
-
color: var(--tone);
|
|
136
|
+
void-action-input:where([color="error"], [color="warning"], [color="caution"], [color="highlight"], [color="success"], [color="info"], [color="notice"]) .void-action-input-btn {
|
|
137
|
+
color: var(--_void-tone);
|
|
132
138
|
}
|
|
133
139
|
|
|
134
|
-
void-action-input:where([color="error"], [color="warning"], [color="caution"], [color="success"], [color="info"], [color="notice"]) .void-action-input-btn {
|
|
135
|
-
border-left-color: var(--tone-border);
|
|
140
|
+
void-action-input:where([color="error"], [color="warning"], [color="caution"], [color="highlight"], [color="success"], [color="info"], [color="notice"]) .void-action-input-btn {
|
|
141
|
+
border-left-color: var(--_void-tone-border);
|
|
136
142
|
}
|
|
137
143
|
|
|
138
|
-
void-action-input:where([color="error"], [color="warning"], [color="caution"], [color="success"], [color="info"], [color="notice"])[
|
|
144
|
+
void-action-input:where([color="error"], [color="warning"], [color="caution"], [color="highlight"], [color="success"], [color="info"], [color="notice"])[icon-side="left"] .void-action-input-btn {
|
|
139
145
|
border-left-color: transparent;
|
|
140
|
-
border-right-color: var(--tone-border);
|
|
146
|
+
border-right-color: var(--_void-tone-border);
|
|
141
147
|
}
|
|
142
148
|
|
|
143
|
-
void-action-input:where([color="error"], [color="warning"], [color="caution"], [color="success"], [color="info"], [color="notice"]):focus-within {
|
|
144
|
-
border-color: var(--tone);
|
|
145
|
-
box-shadow: 0 0 0 1px var(--tone);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
/* Size variants */
|
|
149
|
-
void-action-input[size="sm"] input.void-action-input-field {
|
|
150
|
-
padding: var(--void-space-1) var(--void-space-2);
|
|
151
|
-
font-size: var(--void-text-xs);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
void-action-input[size="sm"] .void-action-input-btn {
|
|
155
|
-
padding: 0 var(--void-space-2);
|
|
156
|
-
font-size: var(--void-text-xs);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
void-action-input[size="lg"] input.void-action-input-field {
|
|
160
|
-
padding: var(--void-space-3) var(--void-space-4);
|
|
161
|
-
font-size: var(--void-text-base);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
void-action-input[size="lg"] .void-action-input-btn {
|
|
165
|
-
padding: 0 var(--void-space-4);
|
|
149
|
+
void-action-input:where([color="error"], [color="warning"], [color="caution"], [color="highlight"], [color="success"], [color="info"], [color="notice"]):focus-within {
|
|
150
|
+
border-color: var(--_void-tone);
|
|
151
|
+
box-shadow: 0 0 0 1px var(--_void-tone);
|
|
166
152
|
}
|
|
167
153
|
|
|
168
154
|
/* Disabled state */
|
|
@@ -180,3 +166,7 @@ void-action-input[disabled] input.void-action-input-field {
|
|
|
180
166
|
void-action-input[readonly] input.void-action-input-field {
|
|
181
167
|
cursor: default;
|
|
182
168
|
}
|
|
169
|
+
|
|
170
|
+
/* Size variants: each step sets the field tokens and nothing else */
|
|
171
|
+
void-action-input[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); }
|
|
172
|
+
void-action-input[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); }
|
package/src/components/alert.css
CHANGED
|
@@ -1,38 +1,65 @@
|
|
|
1
|
+
/* @tokens void-alert
|
|
2
|
+
--void-alert-border Edge colour of an alert that is not filled, in place of the edge of its tone.
|
|
3
|
+
--void-alert-border-width Edge thickness.
|
|
4
|
+
--void-alert-radius Corner radius: the control radius by default, so set it to follow the containers. */
|
|
5
|
+
|
|
1
6
|
void-alert {
|
|
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);
|
|
7
|
+
--_void-tone: var(--void-color-accent);
|
|
8
|
+
--_void-tone-subtle: color-mix(in srgb, var(--_void-tone) var(--void-tone-tint), transparent);
|
|
9
|
+
--_void-tone-border: color-mix(in srgb, var(--_void-tone) 36%, transparent);
|
|
5
10
|
|
|
11
|
+
position: relative;
|
|
6
12
|
display: flex;
|
|
7
|
-
|
|
8
|
-
gap: var(--void-space-
|
|
9
|
-
padding: var(--void-space-3) var(--void-
|
|
10
|
-
border:
|
|
11
|
-
border-radius: var(--void-radius-md);
|
|
12
|
-
background: var(--tone-subtle);
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
gap: var(--void-space-1);
|
|
15
|
+
padding: var(--void-space-3) var(--void-container-padding);
|
|
16
|
+
border: var(--void-alert-border-width, var(--void-container-border-width)) solid var(--void-alert-border, var(--_void-tone-border));
|
|
17
|
+
border-radius: var(--void-alert-radius, var(--void-radius-md));
|
|
18
|
+
background: var(--_void-tone-subtle);
|
|
13
19
|
color: var(--void-color-text);
|
|
14
20
|
font-family: var(--void-font-sans);
|
|
15
|
-
font-size: var(--void-
|
|
21
|
+
font-size: var(--void-type-body-size);
|
|
16
22
|
line-height: var(--void-leading-normal);
|
|
17
23
|
}
|
|
18
24
|
|
|
19
25
|
void-alert[variant="filled"] {
|
|
20
|
-
background: var(--tone);
|
|
21
|
-
border-color: var(--tone);
|
|
26
|
+
background: var(--_void-tone);
|
|
27
|
+
border-color: var(--_void-tone);
|
|
22
28
|
color: var(--void-color-text-on-accent);
|
|
23
29
|
}
|
|
24
30
|
|
|
25
|
-
void-alert[color="error"] { --tone: var(--void-color-error); }
|
|
26
|
-
void-alert[color="warning"] { --tone: var(--void-color-warning); }
|
|
27
|
-
void-alert[color="caution"] { --tone: var(--void-color-caution); }
|
|
28
|
-
void-alert[color="
|
|
29
|
-
void-alert[color="
|
|
30
|
-
void-alert[color="
|
|
31
|
+
void-alert[color="error"] { --_void-tone: var(--void-color-error); }
|
|
32
|
+
void-alert[color="warning"] { --_void-tone: var(--void-color-warning); }
|
|
33
|
+
void-alert[color="caution"] { --_void-tone: var(--void-color-caution); }
|
|
34
|
+
void-alert[color="highlight"] { --_void-tone: var(--void-color-highlight); }
|
|
35
|
+
void-alert[color="success"] { --_void-tone: var(--void-color-success); }
|
|
36
|
+
void-alert[color="info"] { --_void-tone: var(--void-color-info); }
|
|
37
|
+
void-alert[color="notice"] { --_void-tone: var(--void-color-notice); }
|
|
38
|
+
|
|
39
|
+
/* Parts (CSS-only): an optional title and the message. */
|
|
40
|
+
void-alert-title {
|
|
41
|
+
display: block;
|
|
42
|
+
font-weight: var(--void-weight-medium);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
void-alert-description {
|
|
46
|
+
display: block;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* The close control the author wrote: a part wrapping their own button, in the
|
|
50
|
+
top corner. The text keeps clear of it. */
|
|
51
|
+
void-alert:has(> void-alert-close) {
|
|
52
|
+
padding-inline-end: calc(var(--void-container-padding) + 1.25rem + var(--void-space-3));
|
|
53
|
+
}
|
|
31
54
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
55
|
+
void-alert-close {
|
|
56
|
+
position: absolute;
|
|
57
|
+
top: var(--void-space-3);
|
|
58
|
+
inset-inline-end: var(--void-container-padding);
|
|
59
|
+
display: flex;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
void-alert-close > button {
|
|
36
63
|
display: inline-flex;
|
|
37
64
|
align-items: center;
|
|
38
65
|
justify-content: center;
|
|
@@ -49,6 +76,19 @@ void-alert[color="notice"] { --tone: var(--void-color-notice); }
|
|
|
49
76
|
transition: opacity var(--void-duration-fast) var(--void-ease-in-out);
|
|
50
77
|
}
|
|
51
78
|
|
|
52
|
-
|
|
79
|
+
void-alert-close > button:hover {
|
|
53
80
|
opacity: 1;
|
|
54
81
|
}
|
|
82
|
+
|
|
83
|
+
void-alert-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 alert carries color="default":
|
|
90
|
+
it is a quiet container, not an accent-tinted one. */
|
|
91
|
+
void-alert: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
|
+
}
|
|
@@ -22,5 +22,3 @@ void-avatar img {
|
|
|
22
22
|
|
|
23
23
|
void-avatar[size="sm"] { width: 1.75rem; height: 1.75rem; font-size: var(--void-text-xs); }
|
|
24
24
|
void-avatar[size="lg"] { width: 3.5rem; height: 3.5rem; font-size: var(--void-text-lg); }
|
|
25
|
-
void-avatar[size="xl"] { width: 5rem; height: 5rem; font-size: var(--void-text-xl); }
|
|
26
|
-
void-avatar[size="xxl"] { width: 6.5rem; height: 6.5rem; font-size: var(--void-text-2xl); }
|