@ac-kit/ui-common 0.0.0-stage → 0.2.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/CHANGELOG.md +244 -0
- package/LICENSE +28 -0
- package/README.md +633 -2
- package/dist/anchored/anchored.d.ts +19 -0
- package/dist/anchored/anchored.d.ts.map +1 -0
- package/dist/anchored/anchored.js +2 -0
- package/dist/anchored/anchored.js.map +1 -0
- package/dist/button/button.d.ts +35 -0
- package/dist/button/button.d.ts.map +1 -0
- package/dist/button/button.js +22 -0
- package/dist/button/button.js.map +1 -0
- package/dist/dialog/dialog.d.ts +33 -0
- package/dist/dialog/dialog.d.ts.map +1 -0
- package/dist/dialog/dialog.js +23 -0
- package/dist/dialog/dialog.js.map +1 -0
- package/dist/focus/owns-arrow-keys.d.ts +31 -0
- package/dist/focus/owns-arrow-keys.d.ts.map +1 -0
- package/dist/focus/owns-arrow-keys.js +64 -0
- package/dist/focus/owns-arrow-keys.js.map +1 -0
- package/dist/focus/roving-focus.d.ts +34 -0
- package/dist/focus/roving-focus.d.ts.map +1 -0
- package/dist/focus/roving-focus.js +72 -0
- package/dist/focus/roving-focus.js.map +1 -0
- package/dist/focus/typeahead.d.ts +112 -0
- package/dist/focus/typeahead.d.ts.map +1 -0
- package/dist/focus/typeahead.js +178 -0
- package/dist/focus/typeahead.js.map +1 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +26 -0
- package/dist/index.js.map +1 -0
- package/dist/knob/knob.d.ts +106 -0
- package/dist/knob/knob.d.ts.map +1 -0
- package/dist/knob/knob.js +116 -0
- package/dist/knob/knob.js.map +1 -0
- package/dist/menu/menu.d.ts +157 -0
- package/dist/menu/menu.d.ts.map +1 -0
- package/dist/menu/menu.js +162 -0
- package/dist/menu/menu.js.map +1 -0
- package/dist/meter/meter.d.ts +63 -0
- package/dist/meter/meter.d.ts.map +1 -0
- package/dist/meter/meter.js +57 -0
- package/dist/meter/meter.js.map +1 -0
- package/dist/preact/_anchor.d.ts +13 -0
- package/dist/preact/_anchor.d.ts.map +1 -0
- package/dist/preact/_anchor.js +39 -0
- package/dist/preact/_anchor.js.map +1 -0
- package/dist/preact/_dom.d.ts +14 -0
- package/dist/preact/_dom.d.ts.map +1 -0
- package/dist/preact/_dom.js +31 -0
- package/dist/preact/_dom.js.map +1 -0
- package/dist/preact/_live-announcer.d.ts +26 -0
- package/dist/preact/_live-announcer.d.ts.map +1 -0
- package/dist/preact/_live-announcer.js +101 -0
- package/dist/preact/_live-announcer.js.map +1 -0
- package/dist/preact/button.d.ts +40 -0
- package/dist/preact/button.d.ts.map +1 -0
- package/dist/preact/button.js +22 -0
- package/dist/preact/button.js.map +1 -0
- package/dist/preact/dialog.d.ts +43 -0
- package/dist/preact/dialog.d.ts.map +1 -0
- package/dist/preact/dialog.js +89 -0
- package/dist/preact/dialog.js.map +1 -0
- package/dist/preact/index.d.ts +20 -0
- package/dist/preact/index.d.ts.map +1 -0
- package/dist/preact/index.js +20 -0
- package/dist/preact/index.js.map +1 -0
- package/dist/preact/join-classes.d.ts +10 -0
- package/dist/preact/join-classes.d.ts.map +1 -0
- package/dist/preact/join-classes.js +12 -0
- package/dist/preact/join-classes.js.map +1 -0
- package/dist/preact/knob.d.ts +51 -0
- package/dist/preact/knob.d.ts.map +1 -0
- package/dist/preact/knob.js +144 -0
- package/dist/preact/knob.js.map +1 -0
- package/dist/preact/menu-button.d.ts +117 -0
- package/dist/preact/menu-button.d.ts.map +1 -0
- package/dist/preact/menu-button.js +330 -0
- package/dist/preact/menu-button.js.map +1 -0
- package/dist/preact/meter.d.ts +34 -0
- package/dist/preact/meter.d.ts.map +1 -0
- package/dist/preact/meter.js +21 -0
- package/dist/preact/meter.js.map +1 -0
- package/dist/preact/progress-ring.d.ts +42 -0
- package/dist/preact/progress-ring.d.ts.map +1 -0
- package/dist/preact/progress-ring.js +26 -0
- package/dist/preact/progress-ring.js.map +1 -0
- package/dist/preact/radio-group.d.ts +50 -0
- package/dist/preact/radio-group.d.ts.map +1 -0
- package/dist/preact/radio-group.js +42 -0
- package/dist/preact/radio-group.js.map +1 -0
- package/dist/preact/readout.d.ts +22 -0
- package/dist/preact/readout.d.ts.map +1 -0
- package/dist/preact/readout.js +13 -0
- package/dist/preact/readout.js.map +1 -0
- package/dist/preact/slider.d.ts +40 -0
- package/dist/preact/slider.d.ts.map +1 -0
- package/dist/preact/slider.js +164 -0
- package/dist/preact/slider.js.map +1 -0
- package/dist/preact/spin-button.d.ts +67 -0
- package/dist/preact/spin-button.d.ts.map +1 -0
- package/dist/preact/spin-button.js +132 -0
- package/dist/preact/spin-button.js.map +1 -0
- package/dist/preact/switch.d.ts +25 -0
- package/dist/preact/switch.d.ts.map +1 -0
- package/dist/preact/switch.js +19 -0
- package/dist/preact/switch.js.map +1 -0
- package/dist/preact/tabs.d.ts +97 -0
- package/dist/preact/tabs.d.ts.map +1 -0
- package/dist/preact/tabs.js +264 -0
- package/dist/preact/tabs.js.map +1 -0
- package/dist/preact/toaster.d.ts +43 -0
- package/dist/preact/toaster.d.ts.map +1 -0
- package/dist/preact/toaster.js +356 -0
- package/dist/preact/toaster.js.map +1 -0
- package/dist/preact/toggle-button.d.ts +26 -0
- package/dist/preact/toggle-button.d.ts.map +1 -0
- package/dist/preact/toggle-button.js +16 -0
- package/dist/preact/toggle-button.js.map +1 -0
- package/dist/preact/toolbar.d.ts +24 -0
- package/dist/preact/toolbar.d.ts.map +1 -0
- package/dist/preact/toolbar.js +142 -0
- package/dist/preact/toolbar.js.map +1 -0
- package/dist/preact/tooltip.d.ts +67 -0
- package/dist/preact/tooltip.d.ts.map +1 -0
- package/dist/preact/tooltip.js +165 -0
- package/dist/preact/tooltip.js.map +1 -0
- package/dist/preact/tree.d.ts +93 -0
- package/dist/preact/tree.d.ts.map +1 -0
- package/dist/preact/tree.js +399 -0
- package/dist/preact/tree.js.map +1 -0
- package/dist/preact/use-element-binding.d.ts +32 -0
- package/dist/preact/use-element-binding.d.ts.map +1 -0
- package/dist/preact/use-element-binding.js +51 -0
- package/dist/preact/use-element-binding.js.map +1 -0
- package/dist/progress/progress.d.ts +51 -0
- package/dist/progress/progress.d.ts.map +1 -0
- package/dist/progress/progress.js +43 -0
- package/dist/progress/progress.js.map +1 -0
- package/dist/readout/readout.d.ts +41 -0
- package/dist/readout/readout.d.ts.map +1 -0
- package/dist/readout/readout.js +26 -0
- package/dist/readout/readout.js.map +1 -0
- package/dist/slider/_clamped-value.d.ts +7 -0
- package/dist/slider/_clamped-value.d.ts.map +1 -0
- package/dist/slider/_clamped-value.js +9 -0
- package/dist/slider/_clamped-value.js.map +1 -0
- package/dist/slider/slider-attributes.d.ts +50 -0
- package/dist/slider/slider-attributes.d.ts.map +1 -0
- package/dist/slider/slider-attributes.js +38 -0
- package/dist/slider/slider-attributes.js.map +1 -0
- package/dist/slider/slider-range.d.ts +59 -0
- package/dist/slider/slider-range.d.ts.map +1 -0
- package/dist/slider/slider-range.js +73 -0
- package/dist/slider/slider-range.js.map +1 -0
- package/dist/slider/slider-track.d.ts +37 -0
- package/dist/slider/slider-track.d.ts.map +1 -0
- package/dist/slider/slider-track.js +35 -0
- package/dist/slider/slider-track.js.map +1 -0
- package/dist/slider/stepped-value.d.ts +31 -0
- package/dist/slider/stepped-value.d.ts.map +1 -0
- package/dist/slider/stepped-value.js +55 -0
- package/dist/slider/stepped-value.js.map +1 -0
- package/dist/spin-button/spin-button.d.ts +110 -0
- package/dist/spin-button/spin-button.d.ts.map +1 -0
- package/dist/spin-button/spin-button.js +179 -0
- package/dist/spin-button/spin-button.js.map +1 -0
- package/dist/switch/switch.d.ts +30 -0
- package/dist/switch/switch.d.ts.map +1 -0
- package/dist/switch/switch.js +26 -0
- package/dist/switch/switch.js.map +1 -0
- package/dist/tabs/tabs.d.ts +157 -0
- package/dist/tabs/tabs.d.ts.map +1 -0
- package/dist/tabs/tabs.js +120 -0
- package/dist/tabs/tabs.js.map +1 -0
- package/dist/toast/toast-queue.d.ts +212 -0
- package/dist/toast/toast-queue.d.ts.map +1 -0
- package/dist/toast/toast-queue.js +290 -0
- package/dist/toast/toast-queue.js.map +1 -0
- package/dist/toast/toasts-obscure.d.ts +25 -0
- package/dist/toast/toasts-obscure.d.ts.map +1 -0
- package/dist/toast/toasts-obscure.js +30 -0
- package/dist/toast/toasts-obscure.js.map +1 -0
- package/dist/toggle-button/toggle-button.d.ts +44 -0
- package/dist/toggle-button/toggle-button.d.ts.map +1 -0
- package/dist/toggle-button/toggle-button.js +31 -0
- package/dist/toggle-button/toggle-button.js.map +1 -0
- package/dist/tone.d.ts +8 -0
- package/dist/tone.d.ts.map +1 -0
- package/dist/tone.js +2 -0
- package/dist/tone.js.map +1 -0
- package/dist/toolbar/toolbar.d.ts +35 -0
- package/dist/toolbar/toolbar.d.ts.map +1 -0
- package/dist/toolbar/toolbar.js +23 -0
- package/dist/toolbar/toolbar.js.map +1 -0
- package/dist/tooltip/tooltip.d.ts +183 -0
- package/dist/tooltip/tooltip.d.ts.map +1 -0
- package/dist/tooltip/tooltip.js +185 -0
- package/dist/tooltip/tooltip.js.map +1 -0
- package/dist/tree/tree.d.ts +302 -0
- package/dist/tree/tree.d.ts.map +1 -0
- package/dist/tree/tree.js +439 -0
- package/dist/tree/tree.js.map +1 -0
- package/package.json +110 -3
- package/styles.css +1883 -0
package/styles.css
ADDED
|
@@ -0,0 +1,1883 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @ac-kit/ui-common default stylesheet.
|
|
3
|
+
*
|
|
4
|
+
* Every rule sits in the `ack.common` cascade layer, so any unlayered rule of
|
|
5
|
+
* the page wins over it without raising specificity. The order statement below
|
|
6
|
+
* is the one every `ui-*` stylesheet opens with: it fixes `ack.music` after
|
|
7
|
+
* `ack.common` whichever file a bundler emits first, so `@ac-kit/ui-music`'s
|
|
8
|
+
* rules win over the shared ones without specificity. Keep both layers in it.
|
|
9
|
+
*
|
|
10
|
+
* Colours, sizes and fonts come from CSS custom properties, each with a
|
|
11
|
+
* neutral default; set them on any ancestor (`:root`, a panel) or on one
|
|
12
|
+
* control. Surfaces and lines default to the current text colour mixed with
|
|
13
|
+
* transparency, so the controls sit on a light or a dark page alike.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
@layer ack.common, ack.music;
|
|
17
|
+
|
|
18
|
+
@layer ack.common {
|
|
19
|
+
/* Every control root: the tone it lights in, its focus ring, its disabled
|
|
20
|
+
look and its smallest touch target. `--ack-lit` is the colour a control
|
|
21
|
+
lights in. */
|
|
22
|
+
|
|
23
|
+
.ack-control {
|
|
24
|
+
--ack-lit: var(--ack-accent, #2563c9);
|
|
25
|
+
--ack-lit-ink: #ffffff;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.ack-control[data-tone="positive"] {
|
|
29
|
+
--ack-lit: var(--ack-tone-positive, #1f7a45);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.ack-control[data-tone="warning"] {
|
|
33
|
+
--ack-lit: var(--ack-tone-warning, #e08a12);
|
|
34
|
+
--ack-lit-ink: #1a1300;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.ack-control[data-tone="negative"] {
|
|
38
|
+
--ack-lit: var(--ack-tone-negative, #c4372e);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* A readout, a meter and a progress ring are displays, not targets. */
|
|
42
|
+
.ack-control:not(.ack-readout, .ack-meter, .ack-progress-ring) {
|
|
43
|
+
min-width: var(--ack-target, 44px);
|
|
44
|
+
min-height: var(--ack-target, 44px);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.ack-control:focus-visible {
|
|
48
|
+
outline: 2px solid var(--ack-focus-ring, var(--ack-lit));
|
|
49
|
+
outline-offset: 2px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.ack-control:is([aria-disabled="true"], [data-disabled], :disabled) {
|
|
53
|
+
opacity: 0.45;
|
|
54
|
+
cursor: default;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* The controls a finger drags must not select text or open a callout. */
|
|
58
|
+
:where(.ack-knob, .ack-slider) {
|
|
59
|
+
user-select: none;
|
|
60
|
+
-webkit-user-select: none;
|
|
61
|
+
-webkit-touch-callout: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* Knob */
|
|
65
|
+
|
|
66
|
+
.ack-knob {
|
|
67
|
+
display: inline-flex;
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
align-items: center;
|
|
70
|
+
gap: 2px;
|
|
71
|
+
padding: 2px;
|
|
72
|
+
border-radius: var(--ack-radius, 6px);
|
|
73
|
+
cursor: ns-resize;
|
|
74
|
+
touch-action: none;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.ack-knob-dial {
|
|
78
|
+
width: var(--ack-knob-size, 52px);
|
|
79
|
+
height: var(--ack-knob-size, 52px);
|
|
80
|
+
overflow: visible;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.ack-knob-track,
|
|
84
|
+
.ack-knob-arc {
|
|
85
|
+
fill: none;
|
|
86
|
+
stroke-width: var(--ack-knob-stroke, 4);
|
|
87
|
+
stroke-linecap: round;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.ack-knob-track {
|
|
91
|
+
stroke: var(
|
|
92
|
+
--ack-knob-track,
|
|
93
|
+
var(
|
|
94
|
+
--ack-surface-raised,
|
|
95
|
+
color-mix(in srgb, currentColor 18%, transparent)
|
|
96
|
+
)
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.ack-knob-arc {
|
|
101
|
+
stroke: var(--ack-lit);
|
|
102
|
+
filter: drop-shadow(
|
|
103
|
+
0 0 3px color-mix(in srgb, var(--ack-lit) 60%, transparent)
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.ack-knob-cap {
|
|
108
|
+
fill: var(
|
|
109
|
+
--ack-knob-cap,
|
|
110
|
+
var(--ack-surface, color-mix(in srgb, currentColor 10%, transparent))
|
|
111
|
+
);
|
|
112
|
+
stroke: var(--ack-line, color-mix(in srgb, currentColor 28%, transparent));
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.ack-knob-pointer {
|
|
116
|
+
stroke: var(--ack-knob-pointer, currentColor);
|
|
117
|
+
stroke-width: 2.5;
|
|
118
|
+
stroke-linecap: round;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.ack-knob-value {
|
|
122
|
+
font-family: var(--ack-font-mono, ui-monospace, monospace);
|
|
123
|
+
font-size: 12px;
|
|
124
|
+
font-variant-numeric: tabular-nums;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.ack-knob-label {
|
|
128
|
+
color: var(--ack-muted, color-mix(in srgb, currentColor 65%, transparent));
|
|
129
|
+
font-size: 10px;
|
|
130
|
+
font-weight: 700;
|
|
131
|
+
letter-spacing: 0.1em;
|
|
132
|
+
text-transform: uppercase;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/* Slider: the thumb stays inside the track, its offset following
|
|
136
|
+
`--ack-slider-fraction`, which the component sets from 0 to 1. The page
|
|
137
|
+
still scrolls across the control, along the other axis. */
|
|
138
|
+
|
|
139
|
+
.ack-slider {
|
|
140
|
+
--ack-slider-fraction: 0;
|
|
141
|
+
display: flex;
|
|
142
|
+
flex-direction: column;
|
|
143
|
+
gap: 4px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.ack-slider[data-orientation="horizontal"] {
|
|
147
|
+
min-width: var(--ack-slider-length, 160px);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.ack-slider[data-orientation="vertical"] {
|
|
151
|
+
align-items: center;
|
|
152
|
+
height: var(--ack-slider-length, 160px);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.ack-slider-header {
|
|
156
|
+
display: flex;
|
|
157
|
+
justify-content: space-between;
|
|
158
|
+
gap: 12px;
|
|
159
|
+
font-size: 13px;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.ack-slider[data-orientation="vertical"] .ack-slider-header {
|
|
163
|
+
flex-direction: column;
|
|
164
|
+
align-items: center;
|
|
165
|
+
gap: 0;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.ack-slider-value {
|
|
169
|
+
font-family: var(--ack-font-mono, ui-monospace, monospace);
|
|
170
|
+
font-variant-numeric: tabular-nums;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.ack-slider-control {
|
|
174
|
+
position: relative;
|
|
175
|
+
cursor: pointer;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.ack-slider[data-orientation="horizontal"] .ack-slider-control {
|
|
179
|
+
height: max(
|
|
180
|
+
var(--ack-target, 44px),
|
|
181
|
+
var(--ack-slider-thumb-thickness, 34px)
|
|
182
|
+
);
|
|
183
|
+
touch-action: pan-y pinch-zoom;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.ack-slider[data-orientation="vertical"] .ack-slider-control {
|
|
187
|
+
flex: 1;
|
|
188
|
+
width: max(
|
|
189
|
+
var(--ack-target, 44px),
|
|
190
|
+
var(--ack-slider-thumb-thickness, 34px)
|
|
191
|
+
);
|
|
192
|
+
touch-action: pan-x pinch-zoom;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.ack-slider-track {
|
|
196
|
+
position: absolute;
|
|
197
|
+
overflow: hidden;
|
|
198
|
+
border-radius: calc(var(--ack-slider-track-thickness, 6px) / 2);
|
|
199
|
+
background: var(
|
|
200
|
+
--ack-slider-track,
|
|
201
|
+
var(
|
|
202
|
+
--ack-surface-raised,
|
|
203
|
+
color-mix(in srgb, currentColor 18%, transparent)
|
|
204
|
+
)
|
|
205
|
+
);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.ack-slider[data-orientation="horizontal"] .ack-slider-track {
|
|
209
|
+
top: 50%;
|
|
210
|
+
right: 0;
|
|
211
|
+
left: 0;
|
|
212
|
+
height: var(--ack-slider-track-thickness, 6px);
|
|
213
|
+
transform: translateY(-50%);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.ack-slider[data-orientation="vertical"] .ack-slider-track {
|
|
217
|
+
top: 0;
|
|
218
|
+
bottom: 0;
|
|
219
|
+
left: 50%;
|
|
220
|
+
width: var(--ack-slider-track-thickness, 6px);
|
|
221
|
+
transform: translateX(-50%);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.ack-slider-range {
|
|
225
|
+
position: absolute;
|
|
226
|
+
background: var(--ack-lit);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.ack-slider[data-orientation="horizontal"] .ack-slider-range {
|
|
230
|
+
top: 0;
|
|
231
|
+
bottom: 0;
|
|
232
|
+
left: 0;
|
|
233
|
+
width: calc(
|
|
234
|
+
var(--ack-slider-fraction) *
|
|
235
|
+
(100% - var(--ack-slider-thumb-length, 20px)) +
|
|
236
|
+
var(--ack-slider-thumb-length, 20px) / 2
|
|
237
|
+
);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.ack-slider[data-orientation="vertical"] .ack-slider-range {
|
|
241
|
+
right: 0;
|
|
242
|
+
bottom: 0;
|
|
243
|
+
left: 0;
|
|
244
|
+
height: calc(
|
|
245
|
+
var(--ack-slider-fraction) *
|
|
246
|
+
(100% - var(--ack-slider-thumb-length, 20px)) +
|
|
247
|
+
var(--ack-slider-thumb-length, 20px) / 2
|
|
248
|
+
);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.ack-slider-thumb {
|
|
252
|
+
position: absolute;
|
|
253
|
+
box-sizing: border-box;
|
|
254
|
+
border: 1px solid
|
|
255
|
+
var(--ack-line, color-mix(in srgb, currentColor 28%, transparent));
|
|
256
|
+
border-radius: 4px;
|
|
257
|
+
background: var(
|
|
258
|
+
--ack-slider-thumb,
|
|
259
|
+
var(--ack-surface-raised, color-mix(in srgb, currentColor 18%, Canvas))
|
|
260
|
+
);
|
|
261
|
+
box-shadow: 0 1px 2px color-mix(in srgb, currentColor 30%, transparent);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.ack-slider[data-orientation="horizontal"] .ack-slider-thumb {
|
|
265
|
+
top: 50%;
|
|
266
|
+
left: calc(
|
|
267
|
+
var(--ack-slider-fraction) * (100% - var(--ack-slider-thumb-length, 20px))
|
|
268
|
+
);
|
|
269
|
+
width: var(--ack-slider-thumb-length, 20px);
|
|
270
|
+
height: var(--ack-slider-thumb-thickness, 34px);
|
|
271
|
+
background-image: linear-gradient(var(--ack-lit), var(--ack-lit));
|
|
272
|
+
background-position: center;
|
|
273
|
+
background-repeat: no-repeat;
|
|
274
|
+
background-size: 2px 100%;
|
|
275
|
+
transform: translateY(-50%);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.ack-slider[data-orientation="vertical"] .ack-slider-thumb {
|
|
279
|
+
bottom: calc(
|
|
280
|
+
var(--ack-slider-fraction) * (100% - var(--ack-slider-thumb-length, 20px))
|
|
281
|
+
);
|
|
282
|
+
left: 50%;
|
|
283
|
+
width: var(--ack-slider-thumb-thickness, 34px);
|
|
284
|
+
height: var(--ack-slider-thumb-length, 20px);
|
|
285
|
+
background-image: linear-gradient(var(--ack-lit), var(--ack-lit));
|
|
286
|
+
background-position: center;
|
|
287
|
+
background-repeat: no-repeat;
|
|
288
|
+
background-size: 100% 2px;
|
|
289
|
+
transform: translateX(-50%);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.ack-slider-thumb:focus-visible {
|
|
293
|
+
outline: 2px solid var(--ack-focus-ring, var(--ack-lit));
|
|
294
|
+
outline-offset: 2px;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.ack-slider[data-disabled] .ack-slider-control {
|
|
298
|
+
cursor: default;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/* Toggle button: plain while off, filled with its tone while on, with a light
|
|
302
|
+
when its indicator asks for one */
|
|
303
|
+
|
|
304
|
+
.ack-toggle-button {
|
|
305
|
+
display: inline-flex;
|
|
306
|
+
align-items: center;
|
|
307
|
+
justify-content: center;
|
|
308
|
+
gap: 8px;
|
|
309
|
+
padding: 0 16px;
|
|
310
|
+
border: 1px solid
|
|
311
|
+
var(--ack-line, color-mix(in srgb, currentColor 28%, transparent));
|
|
312
|
+
border-radius: var(--ack-radius, 6px);
|
|
313
|
+
background: var(
|
|
314
|
+
--ack-surface,
|
|
315
|
+
color-mix(in srgb, currentColor 10%, transparent)
|
|
316
|
+
);
|
|
317
|
+
color: var(--ack-muted, color-mix(in srgb, currentColor 65%, transparent));
|
|
318
|
+
font: inherit;
|
|
319
|
+
font-size: 13px;
|
|
320
|
+
font-weight: 700;
|
|
321
|
+
letter-spacing: 0.06em;
|
|
322
|
+
text-transform: uppercase;
|
|
323
|
+
cursor: pointer;
|
|
324
|
+
touch-action: manipulation;
|
|
325
|
+
transition:
|
|
326
|
+
background var(--ack-motion, 120ms ease-out),
|
|
327
|
+
color var(--ack-motion, 120ms ease-out),
|
|
328
|
+
box-shadow var(--ack-motion, 120ms ease-out);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.ack-toggle-button-light {
|
|
332
|
+
flex: none;
|
|
333
|
+
width: 8px;
|
|
334
|
+
height: 8px;
|
|
335
|
+
border-radius: 50%;
|
|
336
|
+
background: var(
|
|
337
|
+
--ack-toggle-button-light-off,
|
|
338
|
+
color-mix(in srgb, currentColor 30%, transparent)
|
|
339
|
+
);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.ack-toggle-button[aria-pressed="true"] {
|
|
343
|
+
border-color: var(--ack-lit);
|
|
344
|
+
background: var(--ack-lit);
|
|
345
|
+
color: var(--ack-toggle-button-ink, var(--ack-lit-ink));
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.ack-toggle-button[aria-pressed="true"][data-indicator="light"] {
|
|
349
|
+
box-shadow: 0 0 14px color-mix(in srgb, var(--ack-lit) 45%, transparent);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.ack-toggle-button[aria-pressed="true"] .ack-toggle-button-light {
|
|
353
|
+
background: var(--ack-toggle-button-ink, var(--ack-lit-ink));
|
|
354
|
+
box-shadow: 0 0 6px var(--ack-toggle-button-ink, var(--ack-lit-ink));
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/* Readout: a lit value under a caption, like a hardware display */
|
|
358
|
+
|
|
359
|
+
.ack-readout {
|
|
360
|
+
display: inline-flex;
|
|
361
|
+
flex-direction: column;
|
|
362
|
+
align-items: center;
|
|
363
|
+
min-width: var(--ack-readout-min-width, 92px);
|
|
364
|
+
padding: 6px 10px;
|
|
365
|
+
border-radius: var(--ack-radius-small, 4px);
|
|
366
|
+
background: var(--ack-readout-background, #0d0f12);
|
|
367
|
+
color: var(
|
|
368
|
+
--ack-readout-text,
|
|
369
|
+
color-mix(in srgb, var(--ack-lit) 55%, #fff)
|
|
370
|
+
);
|
|
371
|
+
font-family: var(--ack-font-mono, ui-monospace, monospace);
|
|
372
|
+
font-size: 15px;
|
|
373
|
+
font-variant-numeric: tabular-nums;
|
|
374
|
+
letter-spacing: 0.06em;
|
|
375
|
+
text-shadow: 0 0 6px
|
|
376
|
+
var(
|
|
377
|
+
--ack-readout-glow,
|
|
378
|
+
color-mix(in srgb, var(--ack-lit) 55%, transparent)
|
|
379
|
+
);
|
|
380
|
+
white-space: nowrap;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.ack-readout-label {
|
|
384
|
+
color: var(
|
|
385
|
+
--ack-readout-label,
|
|
386
|
+
color-mix(in srgb, currentColor 60%, transparent)
|
|
387
|
+
);
|
|
388
|
+
font-size: 9px;
|
|
389
|
+
letter-spacing: 0.14em;
|
|
390
|
+
text-shadow: none;
|
|
391
|
+
text-transform: uppercase;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
/* Meter: a continuous bar filled to `--ack-meter-fraction`, or segments lit
|
|
395
|
+
from the bottom (vertical) or the left (horizontal) */
|
|
396
|
+
|
|
397
|
+
.ack-meter {
|
|
398
|
+
--ack-meter-fraction: 0;
|
|
399
|
+
display: flex;
|
|
400
|
+
box-sizing: border-box;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.ack-meter[data-orientation="horizontal"] {
|
|
404
|
+
width: var(--ack-meter-length, 160px);
|
|
405
|
+
height: var(--ack-meter-thickness, 10px);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.ack-meter[data-orientation="vertical"] {
|
|
409
|
+
width: var(--ack-meter-thickness, 10px);
|
|
410
|
+
height: var(--ack-meter-length, 160px);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.ack-meter-bar,
|
|
414
|
+
.ack-meter-segments {
|
|
415
|
+
display: flex;
|
|
416
|
+
flex: 1;
|
|
417
|
+
gap: var(--ack-meter-gap, 2px);
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.ack-meter[data-orientation="vertical"] .ack-meter-segments {
|
|
421
|
+
flex-direction: column-reverse;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.ack-meter-bar {
|
|
425
|
+
position: relative;
|
|
426
|
+
overflow: hidden;
|
|
427
|
+
border-radius: var(--ack-radius-small, 4px);
|
|
428
|
+
background: var(
|
|
429
|
+
--ack-meter-track,
|
|
430
|
+
var(
|
|
431
|
+
--ack-surface-raised,
|
|
432
|
+
color-mix(in srgb, currentColor 18%, transparent)
|
|
433
|
+
)
|
|
434
|
+
);
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.ack-meter-fill {
|
|
438
|
+
position: absolute;
|
|
439
|
+
background: var(--ack-lit);
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.ack-meter[data-orientation="horizontal"] .ack-meter-fill {
|
|
443
|
+
top: 0;
|
|
444
|
+
bottom: 0;
|
|
445
|
+
left: 0;
|
|
446
|
+
width: calc(var(--ack-meter-fraction) * 100%);
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.ack-meter[data-orientation="vertical"] .ack-meter-fill {
|
|
450
|
+
right: 0;
|
|
451
|
+
bottom: 0;
|
|
452
|
+
left: 0;
|
|
453
|
+
height: calc(var(--ack-meter-fraction) * 100%);
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.ack-meter-segment {
|
|
457
|
+
flex: 1;
|
|
458
|
+
border-radius: 1px;
|
|
459
|
+
background: var(
|
|
460
|
+
--ack-meter-track,
|
|
461
|
+
var(
|
|
462
|
+
--ack-surface-raised,
|
|
463
|
+
color-mix(in srgb, currentColor 18%, transparent)
|
|
464
|
+
)
|
|
465
|
+
);
|
|
466
|
+
--ack-segment-lit: var(--ack-accent, #2563c9);
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
.ack-meter-segment[data-tone="positive"] {
|
|
470
|
+
--ack-segment-lit: var(--ack-tone-positive, #1f7a45);
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
.ack-meter-segment[data-tone="warning"] {
|
|
474
|
+
--ack-segment-lit: var(--ack-tone-warning, #e08a12);
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.ack-meter-segment[data-tone="negative"] {
|
|
478
|
+
--ack-segment-lit: var(--ack-tone-negative, #c4372e);
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.ack-meter-segment[data-lit] {
|
|
482
|
+
background: var(--ack-segment-lit);
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
/* Visually hidden, still read by assistive technology */
|
|
486
|
+
|
|
487
|
+
.ack-visually-hidden {
|
|
488
|
+
position: absolute;
|
|
489
|
+
width: 1px;
|
|
490
|
+
height: 1px;
|
|
491
|
+
margin: -1px;
|
|
492
|
+
padding: 0;
|
|
493
|
+
overflow: hidden;
|
|
494
|
+
border: 0;
|
|
495
|
+
clip-path: inset(50%);
|
|
496
|
+
white-space: nowrap;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
/* Button and icon button */
|
|
500
|
+
|
|
501
|
+
.ack-button {
|
|
502
|
+
display: inline-flex;
|
|
503
|
+
align-items: center;
|
|
504
|
+
justify-content: center;
|
|
505
|
+
gap: 8px;
|
|
506
|
+
box-sizing: border-box;
|
|
507
|
+
padding: 0 16px;
|
|
508
|
+
border: 1px solid
|
|
509
|
+
var(--ack-line, color-mix(in srgb, currentColor 28%, transparent));
|
|
510
|
+
border-radius: var(--ack-radius, 6px);
|
|
511
|
+
background: var(
|
|
512
|
+
--ack-button-background,
|
|
513
|
+
var(--ack-surface, color-mix(in srgb, currentColor 10%, transparent))
|
|
514
|
+
);
|
|
515
|
+
color: inherit;
|
|
516
|
+
font: inherit;
|
|
517
|
+
font-size: 14px;
|
|
518
|
+
font-weight: 600;
|
|
519
|
+
cursor: pointer;
|
|
520
|
+
touch-action: manipulation;
|
|
521
|
+
transition:
|
|
522
|
+
background var(--ack-motion, 120ms ease-out),
|
|
523
|
+
border-color var(--ack-motion, 120ms ease-out);
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
.ack-button[data-variant="primary"] {
|
|
527
|
+
border-color: var(--ack-lit);
|
|
528
|
+
background: var(--ack-lit);
|
|
529
|
+
color: var(--ack-button-ink, var(--ack-lit-ink));
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
.ack-button[data-variant="ghost"] {
|
|
533
|
+
border-color: transparent;
|
|
534
|
+
background: transparent;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
.ack-button[data-size="large"] {
|
|
538
|
+
min-height: calc(var(--ack-target, 44px) + 8px);
|
|
539
|
+
padding: 0 24px;
|
|
540
|
+
font-size: 16px;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
.ack-button:not(:disabled, [data-variant="primary"]):hover {
|
|
544
|
+
border-color: var(--ack-lit);
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
.ack-button-icon {
|
|
548
|
+
display: inline-flex;
|
|
549
|
+
flex: none;
|
|
550
|
+
width: var(--ack-button-icon-size, 20px);
|
|
551
|
+
height: var(--ack-button-icon-size, 20px);
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
.ack-button-icon > :is(svg, img) {
|
|
555
|
+
width: 100%;
|
|
556
|
+
height: 100%;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
.ack-icon-button {
|
|
560
|
+
padding: 0;
|
|
561
|
+
aspect-ratio: 1;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
/* Switch: a track and a thumb beside its label */
|
|
565
|
+
|
|
566
|
+
.ack-switch {
|
|
567
|
+
display: inline-flex;
|
|
568
|
+
align-items: center;
|
|
569
|
+
justify-content: space-between;
|
|
570
|
+
gap: 12px;
|
|
571
|
+
box-sizing: border-box;
|
|
572
|
+
padding: 4px 0;
|
|
573
|
+
border: 0;
|
|
574
|
+
background: none;
|
|
575
|
+
color: inherit;
|
|
576
|
+
font: inherit;
|
|
577
|
+
text-align: start;
|
|
578
|
+
cursor: pointer;
|
|
579
|
+
touch-action: manipulation;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
.ack-switch-text {
|
|
583
|
+
display: flex;
|
|
584
|
+
flex-direction: column;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
.ack-switch-description {
|
|
588
|
+
color: var(--ack-muted, color-mix(in srgb, currentColor 65%, transparent));
|
|
589
|
+
font-size: 12px;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
.ack-switch-track {
|
|
593
|
+
display: inline-flex;
|
|
594
|
+
flex: none;
|
|
595
|
+
align-items: center;
|
|
596
|
+
box-sizing: border-box;
|
|
597
|
+
width: var(--ack-switch-width, 44px);
|
|
598
|
+
height: var(--ack-switch-height, 24px);
|
|
599
|
+
padding: 2px;
|
|
600
|
+
border-radius: 999px;
|
|
601
|
+
background: var(
|
|
602
|
+
--ack-switch-track,
|
|
603
|
+
var(
|
|
604
|
+
--ack-surface-raised,
|
|
605
|
+
color-mix(in srgb, currentColor 18%, transparent)
|
|
606
|
+
)
|
|
607
|
+
);
|
|
608
|
+
transition: background var(--ack-motion, 120ms ease-out);
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
.ack-switch-thumb {
|
|
612
|
+
width: calc(var(--ack-switch-height, 24px) - 4px);
|
|
613
|
+
height: calc(var(--ack-switch-height, 24px) - 4px);
|
|
614
|
+
border-radius: 50%;
|
|
615
|
+
background: var(--ack-switch-thumb, #fff);
|
|
616
|
+
box-shadow: 0 1px 2px color-mix(in srgb, currentColor 30%, transparent);
|
|
617
|
+
transition: transform var(--ack-motion, 120ms ease-out);
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
.ack-switch[data-state="on"] .ack-switch-track {
|
|
621
|
+
background: var(--ack-lit);
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
.ack-switch[data-state="on"] .ack-switch-thumb {
|
|
625
|
+
transform: translateX(
|
|
626
|
+
calc(var(--ack-switch-width, 44px) - var(--ack-switch-height, 24px))
|
|
627
|
+
);
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
.ack-switch:dir(rtl)[data-state="on"] .ack-switch-thumb {
|
|
631
|
+
transform: translateX(
|
|
632
|
+
calc(var(--ack-switch-height, 24px) - var(--ack-switch-width, 44px))
|
|
633
|
+
);
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
/* Radio group: native radios, hidden, drawn as segments or cards */
|
|
637
|
+
|
|
638
|
+
.ack-radio-group {
|
|
639
|
+
display: inline-flex;
|
|
640
|
+
box-sizing: border-box;
|
|
641
|
+
margin: 0;
|
|
642
|
+
padding: 0;
|
|
643
|
+
border: 0;
|
|
644
|
+
gap: var(--ack-radio-gap, 0);
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
.ack-radio-group[data-orientation="vertical"] {
|
|
648
|
+
flex-direction: column;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
.ack-radio-group-legend {
|
|
652
|
+
float: inline-start;
|
|
653
|
+
padding: 0 8px 0 0;
|
|
654
|
+
color: var(--ack-muted, color-mix(in srgb, currentColor 65%, transparent));
|
|
655
|
+
font-size: 10px;
|
|
656
|
+
font-weight: 700;
|
|
657
|
+
letter-spacing: 0.1em;
|
|
658
|
+
text-transform: uppercase;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
.ack-radio {
|
|
662
|
+
position: relative;
|
|
663
|
+
display: inline-flex;
|
|
664
|
+
align-items: center;
|
|
665
|
+
justify-content: center;
|
|
666
|
+
gap: 8px;
|
|
667
|
+
box-sizing: border-box;
|
|
668
|
+
padding: 0 14px;
|
|
669
|
+
border: 1px solid
|
|
670
|
+
var(--ack-line, color-mix(in srgb, currentColor 28%, transparent));
|
|
671
|
+
background: var(
|
|
672
|
+
--ack-radio-background,
|
|
673
|
+
var(--ack-surface, color-mix(in srgb, currentColor 10%, transparent))
|
|
674
|
+
);
|
|
675
|
+
color: var(--ack-muted, color-mix(in srgb, currentColor 65%, transparent));
|
|
676
|
+
font-size: 13px;
|
|
677
|
+
font-weight: 600;
|
|
678
|
+
cursor: pointer;
|
|
679
|
+
touch-action: manipulation;
|
|
680
|
+
transition:
|
|
681
|
+
background var(--ack-motion, 120ms ease-out),
|
|
682
|
+
color var(--ack-motion, 120ms ease-out);
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
.ack-radio-input {
|
|
686
|
+
position: absolute;
|
|
687
|
+
inset: 0;
|
|
688
|
+
margin: 0;
|
|
689
|
+
opacity: 0;
|
|
690
|
+
cursor: inherit;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
.ack-radio:has(:focus-visible) {
|
|
694
|
+
z-index: 1;
|
|
695
|
+
outline: 2px solid var(--ack-focus-ring, var(--ack-lit));
|
|
696
|
+
outline-offset: 2px;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
.ack-radio[data-state="on"] {
|
|
700
|
+
border-color: var(--ack-lit);
|
|
701
|
+
background: var(--ack-lit);
|
|
702
|
+
color: var(--ack-radio-ink, var(--ack-lit-ink));
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
.ack-radio-group[data-appearance="segmented"] .ack-radio {
|
|
706
|
+
margin-inline-start: -1px;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
.ack-radio-group[data-appearance="segmented"] .ack-radio:first-of-type {
|
|
710
|
+
margin-inline-start: 0;
|
|
711
|
+
border-start-start-radius: var(--ack-radius, 6px);
|
|
712
|
+
border-end-start-radius: var(--ack-radius, 6px);
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
.ack-radio-group[data-appearance="segmented"] .ack-radio:last-of-type {
|
|
716
|
+
border-start-end-radius: var(--ack-radius, 6px);
|
|
717
|
+
border-end-end-radius: var(--ack-radius, 6px);
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
.ack-radio-group[data-appearance="segmented"][data-orientation="vertical"]
|
|
721
|
+
.ack-radio {
|
|
722
|
+
margin-inline-start: 0;
|
|
723
|
+
margin-block-start: -1px;
|
|
724
|
+
border-radius: 0;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
.ack-radio-group[data-appearance="cards"] {
|
|
728
|
+
gap: var(--ack-radio-gap, 8px);
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
.ack-radio-group[data-appearance="cards"] .ack-radio {
|
|
732
|
+
justify-content: flex-start;
|
|
733
|
+
padding: 12px 16px;
|
|
734
|
+
border-radius: var(--ack-radius, 6px);
|
|
735
|
+
text-align: start;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
.ack-radio-icon {
|
|
739
|
+
display: inline-flex;
|
|
740
|
+
flex: none;
|
|
741
|
+
width: var(--ack-button-icon-size, 20px);
|
|
742
|
+
height: var(--ack-button-icon-size, 20px);
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
.ack-radio-text {
|
|
746
|
+
display: flex;
|
|
747
|
+
flex-direction: column;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
.ack-radio-description {
|
|
751
|
+
font-size: 12px;
|
|
752
|
+
font-weight: 400;
|
|
753
|
+
opacity: 0.8;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
.ack-radio-group[data-appearance="segmented"] .ack-radio-description {
|
|
757
|
+
display: none;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
/* Toolbar */
|
|
761
|
+
|
|
762
|
+
.ack-toolbar {
|
|
763
|
+
display: flex;
|
|
764
|
+
flex-wrap: wrap;
|
|
765
|
+
align-items: center;
|
|
766
|
+
gap: var(--ack-toolbar-gap, 8px);
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
.ack-toolbar[aria-orientation="vertical"] {
|
|
770
|
+
flex-direction: column;
|
|
771
|
+
align-items: stretch;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
/* Dialog: a native modal <dialog> around one panel. Its backdrop fills what
|
|
775
|
+
is behind it; the page behind stops scrolling while it is open. */
|
|
776
|
+
|
|
777
|
+
:root:has(dialog.ack-dialog[open]) {
|
|
778
|
+
overflow: hidden;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
.ack-dialog {
|
|
782
|
+
box-sizing: border-box;
|
|
783
|
+
max-width: min(var(--ack-dialog-width, 32rem), calc(100% - 2rem));
|
|
784
|
+
max-height: calc(100% - 2rem);
|
|
785
|
+
margin: auto;
|
|
786
|
+
padding: 0;
|
|
787
|
+
border: 1px solid
|
|
788
|
+
var(--ack-line, color-mix(in srgb, currentColor 28%, transparent));
|
|
789
|
+
border-radius: var(--ack-radius, 6px);
|
|
790
|
+
background: var(--ack-dialog-background, Canvas);
|
|
791
|
+
color: var(--ack-dialog-text, CanvasText);
|
|
792
|
+
opacity: 0;
|
|
793
|
+
transform: translateY(8px);
|
|
794
|
+
transition:
|
|
795
|
+
opacity var(--ack-motion, 120ms ease-out),
|
|
796
|
+
transform var(--ack-motion, 120ms ease-out),
|
|
797
|
+
overlay var(--ack-motion, 120ms ease-out) allow-discrete,
|
|
798
|
+
display var(--ack-motion, 120ms ease-out) allow-discrete;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
.ack-dialog[open] {
|
|
802
|
+
opacity: 1;
|
|
803
|
+
transform: none;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
@starting-style {
|
|
807
|
+
.ack-dialog[open] {
|
|
808
|
+
opacity: 0;
|
|
809
|
+
transform: translateY(8px);
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
.ack-dialog::backdrop {
|
|
814
|
+
background: var(--ack-dialog-backdrop, rgb(0 0 0 / 0.5));
|
|
815
|
+
opacity: 0;
|
|
816
|
+
transition:
|
|
817
|
+
opacity var(--ack-motion, 120ms ease-out),
|
|
818
|
+
overlay var(--ack-motion, 120ms ease-out) allow-discrete,
|
|
819
|
+
display var(--ack-motion, 120ms ease-out) allow-discrete;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
.ack-dialog[open]::backdrop {
|
|
823
|
+
opacity: 1;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
@starting-style {
|
|
827
|
+
.ack-dialog[open]::backdrop {
|
|
828
|
+
opacity: 0;
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
.ack-dialog[data-placement="bottom"],
|
|
833
|
+
.ack-dialog[data-placement="side"] {
|
|
834
|
+
max-width: 100%;
|
|
835
|
+
max-height: 100%;
|
|
836
|
+
border-radius: 0;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
.ack-dialog[data-placement="bottom"] {
|
|
840
|
+
width: 100%;
|
|
841
|
+
margin: auto 0 0;
|
|
842
|
+
border-start-start-radius: var(--ack-radius, 6px);
|
|
843
|
+
border-start-end-radius: var(--ack-radius, 6px);
|
|
844
|
+
transform: translateY(100%);
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
.ack-dialog[data-placement="side"] {
|
|
848
|
+
height: 100%;
|
|
849
|
+
margin: 0;
|
|
850
|
+
margin-inline-start: auto;
|
|
851
|
+
transform: translateX(100%);
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
.ack-dialog[data-placement="side"]:dir(rtl) {
|
|
855
|
+
transform: translateX(-100%);
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
/* A sheet: the bottom edge when narrow, the inline end when wide */
|
|
859
|
+
.ack-dialog[data-placement="sheet"] {
|
|
860
|
+
max-width: 100%;
|
|
861
|
+
max-height: 100%;
|
|
862
|
+
width: 100%;
|
|
863
|
+
margin: auto 0 0;
|
|
864
|
+
border-radius: var(--ack-radius, 6px) var(--ack-radius, 6px) 0 0;
|
|
865
|
+
transform: translateY(100%);
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
@media (min-width: 40rem) {
|
|
869
|
+
.ack-dialog[data-placement="sheet"] {
|
|
870
|
+
width: var(--ack-dialog-width, 32rem);
|
|
871
|
+
height: 100%;
|
|
872
|
+
margin: 0;
|
|
873
|
+
margin-inline-start: auto;
|
|
874
|
+
border-radius: 0;
|
|
875
|
+
transform: translateX(100%);
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
.ack-dialog[data-placement="sheet"]:dir(rtl) {
|
|
879
|
+
transform: translateX(-100%);
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
.ack-dialog[data-placement="bottom"][open],
|
|
884
|
+
.ack-dialog[data-placement="side"][open],
|
|
885
|
+
.ack-dialog[data-placement="sheet"][open] {
|
|
886
|
+
transform: none;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
@starting-style {
|
|
890
|
+
.ack-dialog[data-placement="bottom"][open],
|
|
891
|
+
.ack-dialog[data-placement="sheet"][open] {
|
|
892
|
+
transform: translateY(100%);
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
@starting-style {
|
|
897
|
+
.ack-dialog[data-placement="side"][open] {
|
|
898
|
+
transform: translateX(100%);
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
.ack-dialog[data-placement="side"][open]:dir(rtl) {
|
|
902
|
+
transform: translateX(-100%);
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
@media (min-width: 40rem) {
|
|
906
|
+
.ack-dialog[data-placement="sheet"][open] {
|
|
907
|
+
transform: translateX(100%);
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
.ack-dialog[data-placement="sheet"][open]:dir(rtl) {
|
|
911
|
+
transform: translateX(-100%);
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
.ack-dialog-panel {
|
|
917
|
+
display: flex;
|
|
918
|
+
flex-direction: column;
|
|
919
|
+
gap: 12px;
|
|
920
|
+
box-sizing: border-box;
|
|
921
|
+
min-height: 100%;
|
|
922
|
+
padding: var(--ack-dialog-padding, 20px);
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
.ack-dialog-header {
|
|
926
|
+
display: flex;
|
|
927
|
+
align-items: center;
|
|
928
|
+
justify-content: space-between;
|
|
929
|
+
gap: 12px;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
.ack-dialog-title {
|
|
933
|
+
margin: 0;
|
|
934
|
+
font-size: 18px;
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
.ack-dialog-description {
|
|
938
|
+
margin: 0;
|
|
939
|
+
color: var(--ack-muted, color-mix(in srgb, currentColor 65%, transparent));
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
.ack-dialog-body {
|
|
943
|
+
flex: 1;
|
|
944
|
+
overflow: auto;
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
.ack-dialog-actions {
|
|
948
|
+
display: flex;
|
|
949
|
+
flex-wrap: wrap;
|
|
950
|
+
justify-content: flex-end;
|
|
951
|
+
gap: 8px;
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
.ack-dialog-close {
|
|
955
|
+
display: inline-flex;
|
|
956
|
+
align-items: center;
|
|
957
|
+
justify-content: center;
|
|
958
|
+
flex: none;
|
|
959
|
+
border: 0;
|
|
960
|
+
border-radius: var(--ack-radius, 6px);
|
|
961
|
+
background: transparent;
|
|
962
|
+
color: inherit;
|
|
963
|
+
cursor: pointer;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
.ack-dialog-close-icon {
|
|
967
|
+
display: inline-flex;
|
|
968
|
+
width: 16px;
|
|
969
|
+
height: 16px;
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
.ack-dialog-close-icon > svg {
|
|
973
|
+
width: 100%;
|
|
974
|
+
height: 100%;
|
|
975
|
+
fill: none;
|
|
976
|
+
stroke: currentColor;
|
|
977
|
+
stroke-width: 2;
|
|
978
|
+
stroke-linecap: round;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
/* Anchored popovers: a menu and a tooltip sit in the top layer against
|
|
982
|
+
their trigger by CSS anchor positioning (the components link them by
|
|
983
|
+
inline anchor names). `data-side` picks the side, `data-align` the line;
|
|
984
|
+
they flip to the other side when the viewport has no room, and shift
|
|
985
|
+
inside it when they would overflow it. */
|
|
986
|
+
|
|
987
|
+
:where(.ack-menu, .ack-tooltip) {
|
|
988
|
+
inset: auto;
|
|
989
|
+
margin: 0;
|
|
990
|
+
position-try-fallbacks:
|
|
991
|
+
flip-block,
|
|
992
|
+
flip-inline,
|
|
993
|
+
flip-block flip-inline;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
:where(.ack-menu, .ack-tooltip)[data-side="block-end"] {
|
|
997
|
+
margin-block-start: var(--ack-popover-offset);
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
:where(.ack-menu, .ack-tooltip)[data-side="block-start"] {
|
|
1001
|
+
margin-block-end: var(--ack-popover-offset);
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
:where(.ack-menu, .ack-tooltip)[data-side="inline-end"] {
|
|
1005
|
+
margin-inline-start: var(--ack-popover-offset);
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
:where(.ack-menu, .ack-tooltip)[data-side="inline-start"] {
|
|
1009
|
+
margin-inline-end: var(--ack-popover-offset);
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
:where(.ack-menu, .ack-tooltip)[data-side="block-end"][data-align="start"] {
|
|
1013
|
+
position-area: block-end span-inline-end;
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
:where(.ack-menu, .ack-tooltip)[data-side="block-end"][data-align="center"] {
|
|
1017
|
+
position-area: block-end;
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
:where(.ack-menu, .ack-tooltip)[data-side="block-end"][data-align="end"] {
|
|
1021
|
+
position-area: block-end span-inline-start;
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
:where(.ack-menu, .ack-tooltip)[data-side="block-start"][data-align="start"] {
|
|
1025
|
+
position-area: block-start span-inline-end;
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
:where(
|
|
1029
|
+
.ack-menu,
|
|
1030
|
+
.ack-tooltip
|
|
1031
|
+
)[data-side="block-start"][data-align="center"] {
|
|
1032
|
+
position-area: block-start;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
:where(.ack-menu, .ack-tooltip)[data-side="block-start"][data-align="end"] {
|
|
1036
|
+
position-area: block-start span-inline-start;
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
:where(.ack-menu, .ack-tooltip)[data-side="inline-end"][data-align="start"] {
|
|
1040
|
+
position-area: inline-end span-block-end;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
:where(.ack-menu, .ack-tooltip)[data-side="inline-end"][data-align="center"] {
|
|
1044
|
+
position-area: inline-end;
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
:where(.ack-menu, .ack-tooltip)[data-side="inline-end"][data-align="end"] {
|
|
1048
|
+
position-area: inline-end span-block-start;
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
:where(
|
|
1052
|
+
.ack-menu,
|
|
1053
|
+
.ack-tooltip
|
|
1054
|
+
)[data-side="inline-start"][data-align="start"] {
|
|
1055
|
+
position-area: inline-start span-block-end;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
:where(
|
|
1059
|
+
.ack-menu,
|
|
1060
|
+
.ack-tooltip
|
|
1061
|
+
)[data-side="inline-start"][data-align="center"] {
|
|
1062
|
+
position-area: inline-start;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
:where(.ack-menu, .ack-tooltip)[data-side="inline-start"][data-align="end"] {
|
|
1066
|
+
position-area: inline-start span-block-start;
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
/* Without anchor positioning (or its polyfill), the popover keeps the
|
|
1070
|
+
browser's place: the middle of the viewport. */
|
|
1071
|
+
@supports not (anchor-name: --ack-anchor) {
|
|
1072
|
+
:where(.ack-menu, .ack-tooltip)[data-side] {
|
|
1073
|
+
inset: 0;
|
|
1074
|
+
margin: auto;
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
/* Menu button and menu */
|
|
1079
|
+
|
|
1080
|
+
.ack-menu-button-chevron {
|
|
1081
|
+
display: inline-flex;
|
|
1082
|
+
width: 12px;
|
|
1083
|
+
height: 12px;
|
|
1084
|
+
transition: transform var(--ack-motion, 120ms ease-out);
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
.ack-menu-button-chevron > svg {
|
|
1088
|
+
width: 100%;
|
|
1089
|
+
height: 100%;
|
|
1090
|
+
fill: none;
|
|
1091
|
+
stroke: currentColor;
|
|
1092
|
+
stroke-width: 2;
|
|
1093
|
+
stroke-linecap: round;
|
|
1094
|
+
stroke-linejoin: round;
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
.ack-menu-button[aria-expanded="true"] .ack-menu-button-chevron {
|
|
1098
|
+
transform: rotate(180deg);
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
.ack-menu {
|
|
1102
|
+
--ack-popover-offset: var(--ack-menu-offset, 4px);
|
|
1103
|
+
|
|
1104
|
+
box-sizing: border-box;
|
|
1105
|
+
min-inline-size: var(--ack-menu-min-width, 10rem);
|
|
1106
|
+
min-inline-size: max(var(--ack-menu-min-width, 10rem), anchor-size(inline));
|
|
1107
|
+
max-inline-size: calc(100vw - 16px);
|
|
1108
|
+
max-block-size: min(var(--ack-menu-max-height, 24rem), 100%);
|
|
1109
|
+
overflow-y: auto;
|
|
1110
|
+
overscroll-behavior: contain;
|
|
1111
|
+
padding: 4px;
|
|
1112
|
+
border: 1px solid
|
|
1113
|
+
var(--ack-line, color-mix(in srgb, currentColor 28%, transparent));
|
|
1114
|
+
border-radius: var(--ack-radius, 6px);
|
|
1115
|
+
background: var(--ack-menu-background, Canvas);
|
|
1116
|
+
color: var(--ack-menu-text, CanvasText);
|
|
1117
|
+
box-shadow: var(--ack-menu-shadow, 0 6px 24px rgb(0 0 0 / 0.18));
|
|
1118
|
+
opacity: 0;
|
|
1119
|
+
transition:
|
|
1120
|
+
opacity var(--ack-motion, 120ms ease-out),
|
|
1121
|
+
overlay var(--ack-motion, 120ms ease-out) allow-discrete,
|
|
1122
|
+
display var(--ack-motion, 120ms ease-out) allow-discrete;
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
.ack-menu:popover-open {
|
|
1126
|
+
opacity: 1;
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
@starting-style {
|
|
1130
|
+
.ack-menu:popover-open {
|
|
1131
|
+
opacity: 0;
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
.ack-menu:focus {
|
|
1136
|
+
outline: none;
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
.ack-menu-item {
|
|
1140
|
+
display: flex;
|
|
1141
|
+
align-items: center;
|
|
1142
|
+
gap: 8px;
|
|
1143
|
+
box-sizing: border-box;
|
|
1144
|
+
min-block-size: var(--ack-target, 44px);
|
|
1145
|
+
padding-inline: 8px 12px;
|
|
1146
|
+
border-radius: var(--ack-radius-small, 4px);
|
|
1147
|
+
cursor: default;
|
|
1148
|
+
user-select: none;
|
|
1149
|
+
-webkit-user-select: none;
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
/* A mouse focuses the item it moves over, so focus is the highlight. */
|
|
1153
|
+
.ack-menu-item:focus {
|
|
1154
|
+
outline: none;
|
|
1155
|
+
background: var(
|
|
1156
|
+
--ack-menu-item-focus,
|
|
1157
|
+
color-mix(in srgb, currentColor 12%, transparent)
|
|
1158
|
+
);
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
.ack-menu-item:focus-visible {
|
|
1162
|
+
outline: 2px solid var(--ack-focus-ring, var(--ack-accent, #2563c9));
|
|
1163
|
+
outline-offset: -2px;
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
.ack-menu-item[aria-disabled="true"] {
|
|
1167
|
+
opacity: 0.45;
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
.ack-menu-item-indicator,
|
|
1171
|
+
.ack-menu-item-icon {
|
|
1172
|
+
display: inline-flex;
|
|
1173
|
+
flex: none;
|
|
1174
|
+
width: 16px;
|
|
1175
|
+
height: 16px;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
.ack-menu-item-indicator > svg {
|
|
1179
|
+
width: 100%;
|
|
1180
|
+
height: 100%;
|
|
1181
|
+
fill: none;
|
|
1182
|
+
stroke: currentColor;
|
|
1183
|
+
stroke-width: 2;
|
|
1184
|
+
stroke-linecap: round;
|
|
1185
|
+
stroke-linejoin: round;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
.ack-menu-item[data-kind="radio"] .ack-menu-item-indicator > svg {
|
|
1189
|
+
fill: currentColor;
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
.ack-menu-item[aria-checked="false"] .ack-menu-item-indicator {
|
|
1193
|
+
visibility: hidden;
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
.ack-menu-item-icon > svg {
|
|
1197
|
+
width: 100%;
|
|
1198
|
+
height: 100%;
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
.ack-menu-item-label {
|
|
1202
|
+
flex: 1;
|
|
1203
|
+
min-inline-size: 0;
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
.ack-menu-group-label {
|
|
1207
|
+
padding: 8px 12px 4px;
|
|
1208
|
+
font-size: 12px;
|
|
1209
|
+
color: var(--ack-muted, color-mix(in srgb, currentColor 65%, transparent));
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
.ack-menu-separator {
|
|
1213
|
+
block-size: 1px;
|
|
1214
|
+
margin: 4px 0;
|
|
1215
|
+
background: var(
|
|
1216
|
+
--ack-line,
|
|
1217
|
+
color-mix(in srgb, currentColor 28%, transparent)
|
|
1218
|
+
);
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
/* Tooltip: short text above its trigger, in the page's colours inverted. */
|
|
1222
|
+
|
|
1223
|
+
.ack-tooltip {
|
|
1224
|
+
--ack-popover-offset: var(--ack-tooltip-offset, 6px);
|
|
1225
|
+
|
|
1226
|
+
box-sizing: border-box;
|
|
1227
|
+
max-inline-size: min(
|
|
1228
|
+
var(--ack-tooltip-max-width, 18rem),
|
|
1229
|
+
calc(100vw - 16px)
|
|
1230
|
+
);
|
|
1231
|
+
padding: 4px 8px;
|
|
1232
|
+
/* Transparent, until forced colours draw it. */
|
|
1233
|
+
border: 1px solid transparent;
|
|
1234
|
+
border-radius: var(--ack-radius-small, 4px);
|
|
1235
|
+
background: var(--ack-tooltip-background, CanvasText);
|
|
1236
|
+
color: var(--ack-tooltip-text, Canvas);
|
|
1237
|
+
font-size: 13px;
|
|
1238
|
+
line-height: 1.35;
|
|
1239
|
+
overflow: visible;
|
|
1240
|
+
overflow-wrap: anywhere;
|
|
1241
|
+
opacity: 0;
|
|
1242
|
+
transition:
|
|
1243
|
+
opacity var(--ack-motion, 120ms ease-out),
|
|
1244
|
+
overlay var(--ack-motion, 120ms ease-out) allow-discrete,
|
|
1245
|
+
display var(--ack-motion, 120ms ease-out) allow-discrete;
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
.ack-tooltip:popover-open {
|
|
1249
|
+
opacity: 1;
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
@starting-style {
|
|
1253
|
+
.ack-tooltip:popover-open {
|
|
1254
|
+
opacity: 0;
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
/* Toaster: a manual popover at an edge of the viewport, holding a list of
|
|
1259
|
+
toasts. Only the toasts take the pointer. */
|
|
1260
|
+
|
|
1261
|
+
.ack-toaster {
|
|
1262
|
+
box-sizing: border-box;
|
|
1263
|
+
inset: auto;
|
|
1264
|
+
inline-size: min(
|
|
1265
|
+
var(--ack-toast-width, 24rem),
|
|
1266
|
+
calc(100vw - 2 * var(--ack-toaster-inset, 16px))
|
|
1267
|
+
);
|
|
1268
|
+
margin: 0;
|
|
1269
|
+
padding: 0;
|
|
1270
|
+
border: 0;
|
|
1271
|
+
background: transparent;
|
|
1272
|
+
color: inherit;
|
|
1273
|
+
overflow: visible;
|
|
1274
|
+
pointer-events: none;
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
.ack-toaster:focus-visible {
|
|
1278
|
+
outline: 2px solid var(--ack-focus-ring, var(--ack-accent, #2563c9));
|
|
1279
|
+
outline-offset: 4px;
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
.ack-toaster[data-position^="top"] {
|
|
1283
|
+
top: max(var(--ack-toaster-inset, 16px), env(safe-area-inset-top, 0px));
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
.ack-toaster[data-position^="bottom"] {
|
|
1287
|
+
bottom: max(
|
|
1288
|
+
var(--ack-toaster-inset, 16px),
|
|
1289
|
+
env(safe-area-inset-bottom, 0px)
|
|
1290
|
+
);
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
.ack-toaster[data-position$="-start"] {
|
|
1294
|
+
left: max(var(--ack-toaster-inset, 16px), env(safe-area-inset-left, 0px));
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
.ack-toaster[data-position$="-end"] {
|
|
1298
|
+
right: max(var(--ack-toaster-inset, 16px), env(safe-area-inset-right, 0px));
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
.ack-toaster[data-position$="-start"]:dir(rtl) {
|
|
1302
|
+
right: max(var(--ack-toaster-inset, 16px), env(safe-area-inset-right, 0px));
|
|
1303
|
+
left: auto;
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
.ack-toaster[data-position$="-end"]:dir(rtl) {
|
|
1307
|
+
left: max(var(--ack-toaster-inset, 16px), env(safe-area-inset-left, 0px));
|
|
1308
|
+
right: auto;
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
.ack-toaster[data-position$="-center"] {
|
|
1312
|
+
right: 0;
|
|
1313
|
+
left: 0;
|
|
1314
|
+
margin-inline: auto;
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
.ack-toaster-list {
|
|
1318
|
+
display: flex;
|
|
1319
|
+
flex-direction: column;
|
|
1320
|
+
gap: var(--ack-toast-gap, 8px);
|
|
1321
|
+
margin: 0;
|
|
1322
|
+
padding: 0;
|
|
1323
|
+
list-style: none;
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
.ack-toast {
|
|
1327
|
+
--ack-toast-accent: var(--ack-accent, #2563c9);
|
|
1328
|
+
--ack-toast-shift: 8px;
|
|
1329
|
+
|
|
1330
|
+
display: flex;
|
|
1331
|
+
align-items: center;
|
|
1332
|
+
gap: 8px;
|
|
1333
|
+
padding-block: 4px;
|
|
1334
|
+
padding-inline: 12px 4px;
|
|
1335
|
+
border: 1px solid
|
|
1336
|
+
var(--ack-line, color-mix(in srgb, currentColor 28%, transparent));
|
|
1337
|
+
border-inline-start: 4px solid var(--ack-toast-accent);
|
|
1338
|
+
border-radius: var(--ack-radius, 6px);
|
|
1339
|
+
background: var(--ack-toast-background, Canvas);
|
|
1340
|
+
color: var(--ack-toast-text, CanvasText);
|
|
1341
|
+
box-shadow: var(--ack-toast-shadow, 0 6px 24px rgb(0 0 0 / 0.18));
|
|
1342
|
+
pointer-events: auto;
|
|
1343
|
+
transition:
|
|
1344
|
+
opacity var(--ack-motion, 120ms ease-out),
|
|
1345
|
+
transform var(--ack-motion, 120ms ease-out);
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
.ack-toaster[data-position^="top"] .ack-toast {
|
|
1349
|
+
--ack-toast-shift: -8px;
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
.ack-toast[data-tone="positive"] {
|
|
1353
|
+
--ack-toast-accent: var(--ack-tone-positive, #1f7a45);
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
.ack-toast[data-tone="warning"] {
|
|
1357
|
+
--ack-toast-accent: var(--ack-tone-warning, #e08a12);
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
.ack-toast[data-tone="negative"] {
|
|
1361
|
+
--ack-toast-accent: var(--ack-tone-negative, #c4372e);
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
@starting-style {
|
|
1365
|
+
.ack-toast {
|
|
1366
|
+
opacity: 0;
|
|
1367
|
+
transform: translateY(var(--ack-toast-shift));
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
.ack-toast[data-state="closing"] {
|
|
1372
|
+
opacity: 0;
|
|
1373
|
+
transform: translateY(var(--ack-toast-shift));
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
/* Over the focused control, toasts fade until hovered, so focus stays in
|
|
1377
|
+
sight. */
|
|
1378
|
+
.ack-toaster[data-obscuring]
|
|
1379
|
+
.ack-toast[data-state="open"]:not(:hover, :focus-within) {
|
|
1380
|
+
opacity: var(--ack-toast-obscuring-opacity, 0.2);
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
.ack-toast-text {
|
|
1384
|
+
flex: 1;
|
|
1385
|
+
min-inline-size: 0;
|
|
1386
|
+
padding-block: 6px;
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
.ack-toast-title,
|
|
1390
|
+
.ack-toast-description {
|
|
1391
|
+
margin: 0;
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
.ack-toast-title {
|
|
1395
|
+
font-weight: 600;
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
.ack-toast-description {
|
|
1399
|
+
color: var(--ack-muted, color-mix(in srgb, currentColor 65%, transparent));
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
.ack-toast-close .ack-button-icon > svg {
|
|
1403
|
+
width: 16px;
|
|
1404
|
+
height: 16px;
|
|
1405
|
+
fill: none;
|
|
1406
|
+
stroke: currentColor;
|
|
1407
|
+
stroke-width: 2;
|
|
1408
|
+
stroke-linecap: round;
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
/* Tabs: a row (or a column) of tabs over their panels. The selected tab
|
|
1412
|
+
carries a bar in its tone along the panel's edge, besides its text
|
|
1413
|
+
colour. */
|
|
1414
|
+
|
|
1415
|
+
.ack-tabs {
|
|
1416
|
+
display: flex;
|
|
1417
|
+
flex-direction: column;
|
|
1418
|
+
gap: var(--ack-tabs-gap, 12px);
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
.ack-tabs[data-orientation="vertical"] {
|
|
1422
|
+
flex-direction: row;
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
.ack-tab-list {
|
|
1426
|
+
display: flex;
|
|
1427
|
+
gap: 2px;
|
|
1428
|
+
overflow: auto hidden;
|
|
1429
|
+
scrollbar-width: thin;
|
|
1430
|
+
border-block-end: 1px solid
|
|
1431
|
+
var(--ack-line, color-mix(in srgb, currentColor 28%, transparent));
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
.ack-tab-list:focus {
|
|
1435
|
+
outline: none;
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
.ack-tab-list[data-orientation="vertical"] {
|
|
1439
|
+
flex: none;
|
|
1440
|
+
flex-direction: column;
|
|
1441
|
+
overflow: visible auto;
|
|
1442
|
+
border-block-end: 0;
|
|
1443
|
+
border-inline-end: 1px solid
|
|
1444
|
+
var(--ack-line, color-mix(in srgb, currentColor 28%, transparent));
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
.ack-tab {
|
|
1448
|
+
position: relative;
|
|
1449
|
+
display: inline-flex;
|
|
1450
|
+
flex: none;
|
|
1451
|
+
align-items: center;
|
|
1452
|
+
justify-content: center;
|
|
1453
|
+
gap: 8px;
|
|
1454
|
+
box-sizing: border-box;
|
|
1455
|
+
min-inline-size: var(--ack-target, 44px);
|
|
1456
|
+
min-block-size: var(--ack-target, 44px);
|
|
1457
|
+
padding: 0 16px;
|
|
1458
|
+
border: 0;
|
|
1459
|
+
background: none;
|
|
1460
|
+
color: var(--ack-muted, color-mix(in srgb, currentColor 65%, transparent));
|
|
1461
|
+
font: inherit;
|
|
1462
|
+
font-size: 14px;
|
|
1463
|
+
font-weight: 600;
|
|
1464
|
+
white-space: nowrap;
|
|
1465
|
+
cursor: pointer;
|
|
1466
|
+
touch-action: manipulation;
|
|
1467
|
+
transition: color var(--ack-motion, 120ms ease-out);
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
.ack-tab::after {
|
|
1471
|
+
position: absolute;
|
|
1472
|
+
inset-inline: 8px;
|
|
1473
|
+
inset-block-end: 0;
|
|
1474
|
+
block-size: var(--ack-tab-indicator-thickness, 3px);
|
|
1475
|
+
border-radius: var(--ack-tab-indicator-thickness, 3px);
|
|
1476
|
+
background: transparent;
|
|
1477
|
+
content: "";
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
.ack-tab-list[data-orientation="vertical"] .ack-tab {
|
|
1481
|
+
justify-content: flex-start;
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1484
|
+
.ack-tab-list[data-orientation="vertical"] .ack-tab::after {
|
|
1485
|
+
inset-block: 8px;
|
|
1486
|
+
inset-inline: auto 0;
|
|
1487
|
+
inline-size: var(--ack-tab-indicator-thickness, 3px);
|
|
1488
|
+
block-size: auto;
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
.ack-tab:is(:hover, [aria-selected="true"]):not([aria-disabled="true"]) {
|
|
1492
|
+
color: inherit;
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1495
|
+
.ack-tab[aria-selected="true"]::after {
|
|
1496
|
+
background: var(--ack-tab-indicator, var(--ack-lit));
|
|
1497
|
+
}
|
|
1498
|
+
|
|
1499
|
+
.ack-tab:focus-visible {
|
|
1500
|
+
outline: 2px solid var(--ack-focus-ring, var(--ack-lit));
|
|
1501
|
+
outline-offset: -2px;
|
|
1502
|
+
border-radius: var(--ack-radius-small, 4px);
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
.ack-tab[aria-disabled="true"] {
|
|
1506
|
+
opacity: 0.45;
|
|
1507
|
+
cursor: default;
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
.ack-tab-icon {
|
|
1511
|
+
display: inline-flex;
|
|
1512
|
+
flex: none;
|
|
1513
|
+
width: var(--ack-button-icon-size, 20px);
|
|
1514
|
+
height: var(--ack-button-icon-size, 20px);
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
.ack-tab-icon > :is(svg, img) {
|
|
1518
|
+
width: 100%;
|
|
1519
|
+
height: 100%;
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
.ack-tab-panel {
|
|
1523
|
+
flex: 1;
|
|
1524
|
+
min-inline-size: 0;
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
.ack-tab-panel:focus-visible {
|
|
1528
|
+
outline: 2px solid var(--ack-focus-ring, var(--ack-lit));
|
|
1529
|
+
outline-offset: 2px;
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
/* Progress ring: an arc filled clockwise from twelve o'clock to
|
|
1533
|
+
`--ack-progress-fraction`, which the component sets from 0 to 1; a turning
|
|
1534
|
+
quarter while indeterminate. */
|
|
1535
|
+
|
|
1536
|
+
.ack-progress-ring {
|
|
1537
|
+
--ack-progress-fraction: 0;
|
|
1538
|
+
display: inline-grid;
|
|
1539
|
+
place-items: center;
|
|
1540
|
+
inline-size: var(--ack-progress-ring-size, 48px);
|
|
1541
|
+
block-size: var(--ack-progress-ring-size, 48px);
|
|
1542
|
+
vertical-align: middle;
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
.ack-progress-ring-dial {
|
|
1546
|
+
grid-area: 1 / 1;
|
|
1547
|
+
inline-size: 100%;
|
|
1548
|
+
block-size: 100%;
|
|
1549
|
+
overflow: visible;
|
|
1550
|
+
transform: rotate(-90deg);
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1553
|
+
.ack-progress-ring-track,
|
|
1554
|
+
.ack-progress-ring-indicator {
|
|
1555
|
+
fill: none;
|
|
1556
|
+
stroke-width: var(--ack-progress-ring-thickness, 4);
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
.ack-progress-ring-track {
|
|
1560
|
+
stroke: var(
|
|
1561
|
+
--ack-progress-ring-track,
|
|
1562
|
+
var(
|
|
1563
|
+
--ack-surface-raised,
|
|
1564
|
+
color-mix(in srgb, currentColor 18%, transparent)
|
|
1565
|
+
)
|
|
1566
|
+
);
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
.ack-progress-ring-indicator {
|
|
1570
|
+
stroke: var(--ack-lit);
|
|
1571
|
+
stroke-dasharray: var(--ack-progress-fraction) 1;
|
|
1572
|
+
transition: stroke-dasharray var(--ack-motion, 120ms ease-out);
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1575
|
+
.ack-progress-ring[data-state="indeterminate"] .ack-progress-ring-indicator {
|
|
1576
|
+
stroke-dasharray: 0.25 1;
|
|
1577
|
+
stroke-linecap: round;
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1580
|
+
.ack-progress-ring[data-state="indeterminate"] .ack-progress-ring-dial {
|
|
1581
|
+
animation: ack-progress-ring-turn 1s linear infinite;
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
@keyframes ack-progress-ring-turn {
|
|
1585
|
+
from {
|
|
1586
|
+
transform: rotate(-90deg);
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
to {
|
|
1590
|
+
transform: rotate(270deg);
|
|
1591
|
+
}
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
.ack-progress-ring-value {
|
|
1595
|
+
grid-area: 1 / 1;
|
|
1596
|
+
font-family: var(--ack-font-mono, ui-monospace, monospace);
|
|
1597
|
+
font-size: var(--ack-progress-ring-value-size, 12px);
|
|
1598
|
+
font-variant-numeric: tabular-nums;
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
/* Spin button: the value between its − and + buttons, each a full target. */
|
|
1602
|
+
|
|
1603
|
+
.ack-spin-button {
|
|
1604
|
+
display: inline-flex;
|
|
1605
|
+
flex-direction: column;
|
|
1606
|
+
gap: 4px;
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1609
|
+
.ack-spin-button-label {
|
|
1610
|
+
font-size: 13px;
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
.ack-spin-button-body {
|
|
1614
|
+
display: inline-flex;
|
|
1615
|
+
align-items: stretch;
|
|
1616
|
+
align-self: flex-start;
|
|
1617
|
+
border: 1px solid
|
|
1618
|
+
var(--ack-line, color-mix(in srgb, currentColor 28%, transparent));
|
|
1619
|
+
border-radius: var(--ack-radius, 6px);
|
|
1620
|
+
background: var(
|
|
1621
|
+
--ack-spin-button-background,
|
|
1622
|
+
var(--ack-surface, color-mix(in srgb, currentColor 10%, transparent))
|
|
1623
|
+
);
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
.ack-spin-button-field {
|
|
1627
|
+
display: inline-flex;
|
|
1628
|
+
align-items: center;
|
|
1629
|
+
justify-content: center;
|
|
1630
|
+
box-sizing: border-box;
|
|
1631
|
+
inline-size: var(--ack-spin-button-field-width, 5em);
|
|
1632
|
+
min-block-size: var(--ack-target, 44px);
|
|
1633
|
+
margin: 0;
|
|
1634
|
+
padding: 0 8px;
|
|
1635
|
+
border: 0;
|
|
1636
|
+
border-inline: 1px solid
|
|
1637
|
+
var(--ack-line, color-mix(in srgb, currentColor 28%, transparent));
|
|
1638
|
+
background: transparent;
|
|
1639
|
+
color: inherit;
|
|
1640
|
+
font-family: var(--ack-font-mono, ui-monospace, monospace);
|
|
1641
|
+
font-size: 15px;
|
|
1642
|
+
font-variant-numeric: tabular-nums;
|
|
1643
|
+
text-align: center;
|
|
1644
|
+
}
|
|
1645
|
+
|
|
1646
|
+
.ack-spin-button-field:focus-visible {
|
|
1647
|
+
outline: 2px solid var(--ack-focus-ring, var(--ack-lit));
|
|
1648
|
+
outline-offset: -2px;
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1651
|
+
/* Not a number: an outline and a wavy underline, not the colour alone. */
|
|
1652
|
+
.ack-spin-button-field[aria-invalid="true"] {
|
|
1653
|
+
outline: 2px solid var(--ack-tone-negative, #c4372e);
|
|
1654
|
+
outline-offset: -2px;
|
|
1655
|
+
text-decoration: underline wavy var(--ack-tone-negative, #c4372e);
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
.ack-spin-button-step {
|
|
1659
|
+
display: inline-flex;
|
|
1660
|
+
flex: none;
|
|
1661
|
+
align-items: center;
|
|
1662
|
+
justify-content: center;
|
|
1663
|
+
box-sizing: border-box;
|
|
1664
|
+
inline-size: var(--ack-target, 44px);
|
|
1665
|
+
min-block-size: var(--ack-target, 44px);
|
|
1666
|
+
padding: 0;
|
|
1667
|
+
border: 0;
|
|
1668
|
+
background: transparent;
|
|
1669
|
+
color: inherit;
|
|
1670
|
+
cursor: pointer;
|
|
1671
|
+
touch-action: manipulation;
|
|
1672
|
+
transition: background var(--ack-motion, 120ms ease-out);
|
|
1673
|
+
}
|
|
1674
|
+
|
|
1675
|
+
.ack-spin-button-step:not(:disabled):hover {
|
|
1676
|
+
background: var(
|
|
1677
|
+
--ack-surface-raised,
|
|
1678
|
+
color-mix(in srgb, currentColor 18%, transparent)
|
|
1679
|
+
);
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
.ack-spin-button-step:disabled {
|
|
1683
|
+
opacity: 0.45;
|
|
1684
|
+
cursor: default;
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
/* The whole control is dimmed already. */
|
|
1688
|
+
.ack-spin-button[data-disabled] .ack-spin-button-step:disabled {
|
|
1689
|
+
opacity: 1;
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1692
|
+
.ack-spin-button-icon {
|
|
1693
|
+
display: inline-flex;
|
|
1694
|
+
width: 16px;
|
|
1695
|
+
height: 16px;
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
.ack-spin-button-icon > svg {
|
|
1699
|
+
width: 100%;
|
|
1700
|
+
height: 100%;
|
|
1701
|
+
fill: none;
|
|
1702
|
+
stroke: currentColor;
|
|
1703
|
+
stroke-width: 2;
|
|
1704
|
+
stroke-linecap: round;
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1707
|
+
/* Tree view: one flat list of rows, each indented by its level
|
|
1708
|
+
(`--ack-tree-level`, set by the component). A selected row carries a bar
|
|
1709
|
+
in its tone at its start, besides its background. */
|
|
1710
|
+
|
|
1711
|
+
.ack-tree {
|
|
1712
|
+
margin: 0;
|
|
1713
|
+
padding: 0;
|
|
1714
|
+
list-style: none;
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
.ack-tree-item {
|
|
1718
|
+
position: relative;
|
|
1719
|
+
display: flex;
|
|
1720
|
+
align-items: center;
|
|
1721
|
+
gap: 4px;
|
|
1722
|
+
box-sizing: border-box;
|
|
1723
|
+
min-block-size: var(--ack-tree-item-height, var(--ack-target, 44px));
|
|
1724
|
+
padding-inline: calc(
|
|
1725
|
+
4px + var(--ack-tree-indent, 1.25rem) * (var(--ack-tree-level, 1) - 1)
|
|
1726
|
+
)
|
|
1727
|
+
8px;
|
|
1728
|
+
border-radius: var(--ack-radius-small, 4px);
|
|
1729
|
+
cursor: default;
|
|
1730
|
+
user-select: none;
|
|
1731
|
+
-webkit-user-select: none;
|
|
1732
|
+
}
|
|
1733
|
+
|
|
1734
|
+
.ack-tree-item:hover {
|
|
1735
|
+
background: var(
|
|
1736
|
+
--ack-tree-item-hover,
|
|
1737
|
+
color-mix(in srgb, currentColor 6%, transparent)
|
|
1738
|
+
);
|
|
1739
|
+
}
|
|
1740
|
+
|
|
1741
|
+
.ack-tree-item[data-selected] {
|
|
1742
|
+
background: var(
|
|
1743
|
+
--ack-tree-item-selected,
|
|
1744
|
+
color-mix(in srgb, var(--ack-lit) 16%, transparent)
|
|
1745
|
+
);
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1748
|
+
.ack-tree-item[data-selected]::before {
|
|
1749
|
+
position: absolute;
|
|
1750
|
+
inset-block: 4px;
|
|
1751
|
+
inset-inline-start: 0;
|
|
1752
|
+
inline-size: 3px;
|
|
1753
|
+
border-radius: 3px;
|
|
1754
|
+
background: var(--ack-lit);
|
|
1755
|
+
content: "";
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1758
|
+
.ack-tree-item:focus {
|
|
1759
|
+
outline: none;
|
|
1760
|
+
}
|
|
1761
|
+
|
|
1762
|
+
.ack-tree-item:focus-visible {
|
|
1763
|
+
outline: 2px solid var(--ack-focus-ring, var(--ack-lit));
|
|
1764
|
+
outline-offset: -2px;
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1767
|
+
.ack-tree-item[aria-disabled="true"] {
|
|
1768
|
+
opacity: 0.45;
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1771
|
+
.ack-tree-item-toggle {
|
|
1772
|
+
display: inline-flex;
|
|
1773
|
+
flex: none;
|
|
1774
|
+
align-items: center;
|
|
1775
|
+
justify-content: center;
|
|
1776
|
+
inline-size: var(--ack-tree-toggle-size, 24px);
|
|
1777
|
+
block-size: var(--ack-tree-toggle-size, 24px);
|
|
1778
|
+
border-radius: var(--ack-radius-small, 4px);
|
|
1779
|
+
}
|
|
1780
|
+
|
|
1781
|
+
.ack-tree-item[aria-expanded] > .ack-tree-item-toggle {
|
|
1782
|
+
cursor: pointer;
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
.ack-tree-item-toggle > svg {
|
|
1786
|
+
width: 16px;
|
|
1787
|
+
height: 16px;
|
|
1788
|
+
fill: none;
|
|
1789
|
+
stroke: currentColor;
|
|
1790
|
+
stroke-width: 2;
|
|
1791
|
+
stroke-linecap: round;
|
|
1792
|
+
stroke-linejoin: round;
|
|
1793
|
+
transition: transform var(--ack-motion, 120ms ease-out);
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
.ack-tree-item-toggle:dir(rtl) > svg {
|
|
1797
|
+
transform: scaleX(-1);
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1800
|
+
.ack-tree-item[aria-expanded="true"] > .ack-tree-item-toggle > svg {
|
|
1801
|
+
transform: rotate(90deg);
|
|
1802
|
+
}
|
|
1803
|
+
|
|
1804
|
+
/* Children loading: a turning arc in place of the mark. */
|
|
1805
|
+
.ack-tree-item-toggle[data-loading] > svg {
|
|
1806
|
+
display: none;
|
|
1807
|
+
}
|
|
1808
|
+
|
|
1809
|
+
.ack-tree-item-toggle[data-loading]::after {
|
|
1810
|
+
box-sizing: border-box;
|
|
1811
|
+
inline-size: 14px;
|
|
1812
|
+
block-size: 14px;
|
|
1813
|
+
border: 2px solid currentColor;
|
|
1814
|
+
border-block-start-color: transparent;
|
|
1815
|
+
border-radius: 50%;
|
|
1816
|
+
animation: ack-progress-ring-turn 1s linear infinite;
|
|
1817
|
+
content: "";
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
.ack-tree-item-content {
|
|
1821
|
+
flex: 1;
|
|
1822
|
+
min-inline-size: 0;
|
|
1823
|
+
}
|
|
1824
|
+
|
|
1825
|
+
/* Forced colours drop backgrounds: the focused item keeps a visible mark. */
|
|
1826
|
+
@media (forced-colors: active) {
|
|
1827
|
+
.ack-menu-item:focus {
|
|
1828
|
+
outline: 2px solid Highlight;
|
|
1829
|
+
outline-offset: -2px;
|
|
1830
|
+
}
|
|
1831
|
+
|
|
1832
|
+
.ack-tab[aria-selected="true"]::after,
|
|
1833
|
+
.ack-tree-item[data-selected]::before {
|
|
1834
|
+
forced-color-adjust: none;
|
|
1835
|
+
background: SelectedItem;
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
.ack-tree-item[data-selected] {
|
|
1839
|
+
forced-color-adjust: none;
|
|
1840
|
+
background: SelectedItem;
|
|
1841
|
+
color: SelectedItemText;
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1844
|
+
.ack-progress-ring-dial {
|
|
1845
|
+
forced-color-adjust: none;
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1848
|
+
.ack-progress-ring-track {
|
|
1849
|
+
stroke: GrayText;
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
.ack-progress-ring-indicator {
|
|
1853
|
+
stroke: Highlight;
|
|
1854
|
+
}
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1857
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1858
|
+
.ack-toggle-button,
|
|
1859
|
+
.ack-button,
|
|
1860
|
+
.ack-switch-track,
|
|
1861
|
+
.ack-switch-thumb,
|
|
1862
|
+
.ack-radio,
|
|
1863
|
+
.ack-dialog,
|
|
1864
|
+
.ack-dialog::backdrop,
|
|
1865
|
+
.ack-menu,
|
|
1866
|
+
.ack-menu-button-chevron,
|
|
1867
|
+
.ack-tooltip,
|
|
1868
|
+
.ack-toast,
|
|
1869
|
+
.ack-tab,
|
|
1870
|
+
.ack-progress-ring-indicator,
|
|
1871
|
+
.ack-spin-button-step,
|
|
1872
|
+
.ack-tree-item-toggle > svg {
|
|
1873
|
+
transition: none;
|
|
1874
|
+
}
|
|
1875
|
+
|
|
1876
|
+
/* Still: an indeterminate ring keeps its quarter arc, and a loading
|
|
1877
|
+
branch its arc, without turning. */
|
|
1878
|
+
.ack-progress-ring[data-state="indeterminate"] .ack-progress-ring-dial,
|
|
1879
|
+
.ack-tree-item-toggle[data-loading]::after {
|
|
1880
|
+
animation: none;
|
|
1881
|
+
}
|
|
1882
|
+
}
|
|
1883
|
+
}
|