@voidable/theme 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +133 -8
- 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
|
@@ -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); }
|
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
|
}
|