viewkitjs 0.20.0 → 0.22.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 +39 -0
- package/MIGRATION.md +2 -1
- package/README.md +1 -1
- package/fields/dist/conventions.d.ts +15 -3
- package/fields/dist/conventions.js +25 -0
- package/fields/dist/design/category-colors.d.ts +12 -5
- package/fields/dist/design/category-colors.js +7 -7
- package/fields/dist/query/buckets.js +42 -35
- package/fields/dist/query/date.js +2 -13
- package/fields/docs/guides/conventions.md +1 -1
- package/fields/docs/guides/options.md +2 -1
- package/fields/docs/reference/design-category-colors.md +2 -2
- package/fields/docs/reference/design-status-slots.md +1 -1
- package/fields/docs/reference/fields.md +1 -1
- package/package.json +19 -1
- package/views/README.md +2 -1
- package/views/dist/atoms/StatusBadge.js +1 -1
- package/views/dist/atoms/tones.js +7 -7
- package/views/dist/atoms/types.d.ts +3 -2
- package/views/dist/contract.d.ts +295 -2
- package/views/dist/contract.js +129 -0
- package/views/dist/controls/button/button.d.ts +40 -0
- package/views/dist/controls/button/button.js +40 -0
- package/views/dist/controls/button/looks.d.ts +4 -0
- package/views/dist/controls/button/looks.js +20 -0
- package/views/dist/controls/button/map-button.d.ts +11 -0
- package/views/dist/controls/button/map-button.js +20 -0
- package/views/dist/controls/button/own-look.d.ts +59 -0
- package/views/dist/controls/button/own-look.js +33 -0
- package/views/dist/controls/button.css +530 -0
- package/views/dist/controls/controls.d.ts +5 -0
- package/views/dist/controls/controls.js +2 -0
- package/views/dist/controls/index.d.ts +11 -0
- package/views/dist/controls/index.js +6 -0
- package/views/dist/controls/smooth.css +101 -0
- package/views/dist/controls/spinner/looks.d.ts +4 -0
- package/views/dist/controls/spinner/looks.js +32 -0
- package/views/dist/controls/spinner/spinner.d.ts +23 -0
- package/views/dist/controls/spinner/spinner.js +16 -0
- package/views/dist/controls/spinner.css +147 -0
- package/views/dist/display/date.js +15 -2
- package/views/dist/display/fit-values.d.ts +3 -2
- package/views/dist/display/link.d.ts +1 -1
- package/views/dist/display/location.js +2 -1
- package/views/dist/display/multi-value.js +1 -1
- package/views/dist/display/name.js +3 -1
- package/views/dist/display/select.js +1 -1
- package/views/dist/display/value-list.d.ts +1 -1
- package/views/dist/grid/chrome/GridStructure.js +2 -1
- package/views/dist/grid/looks.d.ts +45 -0
- package/views/dist/grid/looks.js +74 -0
- package/views/dist/looks/index.d.ts +9 -0
- package/views/dist/looks/index.js +5 -0
- package/views/dist/looks/looks.d.ts +47 -0
- package/views/dist/looks/looks.js +25 -0
- package/views/dist/looks/pieces.d.ts +3 -0
- package/views/dist/looks/pieces.js +4 -0
- package/views/dist/panels/react/views-row/FoldingViewRow.js +8 -8
- package/views/dist/provider/ViewsProvider.d.ts +3 -3
- package/views/dist/provider/ViewsProvider.js +1 -1
- package/views/dist/provider/context.d.ts +1 -1
- package/views/dist/styles.css +1000 -119
- package/views/dist/styles.unlayered.css +1017 -119
- package/views/docs/contract.md +172 -7
- package/views/docs/guides/display.md +11 -7
- package/views/docs/guides/looks.md +29 -0
- package/views/docs/guides/the-provider.md +2 -2
- package/views/docs/index.md +3 -0
- package/views/docs/install.md +7 -5
- package/views/docs/reference/controls.md +36 -0
- package/views/docs/reference/display.md +2 -2
- package/views/docs/reference/looks.md +41 -0
- package/views/docs/reference/react.md +2 -2
- package/views/docs/reference/views.md +5 -2
- package/views/skills/views/SKILL.md +2 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
/*! viewkitjs 0.
|
|
1
|
+
/*! viewkitjs 0.22.0 · viewkitjs/views/styles.unlayered.css: ViewKit's look, its defaults the Outright look */
|
|
2
|
+
|
|
2
3
|
@layer base {
|
|
3
4
|
@layer viewkit {:where(*):where([data-slot^="vk-"], [data-vk-body], [data-slot^="vk-"] *, [data-vk-body] *),
|
|
4
5
|
:where(*):where([data-slot^="vk-"], [data-vk-body], [data-slot^="vk-"] *, [data-vk-body] *)::after,
|
|
@@ -221,7 +222,716 @@
|
|
|
221
222
|
}
|
|
222
223
|
}
|
|
223
224
|
}
|
|
225
|
+
|
|
226
|
+
@property --smooth-t { syntax: "<length-percentage>"; inherits: true; initial-value: 0px; }
|
|
227
|
+
|
|
228
|
+
@property --smooth-side { syntax: "<length>"; inherits: true; initial-value: 0px; }
|
|
229
|
+
|
|
230
|
+
@property --smooth-x { syntax: "<number>"; inherits: true; initial-value: 0; }
|
|
231
|
+
|
|
232
|
+
@property --smooth-k { syntax: "<number>"; inherits: true; initial-value: 0; }
|
|
233
|
+
|
|
234
|
+
@property --smooth-cc { syntax: "<number>"; inherits: true; initial-value: 0; }
|
|
235
|
+
|
|
236
|
+
@property --smooth-d { syntax: "<number>"; inherits: true; initial-value: 0; }
|
|
237
|
+
|
|
238
|
+
@property --smooth-p { syntax: "<number>"; inherits: true; initial-value: 0; }
|
|
239
|
+
|
|
240
|
+
@property --smooth-a2 { syntax: "<number>"; inherits: true; initial-value: 0; }
|
|
241
|
+
|
|
242
|
+
@property --smooth-a1 { syntax: "<number>"; inherits: true; initial-value: 0; }
|
|
243
|
+
|
|
244
|
+
@property --smooth-bc { syntax: "<number>"; inherits: true; initial-value: 0; }
|
|
245
|
+
|
|
246
|
+
@property --smooth-e { syntax: "<number>"; inherits: true; initial-value: 0; }
|
|
247
|
+
|
|
248
|
+
@property --smooth-hx { syntax: "<number>"; inherits: true; initial-value: 0; }
|
|
249
|
+
|
|
250
|
+
@property --smooth-hy { syntax: "<number>"; inherits: true; initial-value: 0; }
|
|
251
|
+
|
|
252
|
+
@property --smooth-khy { syntax: "<number>"; inherits: true; initial-value: 0; }
|
|
253
|
+
|
|
254
|
+
@property --smooth-khx { syntax: "<number>"; inherits: true; initial-value: 0; }
|
|
255
|
+
|
|
224
256
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
257
|
+
|
|
258
|
+
.o-smooth, .o-smooth::before, .o-smooth::after {
|
|
259
|
+
/* The first curve's reach (e) and drop (d), its handles (a1, a2); the arc's chord (k) and handles (hx, hy, and k less each); the
|
|
260
|
+
last curve's handles (cc, bc); where the bend starts (p). Apple's, at 70%. */
|
|
261
|
+
--smooth-e: 1.222; --smooth-d: 0.147; --smooth-a1: 0.655; --smooth-a2: 0.982; --smooth-k: 0.33; --smooth-hx: 0.135; --smooth-hy: 0.082;
|
|
262
|
+
--smooth-khy: 0.248; --smooth-khx: 0.196; --smooth-cc: 0.24; --smooth-bc: 0.568; --smooth-p: 1.7;
|
|
263
|
+
--smooth-path:
|
|
264
|
+
hline to calc(100% - var(--smooth-in, 0px) - var(--smooth-t) * var(--smooth-p)),
|
|
265
|
+
curve by calc(var(--smooth-t) * var(--smooth-e)) calc(var(--smooth-t) * var(--smooth-d)) with calc(var(--smooth-t) * var(--smooth-a1)) 0 / calc(var(--smooth-t) * var(--smooth-a2)) 0,
|
|
266
|
+
curve by calc(var(--smooth-t) * var(--smooth-k)) calc(var(--smooth-t) * var(--smooth-k)) with calc(var(--smooth-t) * var(--smooth-hx)) calc(var(--smooth-t) * var(--smooth-hy)) / calc(var(--smooth-t) * var(--smooth-khy)) calc(var(--smooth-t) * var(--smooth-khx)),
|
|
267
|
+
curve by calc(var(--smooth-t) * var(--smooth-d)) calc(var(--smooth-t) * var(--smooth-e)) with calc(var(--smooth-t) * var(--smooth-d)) calc(var(--smooth-t) * var(--smooth-cc)) / calc(var(--smooth-t) * var(--smooth-d)) calc(var(--smooth-t) * var(--smooth-bc)),
|
|
268
|
+
vline to calc(var(--smooth-foot, 100%) - var(--smooth-in, 0px) - var(--smooth-b, var(--smooth-t)) * var(--smooth-p)),
|
|
269
|
+
curve by calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-d) * -1) calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-e)) with 0 calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-a1)) / 0 calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-a2)),
|
|
270
|
+
curve by calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-k) * -1) calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-k)) with calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-hy) * -1) calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-hx)) / calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-khx) * -1) calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-khy)),
|
|
271
|
+
curve by calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-e) * -1) calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-d)) with calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-cc) * -1) calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-d)) / calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-bc) * -1) calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-d)),
|
|
272
|
+
hline to calc(var(--smooth-in, 0px) + var(--smooth-b, var(--smooth-t)) * var(--smooth-p)),
|
|
273
|
+
curve by calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-e) * -1) calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-d) * -1) with calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-a1) * -1) 0 / calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-a2) * -1) 0,
|
|
274
|
+
curve by calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-k) * -1) calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-k) * -1) with calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-hx) * -1) calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-hy) * -1) / calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-khy) * -1) calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-khx) * -1),
|
|
275
|
+
curve by calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-d) * -1) calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-e) * -1) with calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-d) * -1) calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-cc) * -1) / calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-d) * -1) calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-bc) * -1),
|
|
276
|
+
vline to calc(var(--smooth-in, 0px) + var(--smooth-t) * var(--smooth-p)),
|
|
277
|
+
curve by calc(var(--smooth-t) * var(--smooth-d)) calc(var(--smooth-t) * var(--smooth-e) * -1) with 0 calc(var(--smooth-t) * var(--smooth-a1) * -1) / 0 calc(var(--smooth-t) * var(--smooth-a2) * -1),
|
|
278
|
+
curve by calc(var(--smooth-t) * var(--smooth-k)) calc(var(--smooth-t) * var(--smooth-k) * -1) with calc(var(--smooth-t) * var(--smooth-hy)) calc(var(--smooth-t) * var(--smooth-hx) * -1) / calc(var(--smooth-t) * var(--smooth-khx)) calc(var(--smooth-t) * var(--smooth-khy) * -1),
|
|
279
|
+
curve by calc(var(--smooth-t) * var(--smooth-e)) calc(var(--smooth-t) * var(--smooth-d) * -1) with calc(var(--smooth-t) * var(--smooth-cc)) calc(var(--smooth-t) * var(--smooth-d) * -1) / calc(var(--smooth-t) * var(--smooth-bc)) calc(var(--smooth-t) * var(--smooth-d) * -1),
|
|
280
|
+
close;
|
|
281
|
+
--smooth-outline: from calc(var(--smooth-in, 0px) + var(--smooth-t) * var(--smooth-p)) var(--smooth-in, 0px), var(--smooth-path);
|
|
282
|
+
--smooth-ring: evenodd var(--smooth-outer), move to calc(var(--smooth-in, 0px) + var(--smooth-t) * var(--smooth-p)) var(--smooth-in, 0px), var(--smooth-path);
|
|
283
|
+
}
|
|
284
|
+
/* The element's own outline, as it worked it out: what its ::before or ::after reads for a ring's outer line. */
|
|
285
|
+
.o-smooth { --smooth-outer: var(--smooth-outline); }
|
|
286
|
+
|
|
287
|
+
/* Eased on a short side: the smoothing from the side and the top radius, on the element alone so its ring takes the same; each number
|
|
288
|
+
from it (at 0.7 these give Apple's within a thousandth). */
|
|
289
|
+
.o-smooth.o-smooth-ease { --smooth-x: clamp(0, tan(atan2(var(--smooth-side), var(--smooth-t) * 2)) - 1, var(--smooth-amount, 0.7)); }
|
|
290
|
+
.o-smooth.o-smooth-ease, .o-smooth.o-smooth-ease::before, .o-smooth.o-smooth-ease::after {
|
|
291
|
+
--smooth-k: calc(sin(45deg * (1 - var(--smooth-x))) * 1.414214);
|
|
292
|
+
--smooth-cc: calc(tan(22.5deg * var(--smooth-x)) * cos(45deg * var(--smooth-x)));
|
|
293
|
+
--smooth-d: calc(tan(22.5deg * var(--smooth-x)) * sin(45deg * var(--smooth-x)));
|
|
294
|
+
--smooth-p: calc(1 + var(--smooth-x));
|
|
295
|
+
--smooth-a2: calc(var(--smooth-p) - var(--smooth-k) - var(--smooth-cc) - var(--smooth-d));
|
|
296
|
+
--smooth-a1: calc(var(--smooth-a2) * 2 / 3);
|
|
297
|
+
--smooth-bc: calc(var(--smooth-a2) / 3 + var(--smooth-cc));
|
|
298
|
+
--smooth-e: calc(var(--smooth-p) - var(--smooth-k) - var(--smooth-d));
|
|
299
|
+
--smooth-hx: calc(tan(22.5deg * (1 - var(--smooth-x))) * 4 / 3 * cos(45deg * var(--smooth-x)));
|
|
300
|
+
--smooth-hy: calc(tan(22.5deg * (1 - var(--smooth-x))) * 4 / 3 * sin(45deg * var(--smooth-x)));
|
|
301
|
+
--smooth-khy: calc(var(--smooth-k) - var(--smooth-hy));
|
|
302
|
+
--smooth-khx: calc(var(--smooth-k) - var(--smooth-hx));
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/* ── At rest ──────────────────────────────────────────────────────────────────────────────────────── */
|
|
306
|
+
:where(.o-button) {
|
|
307
|
+
height: calc(var(--vk-spacing) * 9);
|
|
308
|
+
padding: 0 calc(var(--vk-spacing) * 3.5);
|
|
309
|
+
font-size: var(--vk-font-size-sm);
|
|
310
|
+
--button-r: var(--vk-radius-lg);
|
|
311
|
+
--button-edge: transparent; --button-edge-foot: transparent;
|
|
312
|
+
--button-ground: transparent; --button-light: none; --button-depth: none; --button-line: var(--vk-border-width);
|
|
313
|
+
color: var(--vk-fg);
|
|
314
|
+
/* Drawn as a link (an <a>), it drops the browser's underline at rest; every kind's own underline still wins. */
|
|
315
|
+
text-decoration: none;
|
|
316
|
+
}
|
|
317
|
+
.o-button {
|
|
318
|
+
position: relative; display: inline-flex; align-items: center; justify-content: center; gap: calc(var(--vk-spacing) * 1.5);
|
|
319
|
+
box-sizing: border-box; margin: 0;
|
|
320
|
+
border-width: var(--button-line); border-style: solid;
|
|
321
|
+
/* Its paint, from its variables: every kind, look and state below sets them, never the paint itself, so its cut can
|
|
322
|
+
draw them under Smooth (Corner smoothing, the last section) and it paints them itself under Round. */
|
|
323
|
+
border-radius: var(--button-r); background-color: var(--button-ground); background-image: var(--button-light);
|
|
324
|
+
border-color: var(--button-edge); border-bottom-color: var(--button-edge-foot); box-shadow: var(--button-depth);
|
|
325
|
+
font-family: inherit; line-height: 1; font-weight: var(--vk-font-weight-medium); white-space: nowrap;
|
|
326
|
+
cursor: pointer; user-select: none; outline: none; -webkit-tap-highlight-color: transparent;
|
|
327
|
+
transition-property: background-color, border-color, color, box-shadow, translate, scale;
|
|
328
|
+
transition-duration: var(--vk-duration-fast);
|
|
329
|
+
transition-timing-function: var(--vk-ease-out);
|
|
330
|
+
}
|
|
331
|
+
.o-button > [data-slot="vk-button-icon"] { display: inline-flex; flex: none; transition: color var(--vk-duration-fast) var(--vk-ease-out); }
|
|
332
|
+
.o-button > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 3.75); height: calc(var(--vk-spacing) * 3.75); }
|
|
333
|
+
|
|
334
|
+
/* ── Sizes and forms: 24 and 28px in dense places (a header beside a 24px face, a chip's row), 32 in
|
|
335
|
+
toolbars and rows, 36 beside fields, 44 on the phone (lg, the next step's words and icons; or 44, md's words and icons
|
|
336
|
+
at 44 high); the smaller two carry smaller words and icons ── */
|
|
337
|
+
.o-button-2xs { height: calc(var(--vk-spacing) * 6); padding: 0 calc(var(--vk-spacing) * 2); gap: calc(var(--vk-spacing) * 1); font-size: var(--vk-font-size-xs); }
|
|
338
|
+
.o-button-xs { height: calc(var(--vk-spacing) * 7); padding: 0 calc(var(--vk-spacing) * 2.5); gap: calc(var(--vk-spacing) * 1); }
|
|
339
|
+
.o-button-sm { height: calc(var(--vk-spacing) * 8); padding: 0 calc(var(--vk-spacing) * 3); }
|
|
340
|
+
.o-button-lg { height: calc(var(--vk-spacing) * 11); padding: 0 calc(var(--vk-spacing) * 5); font-size: var(--vk-font-size-base); }
|
|
341
|
+
.o-button-2xs > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 3); height: calc(var(--vk-spacing) * 3); }
|
|
342
|
+
.o-button-xs > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 3.5); height: calc(var(--vk-spacing) * 3.5); }
|
|
343
|
+
/* Icon only: a square of its height, at every size. */
|
|
344
|
+
.o-button.o-button-icon { aspect-ratio: 1; min-width: 0; padding: 0; }
|
|
345
|
+
/* Round: a circle of its height, at every size; the card's close is the 32px one. */
|
|
346
|
+
.o-button.o-button-round { aspect-ratio: 1; min-width: 0; padding: 0; --button-r: var(--vk-radius-full); }
|
|
347
|
+
/* An icon-only or round button's icon is in proportion to it, a little over half its height: 14px at 24,
|
|
348
|
+
16 at 28, 18 at 32, 20 at 36, 24 at 44. A button with words keeps its icon beside them, 15px. */
|
|
349
|
+
.o-button:is(.o-button-icon, .o-button-round) > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 5); height: calc(var(--vk-spacing) * 5); }
|
|
350
|
+
.o-button-2xs:is(.o-button-icon, .o-button-round) > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 3.5); height: calc(var(--vk-spacing) * 3.5); }
|
|
351
|
+
.o-button-xs:is(.o-button-icon, .o-button-round) > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); }
|
|
352
|
+
.o-button-sm:is(.o-button-icon, .o-button-round) > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 4.5); height: calc(var(--vk-spacing) * 4.5); }
|
|
353
|
+
.o-button-lg:is(.o-button-icon, .o-button-round) > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 6); height: calc(var(--vk-spacing) * 6); }
|
|
354
|
+
|
|
355
|
+
/* ── Under the pointer, only on a screen that has one: iOS keeps :hover on what was last tapped,
|
|
356
|
+
so on a phone a hover fill would stay after the tap. Every kind's and every look's hover is here, in the
|
|
357
|
+
order the kinds and the looks below give them; where each rule stands below, only the sheets' forced state
|
|
358
|
+
([data-force="hover"]) stays, drawn on any screen. A press (:active) stays below too, a fill only while
|
|
359
|
+
pressed, and after this block, so a press under the pointer still wins over the hover ────────────── */
|
|
360
|
+
@media (hover: hover) {
|
|
361
|
+
.o-button-primary:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-brand-hovered); }
|
|
362
|
+
.o-button-danger:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly], :where([data-button-own][data-button-hover="none"], [data-button-own][data-button-hover="words"])) { --button-ground: var(--vk-danger-bold-hovered); }
|
|
363
|
+
.o-button-information:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-info-bold-hovered); }
|
|
364
|
+
.o-button-success:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-success-bold-hovered); }
|
|
365
|
+
.o-button-warning:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-warning-bold-hovered); }
|
|
366
|
+
.o-button-outline:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-hovered); --button-edge: var(--vk-border-input-hovered); --button-edge-foot: var(--vk-border-input-hovered); }
|
|
367
|
+
.o-button-soft:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-neutral-hovered); }
|
|
368
|
+
.o-button-quiet:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly], :where([data-button-own][data-button-hover="none"], [data-button-own][data-button-hover="words"])) { --button-ground: var(--vk-hovered); color: var(--vk-fg); }
|
|
369
|
+
.o-button-link:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { text-decoration: underline; }
|
|
370
|
+
.o-button-text:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { text-decoration-color: currentColor; }
|
|
371
|
+
[data-button-depth="edged"] .o-button-outline:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-depth: var(--vk-shadow-key-subtle-raised); --button-edge-foot: var(--vk-border-bold); }
|
|
372
|
+
[data-button-depth="edged"] .o-button-quiet:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-depth: var(--vk-shadow-key-shallow); }
|
|
373
|
+
[data-button-hover="brighter"] .o-button:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-light: linear-gradient(var(--vk-brighten), var(--vk-brighten)); }
|
|
374
|
+
[data-button-hover="brighter"] .o-button-primary:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-brand); }
|
|
375
|
+
[data-button-hover="brighter"] .o-button-danger:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-danger-bold); }
|
|
376
|
+
[data-button-hover="brighter"] .o-button-information:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-info-bold); }
|
|
377
|
+
[data-button-hover="brighter"] .o-button-success:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-success-bold); }
|
|
378
|
+
[data-button-hover="brighter"] .o-button-warning:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-warning-bold); }
|
|
379
|
+
[data-button-hover="brighter"] .o-button-outline:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-ground); }
|
|
380
|
+
[data-button-hover="brighter"] .o-button-soft:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-neutral); }
|
|
381
|
+
[data-button-hover="brighter"] .o-button-quiet:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-light: none; }
|
|
382
|
+
[data-button-hover="rises"] .o-button:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { translate: 0 calc(var(--vk-hover-lift) * -1); --button-depth: var(--vk-shadow-lift-raised); }
|
|
383
|
+
[data-button-hover="rises"] .o-button-primary:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-brand); --button-edge: var(--vk-brand-hovered); --button-edge-foot: var(--vk-brand-hovered); --button-depth: var(--vk-shadow-rim-bold-raised), var(--vk-shadow-lift-raised); }
|
|
384
|
+
[data-button-hover="rises"] .o-button-danger:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-danger-bold); --button-edge: var(--vk-danger-bold-hovered); --button-edge-foot: var(--vk-danger-bold-hovered); --button-depth: var(--vk-shadow-rim-bold-raised), var(--vk-shadow-lift-raised); }
|
|
385
|
+
[data-button-hover="rises"] .o-button-information:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-info-bold); --button-edge: var(--vk-info-bold-hovered); --button-edge-foot: var(--vk-info-bold-hovered); --button-depth: var(--vk-shadow-rim-bold-raised), var(--vk-shadow-lift-raised); }
|
|
386
|
+
[data-button-hover="rises"] .o-button-success:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-success-bold); --button-edge: var(--vk-success-bold-hovered); --button-edge-foot: var(--vk-success-bold-hovered); --button-depth: var(--vk-shadow-rim-bold-raised), var(--vk-shadow-lift-raised); }
|
|
387
|
+
[data-button-hover="rises"] .o-button-warning:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-warning-bold); --button-edge: var(--vk-warning-bold-hovered); --button-edge-foot: var(--vk-warning-bold-hovered); --button-depth: var(--vk-shadow-rim-bold-raised), var(--vk-shadow-lift-raised); }
|
|
388
|
+
[data-button-hover="rises"] .o-button-outline:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-raised-hovered); --button-depth: var(--vk-shadow-rim-raised), var(--vk-shadow-lift-raised); }
|
|
389
|
+
[data-button-hover="rises"] .o-button-soft:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-raised-hovered); --button-edge: var(--vk-border); --button-edge-foot: var(--vk-border); --button-depth: var(--vk-shadow-rim-raised), var(--vk-shadow-lift-raised); }
|
|
390
|
+
[data-button-hover="rises"] .o-button-quiet:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-raised); --button-edge: var(--vk-border-subtle); --button-edge-foot: var(--vk-border-subtle); --button-depth: var(--vk-shadow-rim), var(--vk-shadow-lift); }
|
|
391
|
+
[data-button-hover] :is(.o-button-link, .o-button-text):hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-light: none; translate: none; --button-depth: none; }
|
|
392
|
+
[data-button-soft="tint"] .o-button-soft:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-brand-subtler-hovered); }
|
|
393
|
+
[data-button-soft="tint"] .o-button-soft:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) > [data-slot="vk-button-icon"] { color: var(--vk-fg-accent); }
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/* ── The kinds, as the approved card draws them ─────────────────────────────────────────────────────── */
|
|
397
|
+
/* Primary: the one main action, in the brand. */
|
|
398
|
+
.o-button-primary { --button-ground: var(--vk-brand); color: var(--vk-fg-on-brand); }
|
|
399
|
+
.o-button-primary[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]),
|
|
400
|
+
.o-button-primary:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-brand-hovered); }
|
|
401
|
+
/* Danger: primary's form in the danger colours. */
|
|
402
|
+
.o-button-danger { --button-ground: var(--vk-danger-bold); color: var(--vk-fg-inverse); }
|
|
403
|
+
.o-button-danger[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]),
|
|
404
|
+
.o-button-danger:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-danger-bold-hovered); }
|
|
405
|
+
/* Information, Success and Warning: primary's form in the Notice's meanings' colours, for an action that says which it is. Warning
|
|
406
|
+
takes the same white words as the rest. */
|
|
407
|
+
.o-button-information { --button-ground: var(--vk-info-bold); color: var(--vk-fg-on-brand); }
|
|
408
|
+
.o-button-information[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]),
|
|
409
|
+
.o-button-information:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-info-bold-hovered); }
|
|
410
|
+
.o-button-success { --button-ground: var(--vk-success-bold); color: var(--vk-fg-inverse); }
|
|
411
|
+
.o-button-success[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]),
|
|
412
|
+
.o-button-success:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-success-bold-hovered); }
|
|
413
|
+
.o-button-warning { --button-ground: var(--vk-warning-bold); color: var(--vk-fg-inverse); }
|
|
414
|
+
.o-button-warning[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]),
|
|
415
|
+
.o-button-warning:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-warning-bold-hovered); }
|
|
416
|
+
/* Outline: every other action, the surface with an edge. */
|
|
417
|
+
.o-button-outline { --button-ground: var(--vk-ground); --button-edge: var(--vk-border-input); --button-edge-foot: var(--vk-border-input); }
|
|
418
|
+
.o-button-outline[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-hovered); --button-edge: var(--vk-border-input-hovered); --button-edge-foot: var(--vk-border-input-hovered); }
|
|
419
|
+
.o-button-outline:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-pressed); --button-edge: var(--vk-border-input-hovered); --button-edge-foot: var(--vk-border-input-hovered); }
|
|
420
|
+
/* Soft: beside a field or in a toolbar. */
|
|
421
|
+
.o-button-soft { --button-ground: var(--vk-neutral); }
|
|
422
|
+
.o-button-soft[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]),
|
|
423
|
+
.o-button-soft:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-neutral-hovered); }
|
|
424
|
+
/* Quiet: the way out, only its words until the pointer finds it, on the step of the ground it stands on: the
|
|
425
|
+
page's, or a popup's own. */
|
|
426
|
+
.o-button-quiet { color: var(--vk-fg-subtle); }
|
|
427
|
+
.o-button-quiet[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-hovered); color: var(--vk-fg); }
|
|
428
|
+
.o-button-quiet:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-pressed); color: var(--vk-fg); }
|
|
429
|
+
/* On a popup's ground, the overlay's hover: as specific as the page's, so a look's own hover (rises) and a
|
|
430
|
+
component's own over a Button (the Menu's dots) still win. Its press follows the looks' press, below. */
|
|
431
|
+
:where(.o-popover, .o-sheet, .o-modal, .o-drawer, .o-alert-dialog, .o-pane) .o-button-quiet[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-overlay-hovered); }
|
|
432
|
+
@media (hover: hover) { :where(.o-popover, .o-sheet, .o-modal, .o-drawer, .o-alert-dialog, .o-pane) .o-button-quiet:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly], :where([data-button-own][data-button-hover="none"], [data-button-own][data-button-hover="words"])) { --button-ground: var(--vk-overlay-hovered); } }
|
|
433
|
+
/* Link: words in the brand's text colour, no fill and no edge; underlined under the pointer. */
|
|
434
|
+
.o-button-link { color: var(--vk-fg-accent); text-underline-offset: calc(var(--vk-spacing) * 3 / 4); }
|
|
435
|
+
.o-button-link[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { text-decoration: underline; }
|
|
436
|
+
/* Text: an action in what it acts on (a Notice's Retry, a Toast's Undo, a list's Clear all): words in the text
|
|
437
|
+
colour, no fill and no edge, the underline easing in under the pointer. While it works without a spinner
|
|
438
|
+
("Retrying…"), its words stay, quieter. */
|
|
439
|
+
.o-button-text {
|
|
440
|
+
color: var(--vk-fg); text-decoration: underline transparent; text-underline-offset: calc(var(--vk-spacing) * 3 / 4);
|
|
441
|
+
transition-property: background-color, border-color, color, box-shadow, translate, scale, text-decoration-color;
|
|
442
|
+
}
|
|
443
|
+
.o-button-text[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { text-decoration-color: currentColor; }
|
|
444
|
+
.o-button-text[aria-busy="true"]:not(:has(> [data-slot="vk-button-spinner"])) { color: var(--vk-fg-subtle); }
|
|
445
|
+
.o-button.o-button-text[aria-busy="true"]:not(:has(> [data-slot="vk-button-spinner"])) > * { visibility: visible; }
|
|
446
|
+
/* Pressed, it settles. */
|
|
447
|
+
.o-button:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { scale: var(--vk-press-scale); }
|
|
448
|
+
|
|
449
|
+
/* ── Corners: a step of the radius ────────────────────────────────────────────────────────────────── */
|
|
450
|
+
/* For now, a Button whose own look names its radius (or its words, below) keeps them: the frame's Corners, Pill's padding
|
|
451
|
+
and Label weight skip it; Pill's padding skips its pad and the measured sizes with words too, and Pill's padding at an
|
|
452
|
+
end icon skips its end room. */
|
|
453
|
+
[data-button-radius="xs"] .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])) { --button-r: var(--vk-radius-xs); }
|
|
454
|
+
[data-button-radius="sm"] .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])) { --button-r: var(--vk-radius-sm); }
|
|
455
|
+
[data-button-radius="md"] .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])) { --button-r: var(--vk-radius-md); }
|
|
456
|
+
[data-button-radius="lg"] .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])) { --button-r: var(--vk-radius-lg); }
|
|
457
|
+
[data-button-radius="xl"] .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])) { --button-r: var(--vk-radius-xl); }
|
|
458
|
+
[data-button-radius="2xl"] .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])) { --button-r: var(--vk-radius-2xl); }
|
|
459
|
+
/* Full: a pill, an icon button a circle. Its round ends leave room, so it takes a step more padding, and
|
|
460
|
+
a step less on the side an icon sits. */
|
|
461
|
+
[data-button-radius="full"] .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])) { --button-r: var(--vk-radius-full); }
|
|
462
|
+
[data-button-radius="full"] .o-button:not(.o-button-icon, .o-button-round, :where([data-button-own][data-button-radius], [data-button-own][data-button-pad], .o-button-20, .o-button-22, .o-button-26, .o-button-line)) { padding: 0 calc(var(--vk-spacing) * 4.5); }
|
|
463
|
+
[data-button-radius="full"] .o-button-2xs:not(.o-button-icon, .o-button-round, :where([data-button-own][data-button-radius], [data-button-own][data-button-pad], .o-button-20, .o-button-22, .o-button-26, .o-button-line)) { padding: 0 calc(var(--vk-spacing) * 2.5); }
|
|
464
|
+
[data-button-radius="full"] .o-button-xs:not(.o-button-icon, .o-button-round, :where([data-button-own][data-button-radius], [data-button-own][data-button-pad], .o-button-20, .o-button-22, .o-button-26, .o-button-line)) { padding: 0 calc(var(--vk-spacing) * 3); }
|
|
465
|
+
[data-button-radius="full"] .o-button-sm:not(.o-button-icon, .o-button-round, :where([data-button-own][data-button-radius], [data-button-own][data-button-pad], .o-button-20, .o-button-22, .o-button-26, .o-button-line)) { padding: 0 calc(var(--vk-spacing) * 3.5); }
|
|
466
|
+
[data-button-radius="full"] .o-button-lg:not(.o-button-icon, .o-button-round, :where([data-button-own][data-button-radius], [data-button-own][data-button-pad], .o-button-20, .o-button-22, .o-button-26, .o-button-line)) { padding: 0 calc(var(--vk-spacing) * 5.5); }
|
|
467
|
+
[data-button-radius="full"] .o-button:not(.o-button-icon, .o-button-round, :where([data-button-own][data-button-radius], [data-button-own][data-button-pad], .o-button-20, .o-button-22, .o-button-26, .o-button-line)):has(> [data-slot="vk-button-icon"]:first-child) { padding-left: calc(var(--vk-spacing) * 3.5); }
|
|
468
|
+
[data-button-radius="full"] .o-button:not(.o-button-icon, .o-button-round, :where([data-button-own][data-button-radius], [data-button-own][data-button-pad], .o-button-20, .o-button-22, .o-button-26, .o-button-line, [data-button-own][data-button-end-room])):has(> [data-slot="vk-button-label"] + [data-slot="vk-button-icon"]) { padding-right: calc(var(--vk-spacing) * 3.5); }
|
|
469
|
+
[data-button-radius="full"] .o-button-2xs:not(.o-button-icon, .o-button-round, :where([data-button-own][data-button-radius], [data-button-own][data-button-pad], .o-button-20, .o-button-22, .o-button-26, .o-button-line)):has(> [data-slot="vk-button-icon"]:first-child) { padding-left: calc(var(--vk-spacing) * 1.5); }
|
|
470
|
+
[data-button-radius="full"] .o-button-2xs:not(.o-button-icon, .o-button-round, :where([data-button-own][data-button-radius], [data-button-own][data-button-pad], .o-button-20, .o-button-22, .o-button-26, .o-button-line, [data-button-own][data-button-end-room])):has(> [data-slot="vk-button-label"] + [data-slot="vk-button-icon"]) { padding-right: calc(var(--vk-spacing) * 1.5); }
|
|
471
|
+
[data-button-radius="full"] .o-button-xs:not(.o-button-icon, .o-button-round, :where([data-button-own][data-button-radius], [data-button-own][data-button-pad], .o-button-20, .o-button-22, .o-button-26, .o-button-line)):has(> [data-slot="vk-button-icon"]:first-child) { padding-left: calc(var(--vk-spacing) * 2); }
|
|
472
|
+
[data-button-radius="full"] .o-button-xs:not(.o-button-icon, .o-button-round, :where([data-button-own][data-button-radius], [data-button-own][data-button-pad], .o-button-20, .o-button-22, .o-button-26, .o-button-line, [data-button-own][data-button-end-room])):has(> [data-slot="vk-button-label"] + [data-slot="vk-button-icon"]) { padding-right: calc(var(--vk-spacing) * 2); }
|
|
473
|
+
[data-button-radius="full"] .o-button-sm:not(.o-button-icon, .o-button-round, :where([data-button-own][data-button-radius], [data-button-own][data-button-pad], .o-button-20, .o-button-22, .o-button-26, .o-button-line)):has(> [data-slot="vk-button-icon"]:first-child) { padding-left: calc(var(--vk-spacing) * 2.5); }
|
|
474
|
+
[data-button-radius="full"] .o-button-sm:not(.o-button-icon, .o-button-round, :where([data-button-own][data-button-radius], [data-button-own][data-button-pad], .o-button-20, .o-button-22, .o-button-26, .o-button-line, [data-button-own][data-button-end-room])):has(> [data-slot="vk-button-label"] + [data-slot="vk-button-icon"]) { padding-right: calc(var(--vk-spacing) * 2.5); }
|
|
475
|
+
[data-button-radius="full"] .o-button-lg:not(.o-button-icon, .o-button-round, :where([data-button-own][data-button-radius], [data-button-own][data-button-pad], .o-button-20, .o-button-22, .o-button-26, .o-button-line)):has(> [data-slot="vk-button-icon"]:first-child) { padding-left: calc(var(--vk-spacing) * 4.5); }
|
|
476
|
+
[data-button-radius="full"] .o-button-lg:not(.o-button-icon, .o-button-round, :where([data-button-own][data-button-radius], [data-button-own][data-button-pad], .o-button-20, .o-button-22, .o-button-26, .o-button-line, [data-button-own][data-button-end-room])):has(> [data-slot="vk-button-label"] + [data-slot="vk-button-icon"]) { padding-right: calc(var(--vk-spacing) * 4.5); }
|
|
477
|
+
|
|
478
|
+
/* ── Label weight ─────────────────────────────────────────────────────────────────────────────────── */
|
|
479
|
+
[data-button-weight="semibold"] .o-button:not(:where([data-button-own][data-button-words])) { font-weight: var(--vk-font-weight-semibold); }
|
|
480
|
+
|
|
481
|
+
/* ── Depth: edged, a key; lifted, floating on the page ────────────────────────────────────────────── */
|
|
482
|
+
[data-button-depth="edged"] .o-button-primary, [data-button-depth="edged"] .o-button-danger, [data-button-depth="edged"] .o-button-information, [data-button-depth="edged"] .o-button-success, [data-button-depth="edged"] .o-button-warning { --button-depth: var(--vk-shadow-key); }
|
|
483
|
+
[data-button-depth="edged"] .o-button-outline { --button-depth: var(--vk-shadow-key-subtle); --button-edge-foot: var(--vk-border-input-hovered); }
|
|
484
|
+
[data-button-depth="edged"] .o-button-outline[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-depth: var(--vk-shadow-key-subtle-raised); --button-edge-foot: var(--vk-border-bold); }
|
|
485
|
+
[data-button-depth="edged"] .o-button-soft { --button-depth: var(--vk-shadow-key-soft); }
|
|
486
|
+
[data-button-depth="edged"] .o-button-quiet[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-depth: var(--vk-shadow-key-shallow); }
|
|
487
|
+
|
|
488
|
+
[data-button-depth="lifted"] .o-button-primary { --button-depth: var(--vk-shadow-rim-bold), var(--vk-shadow-lift); --button-edge: var(--vk-brand-hovered); --button-edge-foot: var(--vk-brand-hovered); }
|
|
489
|
+
[data-button-depth="lifted"] .o-button-danger { --button-depth: var(--vk-shadow-rim-bold), var(--vk-shadow-lift); --button-edge: var(--vk-danger-bold-hovered); --button-edge-foot: var(--vk-danger-bold-hovered); }
|
|
490
|
+
[data-button-depth="lifted"] .o-button-information { --button-depth: var(--vk-shadow-rim-bold), var(--vk-shadow-lift); --button-edge: var(--vk-info-bold-hovered); --button-edge-foot: var(--vk-info-bold-hovered); }
|
|
491
|
+
[data-button-depth="lifted"] .o-button-success { --button-depth: var(--vk-shadow-rim-bold), var(--vk-shadow-lift); --button-edge: var(--vk-success-bold-hovered); --button-edge-foot: var(--vk-success-bold-hovered); }
|
|
492
|
+
[data-button-depth="lifted"] .o-button-warning { --button-depth: var(--vk-shadow-rim-bold), var(--vk-shadow-lift); --button-edge: var(--vk-warning-bold-hovered); --button-edge-foot: var(--vk-warning-bold-hovered); }
|
|
493
|
+
[data-button-depth="lifted"] .o-button-outline { --button-depth: var(--vk-shadow-rim), var(--vk-shadow-lift); }
|
|
494
|
+
|
|
495
|
+
/* ── Under the pointer: brighter, a thin light over the fill; rises, a pixel up on a deeper shadow ── */
|
|
496
|
+
[data-button-hover="brighter"] .o-button[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-light: linear-gradient(var(--vk-brighten), var(--vk-brighten)); }
|
|
497
|
+
[data-button-hover="brighter"] .o-button-primary[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-brand); }
|
|
498
|
+
[data-button-hover="brighter"] .o-button-danger[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-danger-bold); }
|
|
499
|
+
[data-button-hover="brighter"] .o-button-information[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-info-bold); }
|
|
500
|
+
[data-button-hover="brighter"] .o-button-success[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-success-bold); }
|
|
501
|
+
[data-button-hover="brighter"] .o-button-warning[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-warning-bold); }
|
|
502
|
+
[data-button-hover="brighter"] .o-button-outline[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-ground); }
|
|
503
|
+
[data-button-hover="brighter"] .o-button-soft[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-neutral); }
|
|
504
|
+
[data-button-hover="brighter"] .o-button-quiet[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-light: none; }
|
|
505
|
+
|
|
506
|
+
[data-button-hover="rises"] .o-button { transition-duration: var(--vk-duration-base); }
|
|
507
|
+
[data-button-hover="rises"] .o-button[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { translate: 0 calc(var(--vk-hover-lift) * -1); --button-depth: var(--vk-shadow-lift-raised); }
|
|
508
|
+
[data-button-hover="rises"] .o-button-primary[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-brand); --button-edge: var(--vk-brand-hovered); --button-edge-foot: var(--vk-brand-hovered); --button-depth: var(--vk-shadow-rim-bold-raised), var(--vk-shadow-lift-raised); }
|
|
509
|
+
[data-button-hover="rises"] .o-button-danger[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-danger-bold); --button-edge: var(--vk-danger-bold-hovered); --button-edge-foot: var(--vk-danger-bold-hovered); --button-depth: var(--vk-shadow-rim-bold-raised), var(--vk-shadow-lift-raised); }
|
|
510
|
+
[data-button-hover="rises"] .o-button-information[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-info-bold); --button-edge: var(--vk-info-bold-hovered); --button-edge-foot: var(--vk-info-bold-hovered); --button-depth: var(--vk-shadow-rim-bold-raised), var(--vk-shadow-lift-raised); }
|
|
511
|
+
[data-button-hover="rises"] .o-button-success[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-success-bold); --button-edge: var(--vk-success-bold-hovered); --button-edge-foot: var(--vk-success-bold-hovered); --button-depth: var(--vk-shadow-rim-bold-raised), var(--vk-shadow-lift-raised); }
|
|
512
|
+
[data-button-hover="rises"] .o-button-warning[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-warning-bold); --button-edge: var(--vk-warning-bold-hovered); --button-edge-foot: var(--vk-warning-bold-hovered); --button-depth: var(--vk-shadow-rim-bold-raised), var(--vk-shadow-lift-raised); }
|
|
513
|
+
[data-button-hover="rises"] .o-button-outline[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-raised-hovered); --button-depth: var(--vk-shadow-rim-raised), var(--vk-shadow-lift-raised); }
|
|
514
|
+
[data-button-hover="rises"] .o-button-soft[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-raised-hovered); --button-edge: var(--vk-border); --button-edge-foot: var(--vk-border); --button-depth: var(--vk-shadow-rim-raised), var(--vk-shadow-lift-raised); }
|
|
515
|
+
[data-button-hover="rises"] .o-button-quiet[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-raised); --button-edge: var(--vk-border-subtle); --button-edge-foot: var(--vk-border-subtle); --button-depth: var(--vk-shadow-rim), var(--vk-shadow-lift); }
|
|
516
|
+
|
|
517
|
+
/* A link, and text, stay words in every look: no light laid over them, no rise. */
|
|
518
|
+
[data-button-hover] :is(.o-button-link, .o-button-text)[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-light: none; translate: none; --button-depth: none; }
|
|
519
|
+
|
|
520
|
+
/* A press under the pointer: the kind's pressed fill comes back over what a look's hover set. */
|
|
521
|
+
[data-button-hover] .o-button:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-light: none; }
|
|
522
|
+
[data-button-hover] .o-button-primary:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-brand-hovered); }
|
|
523
|
+
[data-button-hover] .o-button-danger:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-danger-bold-hovered); }
|
|
524
|
+
[data-button-hover] .o-button-information:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-info-bold-hovered); }
|
|
525
|
+
[data-button-hover] .o-button-success:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-success-bold-hovered); }
|
|
526
|
+
[data-button-hover] .o-button-warning:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-warning-bold-hovered); }
|
|
527
|
+
[data-button-hover] .o-button-outline:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-pressed); --button-edge: var(--vk-border-input-hovered); --button-edge-foot: var(--vk-border-input-hovered); }
|
|
528
|
+
[data-button-hover] .o-button-soft:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-neutral-hovered); }
|
|
529
|
+
[data-button-hover] .o-button-quiet:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-pressed); color: var(--vk-fg); }
|
|
530
|
+
/* On a popup's ground, the overlay's press, in every look. */
|
|
531
|
+
:is(.o-popover, .o-sheet, .o-modal, .o-drawer, .o-alert-dialog, .o-pane) .o-button-quiet:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-overlay-pressed); }
|
|
532
|
+
|
|
533
|
+
/* ── Press: sinks into the page, springs back from a squash, or lands flat ────────────────────────── */
|
|
534
|
+
[data-button-press="sinks"] .o-button:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) {
|
|
535
|
+
scale: none; translate: 0 var(--vk-press-travel); --button-depth: var(--vk-shadow-key-pressed);
|
|
536
|
+
--button-light: linear-gradient(var(--vk-darken), var(--vk-darken)); transition-duration: var(--vk-duration-instant);
|
|
537
|
+
}
|
|
538
|
+
[data-button-press="sinks"] .o-button-lg:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { translate: 0 var(--vk-press-travel-lg); }
|
|
539
|
+
[data-button-press="sinks"] .o-button-primary:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-brand); --button-depth: var(--vk-shadow-key-pressed-bold); }
|
|
540
|
+
[data-button-press="sinks"] .o-button-danger:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-danger-bold); --button-depth: var(--vk-shadow-key-pressed-bold); }
|
|
541
|
+
[data-button-press="sinks"] .o-button-information:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-info-bold); --button-depth: var(--vk-shadow-key-pressed-bold); }
|
|
542
|
+
[data-button-press="sinks"] .o-button-success:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-success-bold); --button-depth: var(--vk-shadow-key-pressed-bold); }
|
|
543
|
+
[data-button-press="sinks"] .o-button-warning:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-warning-bold); --button-depth: var(--vk-shadow-key-pressed-bold); }
|
|
544
|
+
[data-button-press="sinks"] .o-button-soft:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-neutral); }
|
|
545
|
+
[data-button-press="sinks"] .o-button-outline:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]),
|
|
546
|
+
[data-button-press="sinks"] .o-button-quiet:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-light: none; }
|
|
547
|
+
|
|
548
|
+
[data-button-press="springs"] .o-button {
|
|
549
|
+
transition-duration: var(--vk-duration-fast), var(--vk-duration-fast), var(--vk-duration-fast), var(--vk-duration-fast), var(--vk-duration-fast), var(--vk-duration-slow);
|
|
550
|
+
transition-timing-function: var(--vk-ease-out), var(--vk-ease-out), var(--vk-ease-out), var(--vk-ease-out), var(--vk-ease-out), var(--vk-ease-spring);
|
|
551
|
+
}
|
|
552
|
+
/* Every Button squashes the same, its icon alone and a round one too: one press, whatever it shows. */
|
|
553
|
+
[data-button-press="springs"] .o-button:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { scale: var(--vk-press-squash); transition-duration: var(--vk-duration-instant); }
|
|
554
|
+
[data-button-press="springs"] .o-button-primary:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-brand-pressed); }
|
|
555
|
+
[data-button-press="springs"] .o-button-danger:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-danger-bold-pressed); }
|
|
556
|
+
[data-button-press="springs"] .o-button-information:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-info-bold-pressed); }
|
|
557
|
+
[data-button-press="springs"] .o-button-success:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-success-bold-pressed); }
|
|
558
|
+
[data-button-press="springs"] .o-button-warning:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-warning-bold-pressed); }
|
|
559
|
+
|
|
560
|
+
[data-button-press] :is(.o-button-link, .o-button-text):is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-light: none; --button-depth: none; }
|
|
561
|
+
|
|
562
|
+
[data-button-press="lands"] .o-button:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { scale: none; translate: none; --button-depth: none; transition-duration: var(--vk-duration-instant); }
|
|
563
|
+
[data-button-press="lands"] .o-button-primary:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-edge: var(--vk-brand-hovered); --button-edge-foot: var(--vk-brand-hovered); }
|
|
564
|
+
[data-button-press="lands"] .o-button-danger:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-edge: var(--vk-danger-bold-hovered); --button-edge-foot: var(--vk-danger-bold-hovered); }
|
|
565
|
+
[data-button-press="lands"] .o-button-information:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-edge: var(--vk-info-bold-hovered); --button-edge-foot: var(--vk-info-bold-hovered); }
|
|
566
|
+
[data-button-press="lands"] .o-button-success:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-edge: var(--vk-success-bold-hovered); --button-edge-foot: var(--vk-success-bold-hovered); }
|
|
567
|
+
[data-button-press="lands"] .o-button-warning:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-edge: var(--vk-warning-bold-hovered); --button-edge-foot: var(--vk-warning-bold-hovered); }
|
|
568
|
+
|
|
569
|
+
/* ── The soft kind in the brand's tint, its icon taking the brand under the pointer ───────────────── */
|
|
570
|
+
[data-button-soft="tint"] .o-button-soft { --button-ground: var(--vk-brand-subtler); }
|
|
571
|
+
[data-button-soft="tint"] .o-button-soft > [data-slot="vk-button-icon"] { color: var(--vk-fg-subtle); }
|
|
572
|
+
[data-button-soft="tint"] .o-button-soft[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-brand-subtler-hovered); }
|
|
573
|
+
[data-button-soft="tint"] .o-button-soft:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-brand-subtler-pressed); }
|
|
574
|
+
[data-button-soft="tint"] .o-button-soft:is([data-force="hover"], :active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) > [data-slot="vk-button-icon"] { color: var(--vk-fg-accent); }
|
|
575
|
+
|
|
576
|
+
/* ── Focus, disabled, working: the same in every look ─────────────────────────────────────────────── */
|
|
577
|
+
.o-button:is(:focus-visible, [data-force="focus"]) { outline: var(--vk-focus-width) solid var(--vk-border-brand); outline-offset: var(--vk-focus-offset); }
|
|
578
|
+
/* Disabled: on the page, grey, no depth; a quiet button keeps no fill. */
|
|
579
|
+
.o-button:is(:disabled, [data-disabled]) {
|
|
580
|
+
--button-ground: var(--vk-neutral); --button-light: none; --button-edge: transparent; --button-edge-foot: transparent; --button-depth: none;
|
|
581
|
+
color: var(--vk-fg-disabled); cursor: not-allowed;
|
|
582
|
+
}
|
|
583
|
+
.o-button:is(.o-button-quiet, .o-button-link, .o-button-text):is(:disabled, [data-disabled]) { --button-ground: transparent; }
|
|
584
|
+
/* Text's ring hugs its words, as it sits inside what it acts on. */
|
|
585
|
+
.o-button.o-button-text:is(:focus-visible, [data-force="focus"]) { outline-offset: 0; }
|
|
586
|
+
.o-button:is(:disabled, [data-disabled]) > [data-slot="vk-button-icon"] { color: inherit; }
|
|
587
|
+
/* Working: it keeps its place and its width; the label waits under the spinner. */
|
|
588
|
+
.o-button[aria-busy="true"] { cursor: progress; }
|
|
589
|
+
.o-button[aria-busy="true"] > :not([data-slot="vk-button-spinner"], .o-button-cut) { visibility: hidden; }
|
|
590
|
+
.o-button > [data-slot="vk-button-spinner"] { position: absolute; inset: 0; display: grid; place-items: center; }
|
|
591
|
+
|
|
592
|
+
/* ── A group: buttons joined in a row or a column, the corners between them square and the edge between
|
|
593
|
+
them shared; whatever the corners and the looks, only the group's outer corners are rounded. Focus lifts
|
|
594
|
+
a button above its neighbours, so its ring shows whole; groups inside a group stand 8px apart ──────── */
|
|
595
|
+
.o-button-group { display: inline-flex; align-items: stretch; width: fit-content; isolation: isolate; }
|
|
596
|
+
.o-button-group[data-orientation="vertical"] { flex-direction: column; }
|
|
597
|
+
.o-button-group:has(> .o-button-group) { gap: calc(var(--vk-spacing) * 2); }
|
|
598
|
+
.o-button-group > :is(:focus-visible, [data-force="focus"]), .o-button.o-toolbar-button[data-joined]:is(:focus-visible, [data-force="focus"]) { position: relative; z-index: 1; }
|
|
599
|
+
.o-button-group[data-orientation="horizontal"] > :not(:last-child):not(.o-button-group) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
|
|
600
|
+
.o-button-group[data-orientation="horizontal"] > :not(:first-child):not(.o-button-group) { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left-width: 0; }
|
|
601
|
+
.o-button-group[data-orientation="vertical"] > :not(:last-child):not(.o-button-group) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
|
|
602
|
+
.o-button-group[data-orientation="vertical"] > :not(:first-child):not(.o-button-group) { border-top-left-radius: 0; border-top-right-radius: 0; border-top-width: 0; }
|
|
603
|
+
/* Words in a group: on the neutral ground, inside the group's edge. */
|
|
604
|
+
.o-button-group-text {
|
|
605
|
+
display: inline-flex; align-items: center; gap: calc(var(--vk-spacing) * 2); box-sizing: border-box; padding: 0 calc(var(--vk-spacing) * 2.5);
|
|
606
|
+
border: var(--vk-border-width) solid var(--vk-border-input); border-radius: var(--vk-radius-lg);
|
|
607
|
+
background-color: var(--vk-neutral); color: var(--vk-fg-subtle); font-size: var(--vk-font-size-sm); font-weight: var(--vk-font-weight-medium); font-variant-numeric: tabular-nums; white-space: nowrap;
|
|
608
|
+
}
|
|
609
|
+
.o-button-group-text svg { flex: none; width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); }
|
|
610
|
+
/* The line between two buttons with no edge of their own. */
|
|
611
|
+
.o-button-group-sep { flex: none; align-self: stretch; width: var(--vk-border-width); background-color: var(--vk-border-input); }
|
|
612
|
+
.o-button-group[data-orientation="vertical"] > .o-button-group-sep { width: auto; height: var(--vk-border-width); }
|
|
613
|
+
|
|
614
|
+
/* ── Measured sizes, and a Button's own look ─────────────────────────────────────────────────
|
|
615
|
+
The sizes the looks drew, named by their measures (Attio's captures and the look's sketches): 20 and 22 square as icons, 26 high,
|
|
616
|
+
20 × 24, 32 × 44 and 40 × 44 boxes, and line, its words' own line with no room round them. A Button's own look (own-look.ts) is
|
|
617
|
+
set on the Button itself, beside data-button-own: each option it names, it keeps; what it doesn't name, the frame sets. */
|
|
618
|
+
.o-button-20 { height: calc(var(--vk-spacing) * 5); padding: 0 calc(var(--vk-spacing) * 2); gap: var(--vk-spacing); font-size: var(--vk-font-size-xs); }
|
|
619
|
+
.o-button-22 { height: calc(var(--vk-spacing) * 5.5); padding: 0 calc(var(--vk-spacing) * 2); gap: var(--vk-spacing); font-size: var(--vk-font-size-xs); }
|
|
620
|
+
.o-button-26 { height: calc(var(--vk-spacing) * 6.5); padding: 0 calc(var(--vk-spacing) * 1.5); gap: var(--vk-spacing); font-size: var(--vk-font-size-xs); }
|
|
621
|
+
.o-button-26:has(> [data-slot="vk-button-icon"]:first-child) { padding-left: var(--vk-spacing); }
|
|
622
|
+
.o-button.o-button-20x24 { width: calc(var(--vk-spacing) * 5); height: calc(var(--vk-spacing) * 6); aspect-ratio: auto; min-width: 0; padding: 0; }
|
|
623
|
+
.o-button.o-button-32x44 { width: calc(var(--vk-spacing) * 8); height: calc(var(--vk-spacing) * 11); aspect-ratio: auto; min-width: 0; padding: 0; font-size: var(--vk-font-size-base); }
|
|
624
|
+
/* 44: the md Button 44 high, square when icon-only or round; not a look's measure, so Pill pads it as md. */
|
|
625
|
+
.o-button-44 { height: calc(var(--vk-spacing) * 11); }
|
|
626
|
+
.o-button.o-button-40x44 { width: calc(var(--vk-spacing) * 10); height: calc(var(--vk-spacing) * 11); aspect-ratio: auto; min-width: 0; padding: 0; font-size: var(--vk-font-size-base); }
|
|
627
|
+
.o-button.o-button-line { height: auto; padding: 0; gap: calc(var(--vk-spacing) / 2); font-size: var(--vk-font-size-xs); line-height: inherit; }
|
|
628
|
+
.o-button.o-button-line.o-button-icon { width: auto; aspect-ratio: auto; }
|
|
629
|
+
.o-button:is(.o-button-20, .o-button-22, .o-button-26, .o-button-line) > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 3); height: calc(var(--vk-spacing) * 3); }
|
|
630
|
+
.o-button:is(.o-button-20, .o-button-22, .o-button-26, .o-button-line):is(.o-button-icon, .o-button-round) > [data-slot="vk-button-icon"] > svg,
|
|
631
|
+
.o-button.o-button-20x24 > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 3.5); height: calc(var(--vk-spacing) * 3.5); }
|
|
632
|
+
.o-button:is(.o-button-32x44, .o-button-40x44) > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 6); height: calc(var(--vk-spacing) * 6); }
|
|
633
|
+
|
|
634
|
+
/* Its radius and its corner, its edge, its words. */
|
|
635
|
+
.o-button[data-button-own][data-button-radius="none"] { --button-r: 0px; }
|
|
636
|
+
.o-button[data-button-own][data-button-radius="xs"] { --button-r: var(--vk-radius-xs); }
|
|
637
|
+
.o-button[data-button-own][data-button-radius="sm"] { --button-r: var(--vk-radius-sm); }
|
|
638
|
+
.o-button[data-button-own][data-button-radius="md"] { --button-r: var(--vk-radius-md); }
|
|
639
|
+
.o-button[data-button-own][data-button-corner="round"] { }
|
|
640
|
+
.o-button[data-button-own][data-button-edge="none"] { --button-line: 0px; }
|
|
641
|
+
.o-button[data-button-own][data-button-words], .o-button[data-button-own][data-button-words="inherit"] { font: inherit; }
|
|
642
|
+
.o-button[data-button-own][data-button-words="xs"] { font-size: var(--vk-font-size-xs); }
|
|
643
|
+
.o-button[data-button-own][data-button-words="sm"] { font-size: var(--vk-font-size-sm); }
|
|
644
|
+
.o-button[data-button-own][data-button-words="xs-medium"] { font-size: var(--vk-font-size-xs); font-weight: var(--vk-font-weight-medium); }
|
|
645
|
+
/* Its colour, kept in every state but disabled (a press's and the pointer's colour among them), unless disabled plain. */
|
|
646
|
+
.o-button[data-button-own][data-button-colour="faint"]:is(:not(:disabled, [data-disabled]), [data-button-disabled="plain"]) { color: var(--vk-fg-subtlest); }
|
|
647
|
+
.o-button[data-button-own][data-button-colour="link"]:is(:not(:disabled, [data-disabled]), [data-button-disabled="plain"]) { color: var(--vk-fg-brand); }
|
|
648
|
+
.o-button[data-button-own][data-button-colour="text"]:is(:not(:disabled, [data-disabled]), [data-button-disabled="plain"]) { color: var(--vk-fg); }
|
|
649
|
+
.o-button[data-button-own][data-button-colour="inherit"]:is(:not(:disabled, [data-disabled]), [data-button-disabled="plain"]) { color: inherit; }
|
|
650
|
+
.o-button[data-button-own][data-button-disabled="plain"]:is(:disabled, [data-disabled]) { cursor: default; }
|
|
651
|
+
/* Its icons: their size, and their colour apart from its words. */
|
|
652
|
+
.o-button[data-button-own][data-button-icon="12"] > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 3); height: calc(var(--vk-spacing) * 3); }
|
|
653
|
+
.o-button[data-button-own][data-button-icon="14"] > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 3.5); height: calc(var(--vk-spacing) * 3.5); }
|
|
654
|
+
.o-button[data-button-own][data-button-icon="15"] > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 3.75); height: calc(var(--vk-spacing) * 3.75); }
|
|
655
|
+
.o-button[data-button-own][data-button-icon="16"] > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); }
|
|
656
|
+
.o-button[data-button-own][data-button-icon="20"] > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 5); height: calc(var(--vk-spacing) * 5); }
|
|
657
|
+
.o-button[data-button-own][data-button-icon-colour="faint"] > [data-slot="vk-button-icon"] > svg { color: var(--vk-fg-subtlest); }
|
|
658
|
+
/* Its room left and right, and between its words and its icons. */
|
|
659
|
+
.o-button[data-button-own][data-button-pad="4"] { padding: 0 var(--vk-spacing); }
|
|
660
|
+
.o-button[data-button-own][data-button-pad="6"] { padding: 0 calc(var(--vk-spacing) * 1.5); }
|
|
661
|
+
.o-button[data-button-own][data-button-pad="8"] { padding: 0 calc(var(--vk-spacing) * 2); }
|
|
662
|
+
.o-button[data-button-own][data-button-gap="4"] { gap: var(--vk-spacing); }
|
|
663
|
+
/* Under the pointer: with hover none the kit's own hovers skip it (above); with hover words, its words alone take the text's
|
|
664
|
+
colour. Open, the ground it has under the pointer, on a popup's the overlay's. */
|
|
665
|
+
@media (hover: hover) { .o-button-quiet[data-button-own][data-button-hover="words"]:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { color: var(--vk-fg); } }
|
|
666
|
+
.o-button[data-button-own][data-button-open="hovered"][aria-expanded="true"]:not(:disabled, [data-disabled]) { --button-ground: var(--vk-hovered); color: var(--vk-fg); }
|
|
667
|
+
:where(.o-popover, .o-sheet, .o-modal, .o-drawer, .o-alert-dialog, .o-pane) .o-button[data-button-own][data-button-open="hovered"][aria-expanded="true"]:not(:disabled, [data-disabled]) { --button-ground: var(--vk-overlay-hovered); }
|
|
668
|
+
.o-button[data-button-own][data-button-cursor="grab"]:not(:disabled, [data-disabled]) { cursor: grab; }
|
|
669
|
+
/* Pressed on a card in a popup: the card's pressed step, over the popup's own press. */
|
|
670
|
+
.o-button[data-button-own][data-button-press="card"]:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-overlay-card-pressed); }
|
|
671
|
+
/* its words at its start, its label growing so an end icon stands at its end; its words semibold, over its words' own. */
|
|
672
|
+
.o-button[data-button-own][data-button-align="start"] { justify-content: flex-start; text-align: start; }
|
|
673
|
+
.o-button[data-button-own][data-button-align="start"] > [data-slot="vk-button-label"] { flex-grow: 1; }
|
|
674
|
+
.o-button[data-button-own][data-button-weight="semibold"] { font-weight: var(--vk-font-weight-semibold); }
|
|
675
|
+
/* Its last icon (its end icon, or its one icon) turns a quarter clockwise while what it opens is open, or a quarter back while shut. */
|
|
676
|
+
.o-button[data-button-own]:is([data-button-turn="quarter"], [data-button-turn="back"]) > [data-slot="vk-button-icon"]:not(:has(~ [data-slot="vk-button-icon"])) > svg { transition: rotate var(--vk-duration-fast) var(--vk-ease-out); }
|
|
677
|
+
.o-button[data-button-own][data-button-turn="quarter"][aria-expanded="true"] > [data-slot="vk-button-icon"]:not(:has(~ [data-slot="vk-button-icon"])) > svg { rotate: 90deg; }
|
|
678
|
+
.o-button[data-button-own][data-button-turn="back"][aria-expanded="false"] > [data-slot="vk-button-icon"]:not(:has(~ [data-slot="vk-button-icon"])) > svg { rotate: -90deg; }
|
|
679
|
+
/* A dot at its top end corner, saying something is on. */
|
|
680
|
+
.o-button[data-button-own][data-button-dot="brand"]::after {
|
|
681
|
+
content: ""; position: absolute; top: var(--vk-spacing); right: var(--vk-spacing); width: var(--vk-dot-size); height: var(--vk-dot-size);
|
|
682
|
+
border-radius: 50%; background-color: var(--vk-brand); pointer-events: none;
|
|
683
|
+
}
|
|
684
|
+
/* Its words cut with … where its place is narrower than they are. Its line is as tall as its words (line-height 1), and their
|
|
685
|
+
ascent and descent reach past it, so the hidden overflow would shave the tails of g, p and y: the label's clip reaches a step
|
|
686
|
+
past its line above and below, taken back by its margin, so the Button's height and its words' place stay. */
|
|
687
|
+
.o-button[data-button-own][data-button-cut="end"] > [data-slot="vk-button-label"] {
|
|
688
|
+
min-width: 0; overflow: hidden; text-overflow: ellipsis;
|
|
689
|
+
padding-block: var(--vk-spacing); margin-block: calc(var(--vk-spacing) * -1);
|
|
690
|
+
}
|
|
691
|
+
/* Room at its end for something laid over it: it wins over Pill's padding by standing after it, as specific (0,3,0). */
|
|
692
|
+
.o-button[data-button-own][data-button-end-room="30"] { padding-right: calc(var(--vk-spacing) * 7.5); }
|
|
693
|
+
/* Its icons subtle, kept while its words take the text's colour under the pointer. */
|
|
694
|
+
.o-button[data-button-own][data-button-icon-colour="subtle"]:not(:disabled, [data-disabled]) > [data-slot="vk-button-icon"] > svg { color: var(--vk-fg-subtle); }
|
|
695
|
+
/* The values the Date and Text editors' looks need, each as measured from Attio's captures or the look's sketches. The
|
|
696
|
+
radius lg; no sides, or 6 at the start and 4 at the end; gaps of 3 to 10; 18px words; medium, after the words (which set the
|
|
697
|
+
place's font); digits one width each; the icon in the brand's colour. */
|
|
698
|
+
.o-button[data-button-own][data-button-radius="lg"] { --button-r: var(--vk-radius-lg); }
|
|
699
|
+
.o-button[data-button-own][data-button-pad="0"] { padding: 0; }
|
|
700
|
+
.o-button[data-button-own][data-button-pad="6-4"] { padding: 0 var(--vk-spacing) 0 calc(var(--vk-spacing) * 1.5); }
|
|
701
|
+
.o-button[data-button-own][data-button-gap="3"] { gap: calc(var(--vk-spacing) * 3 / 4); }
|
|
702
|
+
.o-button[data-button-own][data-button-gap="6"] { gap: calc(var(--vk-spacing) * 1.5); }
|
|
703
|
+
.o-button[data-button-own][data-button-gap="8"] { gap: calc(var(--vk-spacing) * 2); }
|
|
704
|
+
.o-button[data-button-own][data-button-gap="10"] { gap: calc(var(--vk-spacing) * 2.5); }
|
|
705
|
+
.o-button[data-button-own][data-button-words="lg"] { font-size: var(--vk-font-size-lg); }
|
|
706
|
+
.o-button[data-button-own][data-button-weight="medium"] { font-weight: var(--vk-font-weight-medium); }
|
|
707
|
+
.o-button[data-button-own][data-button-digits="tabular"] { font-variant-numeric: tabular-nums; }
|
|
708
|
+
.o-button[data-button-own][data-button-icon-colour="brand"]:not(:disabled, [data-disabled]) > [data-slot="vk-button-icon"] > svg { color: var(--vk-fg-accent); }
|
|
709
|
+
/* Under the pointer, a ground of its own: the popup's hover, or the neutral ground (pressed too). (0,5,0), over the kit's press and
|
|
710
|
+
its popup hover. */
|
|
711
|
+
@media (hover: hover) {
|
|
712
|
+
.o-button[data-button-own][data-button-hover="overlay"]:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-overlay-hovered); }
|
|
713
|
+
.o-button[data-button-own][data-button-hover="neutral"]:is(:hover, :active):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-neutral); }
|
|
714
|
+
}
|
|
715
|
+
/* Open: its words and icons in the brand's colour, over its own colour; or the neutral ground. */
|
|
716
|
+
.o-button[data-button-own][data-button-open="brand"][aria-expanded="true"]:not(:disabled, [data-disabled]) { color: var(--vk-fg-accent); }
|
|
717
|
+
.o-button[data-button-own][data-button-open="brand"][aria-expanded="true"]:not(:disabled, [data-disabled]) > [data-slot="vk-button-icon"] > svg { color: var(--vk-fg-accent); }
|
|
718
|
+
.o-button[data-button-own][data-button-open="neutral"][aria-expanded="true"]:not(:disabled, [data-disabled]) { --button-ground: var(--vk-neutral); }
|
|
719
|
+
/* Standing pressed (aria-pressed="true"): the popup's hover as its ground, its words the text's. */
|
|
720
|
+
.o-button[data-button-own][data-button-pressed="hovered"][aria-pressed="true"]:not(:disabled, [data-disabled]) { --button-ground: var(--vk-overlay-hovered); color: var(--vk-fg); }
|
|
721
|
+
|
|
722
|
+
/* ── Corner smoothing: the Button's own (data-button-smoothing, looks.ts), The app's, with nothing set, following the
|
|
723
|
+
token corner-smoothing (Round is the token at 0), Smooth and Round setting it apart; the Toggle, the Toolbar
|
|
724
|
+
button and the Menubar's triggers are Buttons, so they follow it (the Toolbar button's own Smooth or Round, data-smoothing, wins).
|
|
725
|
+
Drawn with the smooth outline (smooth.css, beside the controls) in every browser that knows shape(); one that doesn't keeps the corners
|
|
726
|
+
above, and so do Round, a Button whose own corner is round, a dashed edge (the Toolbar's empty place, the Avatar's add) and a
|
|
727
|
+
Button joined in a group or a Toolbar button joined to its neighbours (data-joined) (the outline has no corners apart left
|
|
728
|
+
and right: in Chromium its squircle, as before), which paint
|
|
729
|
+
themselves from their variables as before. The Button itself is never clipped: its depth, its press, its focus ring and a phone's
|
|
730
|
+
pressing area (an app's own, its ::after) stand outside it, whole. Its ground and edge are handed to its cut (.o-button-cut, its
|
|
731
|
+
last child, over its border box): the ground (::before) clipped by the outline, with the depth's inset light again inside it,
|
|
732
|
+
the edge (::after) a ring along it, its foot from a corner's height up. The cut is a size container, so its layers read the
|
|
733
|
+
Button's own side (100cqmin) whatever height a place gives it: the corner its radius fitted to that side as a control's is,
|
|
734
|
+
side / (2 + 2 × amount), and a pill's (a radius of Full's size: round, Full, a pill) half the side, a stadium, smoothing none. ──────── */
|
|
735
|
+
.o-button-cut { display: none; }
|
|
736
|
+
.o-button-group > :is(.o-button, .o-button-group-text):not([data-button-smoothing="round"] *, [data-button-radius="full"] *, .o-button-round, [data-button-own][data-button-corner="round"]), .o-button.o-toolbar-button[data-joined]:not([data-button-smoothing="round"] *, [data-button-radius="full"] *, .o-button-round, [data-button-own][data-button-corner="round"], [data-smoothing="round"], [data-corners="full"]) { corner-shape: squircle; }
|
|
737
|
+
@supports (clip-path: shape(evenodd from 0 0, curve by 1px 1px with 1px 0 / 1px 0, close, move to 0 0, hline to 1px, close)) and (width: calc(tan(atan2(1px, 1px)) * 1px)) and (container-type: size) {
|
|
738
|
+
/* Its side: the shorter of its sides as each size gives its height (its width where it is the narrower), which its own
|
|
739
|
+
corner, below, is fitted to, as it can't measure it (its cut does, for its ground). Each rule names the Button its height's rule
|
|
740
|
+
names, in the same order, so the same one wins; a place that gives a Button a height of its own says its side there. */
|
|
741
|
+
:where(.o-button) { --button-side: calc(var(--vk-spacing) * 9); }
|
|
742
|
+
.o-button-2xs { --button-side: calc(var(--vk-spacing) * 6); }
|
|
743
|
+
.o-button-xs { --button-side: calc(var(--vk-spacing) * 7); }
|
|
744
|
+
.o-button-sm { --button-side: calc(var(--vk-spacing) * 8); }
|
|
745
|
+
.o-button-lg { --button-side: calc(var(--vk-spacing) * 11); }
|
|
746
|
+
.o-button-20 { --button-side: calc(var(--vk-spacing) * 5); }
|
|
747
|
+
.o-button-22 { --button-side: calc(var(--vk-spacing) * 5.5); }
|
|
748
|
+
.o-button-26 { --button-side: calc(var(--vk-spacing) * 6.5); }
|
|
749
|
+
.o-button.o-button-20x24 { --button-side: calc(var(--vk-spacing) * 5); }
|
|
750
|
+
.o-button.o-button-32x44 { --button-side: calc(var(--vk-spacing) * 8); }
|
|
751
|
+
.o-button-44 { --button-side: calc(var(--vk-spacing) * 11); }
|
|
752
|
+
.o-button.o-button-40x44 { --button-side: calc(var(--vk-spacing) * 10); }
|
|
753
|
+
.o-button.o-button-line { --button-side: calc(1lh + var(--button-line) * 2); }
|
|
754
|
+
.o-button.o-button-line.o-button-icon { --button-side: calc(var(--vk-spacing) * 3.5 + var(--button-line) * 2); }
|
|
755
|
+
/* Its own corner is its ground's, so the focus ring and the depth it paints itself, a place's ring with them (an
|
|
756
|
+
offset, an inset ring, the browser's own), stand on the fitted corner: the cut's sum, from the side its size declares
|
|
757
|
+
(--button-side, above), as it can't measure its own. Where it takes no smoothing (a pill, or the token at Round) its corner is
|
|
758
|
+
its radius, as on main, which the browser holds to half its real side: so a pill's side is never told too short. */
|
|
759
|
+
:is(.o-button:not([data-button-smoothing="round"] *), .o-button.o-toolbar-button[data-smoothing="smooth"]):not(.o-toolbar-button[data-smoothing="round"], [data-button-own][data-button-corner="round"], .o-button-group > *, .o-toolbar-button[data-joined], .o-toolbar-button[data-empty], .o-avatar-add):has(> .o-button-cut) {
|
|
760
|
+
isolation: isolate; background-color: transparent; background-image: none; border-color: transparent;
|
|
761
|
+
--button-own-amount: calc(var(--vk-corner-smoothing) * (1 - clamp(0, tan(atan2(var(--button-r) - 500px, 1px)), 1)));
|
|
762
|
+
border-radius: min(var(--button-r), var(--button-side) / (2 + 2 * var(--button-own-amount)) + (1 - clamp(0, var(--button-own-amount) * 1000, 1)) * 100000px);
|
|
763
|
+
}
|
|
764
|
+
:is(.o-button:not([data-button-smoothing="round"] *), .o-button.o-toolbar-button[data-smoothing="smooth"]):not(.o-toolbar-button[data-smoothing="round"], [data-button-own][data-button-corner="round"], .o-button-group > *, .o-toolbar-button[data-joined], .o-toolbar-button[data-empty], .o-avatar-add):has(> .o-button-cut):is([data-button-smoothing="smooth"] *, .o-toolbar-button[data-smoothing="smooth"]) {
|
|
765
|
+
--button-own-amount: calc(0.7 * (1 - clamp(0, tan(atan2(var(--button-r) - 500px, 1px)), 1)));
|
|
766
|
+
}
|
|
767
|
+
:is(.o-button:not([data-button-smoothing="round"] *), .o-button.o-toolbar-button[data-smoothing="smooth"]):not(.o-toolbar-button[data-smoothing="round"], [data-button-own][data-button-corner="round"], .o-button-group > *, .o-toolbar-button[data-joined], .o-toolbar-button[data-empty], .o-avatar-add) > .o-button-cut {
|
|
768
|
+
display: block; position: absolute; inset: calc(var(--button-line) * -1); z-index: -1; pointer-events: none; container-type: size;
|
|
769
|
+
transition-property: none; transition-duration: inherit; transition-timing-function: inherit;
|
|
770
|
+
}
|
|
771
|
+
/* What draws, inside the cut, which reads the cut's side (100cqmin). A pill (a radius of Full's size: round, Full, the pill places)
|
|
772
|
+
takes no smoothing, so its corner, fitted to its side, is half of it: a stadium. Each worked out from the radius alone; the outline
|
|
773
|
+
itself stays small as smooth.css registers its radius, side and numbers. The outline's other inputs inherit, so none of a holder's (a
|
|
774
|
+
Sheet's bottom corners, a Menubar's inset, a list's row) reaches it. */
|
|
775
|
+
.o-button > .o-button-cut > .o-smooth {
|
|
776
|
+
--button-pill: clamp(0, tan(atan2(var(--button-r) - 500px, 1px)), 1); --button-side: 100cqmin; --smooth-side: var(--button-side);
|
|
777
|
+
--smooth-amount: calc(var(--vk-corner-smoothing) * (1 - var(--button-pill)));
|
|
778
|
+
--button-fit: min(var(--button-r), var(--button-side) / (2 + 2 * var(--smooth-amount, 0.7)));
|
|
779
|
+
--smooth-t: var(--button-fit); --smooth-b: initial; --smooth-foot: initial; --smooth-in: initial;
|
|
780
|
+
position: absolute; inset: 0; transition-property: none; transition-duration: inherit; transition-timing-function: inherit;
|
|
781
|
+
}
|
|
782
|
+
[data-button-smoothing="smooth"] .o-button > .o-button-cut > .o-smooth.o-smooth, .o-button.o-toolbar-button[data-smoothing="smooth"] > .o-button-cut > .o-smooth.o-smooth { --smooth-amount: calc(0.7 * (1 - var(--button-pill))); }
|
|
783
|
+
.o-button > .o-button-cut > .o-smooth::before, .o-button > .o-button-cut > .o-smooth::after {
|
|
784
|
+
content: ""; position: absolute; inset: 0; box-sizing: border-box;
|
|
785
|
+
transition-property: background-color, box-shadow; transition-duration: inherit; transition-timing-function: inherit;
|
|
786
|
+
}
|
|
787
|
+
/* The ground over the border box, under a clear edge as wide as the Button's, so the depth's inset light stands where it stood. */
|
|
788
|
+
.o-button > .o-button-cut > .o-smooth::before {
|
|
789
|
+
border: var(--button-line) solid transparent; border-radius: var(--button-fit);
|
|
790
|
+
background-color: var(--button-ground); background-image: var(--button-light); box-shadow: var(--button-depth); clip-path: shape(var(--smooth-outline));
|
|
791
|
+
}
|
|
792
|
+
.o-button > .o-button-cut > .o-smooth::after {
|
|
793
|
+
--smooth-t: max(0px, var(--button-fit) - var(--button-line)); --smooth-in: var(--button-line);
|
|
794
|
+
background-image: linear-gradient(var(--button-edge) calc(100% - var(--button-fit)), var(--button-edge-foot) 0); clip-path: shape(var(--smooth-ring));
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
/* Under reduced motion nothing moves; the colours still change. */
|
|
799
|
+
@media (prefers-reduced-motion: reduce) {
|
|
800
|
+
.o-button { transition-property: background-color, border-color, color, box-shadow; }
|
|
801
|
+
.o-button, .o-button:is(:active, [data-force]) { translate: none !important; scale: none !important; }
|
|
802
|
+
.o-button[data-button-own]:is([data-button-turn="quarter"], [data-button-turn="back"]) > [data-slot="vk-button-icon"]:not(:has(~ [data-slot="vk-button-icon"])) > svg { transition: none; }
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
/* ── The arc, as a frame that names a kind other than the tail draws it (nothing picked is the tail, below) ─────────────────────────────────────────────────────────────────────── */
|
|
806
|
+
.o-spinner {
|
|
807
|
+
--o-spinner-turn: var(--vk-spinner-turn); --o-spinner-breath: var(--vk-spinner-breath); --o-spinner-weight: 1;
|
|
808
|
+
flex: none; display: inline-block; color: inherit;
|
|
809
|
+
animation: vk-spin-turn var(--o-spinner-turn) linear infinite; animation-delay: calc(var(--o-spinner-turn) * -0.25);
|
|
810
|
+
}
|
|
811
|
+
.o-spinner > :is(.o-spinner-track, .o-spinner-arc) { fill: none; stroke: currentColor; stroke-width: calc(var(--o-spinner-l) * var(--o-spinner-weight) * 1px); }
|
|
812
|
+
.o-spinner > :is(.o-spinner-track, .o-spinner-bars, .o-spinner-dot, .o-spinner-ring) { display: none; }
|
|
813
|
+
.o-spinner-track { opacity: 0.14; }
|
|
814
|
+
.o-spinner-arc {
|
|
815
|
+
stroke-linecap: round; stroke-dasharray: 1 200; stroke-dashoffset: 0;
|
|
816
|
+
animation: vk-spin-breath var(--o-spinner-breath) linear infinite; animation-delay: calc(var(--o-spinner-breath) * -0.5);
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
/* ── Breath, the arc's. Slower: the same at two thirds of its speed. Never a dot: the same two beats, eased, between an eighth
|
|
820
|
+
and five eighths of the ring. Soft: both ends ease out and back round a middle that turns steadily. Barely: the same,
|
|
821
|
+
between a third and a half of the ring ───────────────────────────────────────────────────────────────────────── */
|
|
822
|
+
[data-spinner-breath="slow"] .o-spinner { --o-spinner-turn: calc(var(--vk-spinner-turn) * 1.45); --o-spinner-breath: calc(var(--vk-spinner-breath) * 1.45); }
|
|
823
|
+
[data-spinner-breath="open"] .o-spinner { --o-spinner-turn: calc(var(--vk-spinner-turn) * 2.2); --o-spinner-breath: calc(var(--vk-spinner-breath) * 1.6); }
|
|
824
|
+
[data-spinner-breath="soft"] .o-spinner { --o-spinner-turn: calc(var(--vk-spinner-turn) * 0.8); --o-spinner-breath: calc(var(--vk-spinner-breath) * 1.85); }
|
|
825
|
+
[data-spinner-breath="barely"] .o-spinner { --o-spinner-turn: calc(var(--vk-spinner-turn) * 0.7); --o-spinner-breath: calc(var(--vk-spinner-breath) * 2.15); }
|
|
826
|
+
[data-spinner-breath="open"] .o-spinner-arc { animation-name: vk-spin-open; animation-timing-function: var(--vk-ease-in-out); }
|
|
827
|
+
[data-spinner-breath="soft"] .o-spinner-arc { animation-name: vk-spin-soft; animation-timing-function: var(--vk-ease-in-out); }
|
|
828
|
+
[data-spinner-breath="barely"] .o-spinner-arc { animation-name: vk-spin-barely; animation-timing-function: var(--vk-ease-in-out); }
|
|
829
|
+
|
|
830
|
+
/* ── Line and Track, a ring's: its line lighter, and a faint ring under it ──────────────────────────────────────── */
|
|
831
|
+
[data-spinner-line="thin"] .o-spinner { --o-spinner-weight: 0.65; }
|
|
832
|
+
[data-spinner-track="faint"] .o-spinner > .o-spinner-track { display: inline; }
|
|
833
|
+
|
|
834
|
+
/* ── Kind. These come after Breath, so a kind that isn't the arc takes its own pace and stills the arc's breath.
|
|
835
|
+
Tail: the ring fading out behind its head, steady, only its place changing. The fade is painted on the drawing's own box
|
|
836
|
+
and cut to the ring's line; the arc is its round head, a dot where the fade ends.
|
|
837
|
+
Two halves: two arcs a fifth of the ring each, opposite each other, turning slowly ─────────────────────────────── */
|
|
838
|
+
[data-spinner-kind="tail"] .o-spinner, .o-spinner:not([data-spinner-kind] *) {
|
|
839
|
+
--o-spinner-turn: calc(var(--vk-spinner-turn) * 0.65);
|
|
840
|
+
--o-spinner-in: calc((20 - var(--o-spinner-l) * var(--o-spinner-weight) / 2) * 4%); --o-spinner-out: calc((20 + var(--o-spinner-l) * var(--o-spinner-weight) / 2) * 4%);
|
|
841
|
+
border-radius: var(--vk-radius-full);
|
|
842
|
+
background-image: conic-gradient(transparent 0turn, color-mix(in srgb, currentColor 48%, transparent) 0.133turn, color-mix(in srgb, currentColor 73%, transparent) 0.267turn,
|
|
843
|
+
color-mix(in srgb, currentColor 86%, transparent) 0.4turn, color-mix(in srgb, currentColor 93%, transparent) 0.533turn, transparent 0.533turn);
|
|
844
|
+
-webkit-mask-image: radial-gradient(farthest-side, transparent calc(var(--o-spinner-in) - 0.5px), black var(--o-spinner-in), black var(--o-spinner-out), transparent calc(var(--o-spinner-out) + 0.5px));
|
|
845
|
+
mask-image: radial-gradient(farthest-side, transparent calc(var(--o-spinner-in) - 0.5px), black var(--o-spinner-in), black var(--o-spinner-out), transparent calc(var(--o-spinner-out) + 0.5px));
|
|
846
|
+
}
|
|
847
|
+
[data-spinner-kind="tail"] .o-spinner-arc, .o-spinner-arc:not([data-spinner-kind] *) { animation: none; stroke-dasharray: 0.01 200; stroke-dashoffset: -35.57; }
|
|
848
|
+
[data-spinner-kind="halves"] .o-spinner { --o-spinner-turn: calc(var(--vk-spinner-turn) * 1.1); }
|
|
849
|
+
[data-spinner-kind="halves"] .o-spinner-arc { animation: none; stroke-dasharray: 25.13 37.7; stroke-dashoffset: 0; }
|
|
850
|
+
|
|
851
|
+
/* Bars and the pulse stand still as a whole: only their parts move. */
|
|
852
|
+
:is([data-spinner-kind="bars"], [data-spinner-kind="pulse"]) .o-spinner { animation: none; }
|
|
853
|
+
:is([data-spinner-kind="bars"], [data-spinner-kind="pulse"]) .o-spinner > :is(.o-spinner-track, .o-spinner-arc) { display: none; }
|
|
854
|
+
|
|
855
|
+
/* Bars: three growing from their middle, from three eighths of their height to all of it, one beat every half turn, each a
|
|
856
|
+
fifth of a beat after the one before. Eased: each bar slows at its ends, one beat a breath. From the foot: five, from a
|
|
857
|
+
fifth of their height, each at its own pace (--o-spinner-pace) and place in it (--o-spinner-at) */
|
|
858
|
+
[data-spinner-kind="bars"]:not([data-spinner-bars="foot"]) .o-spinner > .o-spinner-bars:not(.o-spinner-foot),
|
|
859
|
+
[data-spinner-kind="bars"][data-spinner-bars="foot"] .o-spinner > .o-spinner-foot { display: inline; }
|
|
860
|
+
.o-spinner-bars > rect {
|
|
861
|
+
--o-spinner-beat: calc(var(--vk-spinner-turn) * 0.5);
|
|
862
|
+
fill: currentColor; transform-box: fill-box; transform-origin: center;
|
|
863
|
+
animation: vk-spin-bar var(--o-spinner-beat) linear infinite; animation-delay: calc(var(--o-spinner-beat) * var(--o-spinner-at));
|
|
864
|
+
}
|
|
865
|
+
[data-spinner-bars="eased"] .o-spinner-bars > rect { --o-spinner-beat: var(--vk-spinner-breath); animation-timing-function: var(--vk-ease-in-out); }
|
|
866
|
+
.o-spinner-foot > rect {
|
|
867
|
+
--o-spinner-beat: calc(var(--vk-spinner-breath) * var(--o-spinner-pace)); transform-origin: 50% 100%;
|
|
868
|
+
animation-name: vk-spin-foot; animation-timing-function: var(--vk-ease-in-out); animation-delay: calc(var(--vk-spinner-breath) * var(--o-spinner-at));
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
/* The pulse: a dot, and a ring that leaves it and fades, once every four fifths of a turn. */
|
|
872
|
+
[data-spinner-kind="pulse"] .o-spinner > :is(.o-spinner-dot, .o-spinner-ring) { display: inline; }
|
|
873
|
+
.o-spinner-dot { fill: currentColor; }
|
|
874
|
+
.o-spinner-ring {
|
|
875
|
+
--o-spinner-beat: calc(var(--vk-spinner-turn) * 0.8);
|
|
876
|
+
fill: none; stroke: currentColor; stroke-width: 3.33px; opacity: 0;
|
|
877
|
+
animation: vk-spin-ring var(--o-spinner-beat) var(--vk-ease-out) infinite, vk-spin-fade var(--o-spinner-beat) linear infinite;
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
/* ── The loading bar: along the top of the box that holds what is loading again, half a spacing step high, in the brand. A
|
|
881
|
+
third of it slides across, in the Progress's time and on its curve; under Loading bar › Soft ends (data-spinner-loading)
|
|
882
|
+
a longer piece fades out at both ends and takes a little longer. What it holds dims to loading-dim, quickly, and comes
|
|
883
|
+
back in duration-base ────────────────────────────────────────────────────────────────────────────────────────── */
|
|
884
|
+
.o-loading { position: relative; min-width: 0; }
|
|
885
|
+
.o-loading-bar { --o-loading-share: 0.35; position: absolute; inset: 0 0 auto 0; z-index: 1; display: block; height: calc(var(--vk-spacing) * 0.5); overflow: hidden; pointer-events: none; }
|
|
886
|
+
.o-loading-bar::before {
|
|
887
|
+
content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--o-loading-share) * 100%); background-color: var(--vk-brand);
|
|
888
|
+
animation: vk-loading-slide calc(var(--vk-progress-slide) * 0.85) var(--vk-ease-in-out) infinite;
|
|
889
|
+
}
|
|
890
|
+
[data-spinner-loading="soft"] .o-loading-bar, .o-loading-bar:not([data-spinner-loading] *) { --o-loading-share: 0.48; }
|
|
891
|
+
[data-spinner-loading="soft"] .o-loading-bar::before, .o-loading-bar:not([data-spinner-loading] *)::before {
|
|
892
|
+
background-color: transparent; animation-duration: calc(var(--vk-progress-slide) * 1.15);
|
|
893
|
+
background-image: linear-gradient(90deg, transparent, color-mix(in srgb, var(--vk-brand) 50%, transparent) 17%, color-mix(in srgb, var(--vk-brand) 75%, transparent) 33%,
|
|
894
|
+
color-mix(in srgb, var(--vk-brand) 88%, transparent) 46% 54%, color-mix(in srgb, var(--vk-brand) 75%, transparent) 67%, color-mix(in srgb, var(--vk-brand) 50%, transparent) 83%, transparent);
|
|
895
|
+
}
|
|
896
|
+
.o-loading-held { min-width: 0; transition: opacity var(--vk-duration-base) var(--vk-ease-out); }
|
|
897
|
+
.o-loading[data-loading] > .o-loading-held { opacity: var(--vk-loading-dim); transition-duration: var(--vk-duration-fast); }
|
|
898
|
+
|
|
899
|
+
/* Under reduced motion a ring stops breathing and turns slowly, the bars and the pulse stand still, and the loading bar stands
|
|
900
|
+
across its box in the pale blue, as the Progress's does. */
|
|
901
|
+
@media (prefers-reduced-motion: reduce) {
|
|
902
|
+
.o-spinner { animation-duration: var(--vk-spinner-turn-reduced); }
|
|
903
|
+
.o-spinner-arc { stroke-dasharray: 80 200; }
|
|
904
|
+
:is(.o-spinner-arc, [data-spinner-breath] .o-spinner-arc) { animation: none; }
|
|
905
|
+
:is(.o-spinner-bars, [data-spinner-bars] .o-spinner-bars) > rect { animation: none; }
|
|
906
|
+
.o-spinner-bars > rect:nth-child(odd) { transform: scaleY(0.6); }
|
|
907
|
+
.o-spinner-ring { animation: none; opacity: 0.4; }
|
|
908
|
+
.o-loading-bar::before, [data-spinner-loading] .o-loading-bar::before, .o-loading-bar:not([data-spinner-loading] *)::before { animation: none; width: 100%; background-image: none; background-color: var(--vk-brand-subtler); }
|
|
909
|
+
.o-loading-held { transition: none; }
|
|
910
|
+
}
|
|
911
|
+
@keyframes vk-spin-turn { to { transform: rotate(360deg); } }
|
|
912
|
+
@keyframes vk-spin-breath {
|
|
913
|
+
0% { stroke-dasharray: 1 200; stroke-dashoffset: 0; }
|
|
914
|
+
50% { stroke-dasharray: 90 200; stroke-dashoffset: -35; }
|
|
915
|
+
100% { stroke-dasharray: 90 200; stroke-dashoffset: -124; }
|
|
916
|
+
}
|
|
917
|
+
@keyframes vk-spin-open {
|
|
918
|
+
0% { stroke-dasharray: 15.08 110.58; stroke-dashoffset: 0; }
|
|
919
|
+
50% { stroke-dasharray: 77.91 47.75; stroke-dashoffset: -30.16; }
|
|
920
|
+
100% { stroke-dasharray: 15.08 110.58; stroke-dashoffset: -125.66; }
|
|
921
|
+
}
|
|
922
|
+
@keyframes vk-spin-soft {
|
|
923
|
+
0%, 100% { stroke-dasharray: 27.65 98.02; stroke-dashoffset: 13.82; }
|
|
924
|
+
50% { stroke-dasharray: 72.89 52.78; stroke-dashoffset: 36.44; }
|
|
925
|
+
}
|
|
926
|
+
@keyframes vk-spin-barely {
|
|
927
|
+
0%, 100% { stroke-dasharray: 42.73 82.94; stroke-dashoffset: 21.36; }
|
|
928
|
+
50% { stroke-dasharray: 62.83 62.83; stroke-dashoffset: 31.42; }
|
|
929
|
+
}
|
|
930
|
+
@keyframes vk-spin-bar { 0%, 100% { transform: scaleY(0.375); } 50% { transform: scaleY(1); } }
|
|
931
|
+
@keyframes vk-spin-foot { 0%, 100% { transform: scaleY(0.22); } 50% { transform: scaleY(1); } }
|
|
932
|
+
@keyframes vk-spin-ring { from { r: 8.33px; } to { r: 21.88px; } }
|
|
933
|
+
@keyframes vk-spin-fade { from { opacity: 0.7; } to { opacity: 0; } }
|
|
934
|
+
@keyframes vk-loading-slide { from { transform: translateX(-100%); } to { transform: translateX(calc(100% / var(--o-loading-share))); } }
|
|
225
935
|
.\@container {
|
|
226
936
|
container-type: inline-size;
|
|
227
937
|
}
|
|
@@ -1323,51 +2033,51 @@
|
|
|
1323
2033
|
background-color: color-mix(in oklab, var(--vk-ground) calc(var(--vk-scrolled,0) * 100%), transparent);
|
|
1324
2034
|
}
|
|
1325
2035
|
}
|
|
1326
|
-
.bg-\[
|
|
1327
|
-
background-color: var(--vk-
|
|
2036
|
+
.bg-\[var\(--vk-info\,hsl\(199_89\%_48\%\)\)\] {
|
|
2037
|
+
background-color: var(--vk-info,hsl(199 89% 48%));
|
|
2038
|
+
}
|
|
2039
|
+
.bg-\[var\(--vk-label-amber-fill\,color-mix\(in_oklab\,var\(--vk-label-amber\,hsl\(38_92\%_50\%\)\)_15\%\,var\(--vk-ground\)\)\)\] {
|
|
2040
|
+
background-color: var(--vk-label-amber-fill,var(--vk-label-amber,hsl(38 92% 50%)));
|
|
1328
2041
|
@supports (color: color-mix(in lab, red, red)) {
|
|
1329
|
-
background-color: color-mix(in oklab,var(--vk-label-amber,hsl(38 92% 50%))
|
|
2042
|
+
background-color: var(--vk-label-amber-fill,color-mix(in oklab,var(--vk-label-amber,hsl(38 92% 50%)) 15%,var(--vk-ground)));
|
|
1330
2043
|
}
|
|
1331
2044
|
}
|
|
1332
|
-
.bg-\[color-mix\(in_oklab\,var\(--vk-label-blue\,hsl\(199_89\%_48\%\)\)
|
|
1333
|
-
background-color: var(--vk-label-blue,hsl(199 89% 48%));
|
|
2045
|
+
.bg-\[var\(--vk-label-blue-fill\,color-mix\(in_oklab\,var\(--vk-label-blue\,hsl\(199_89\%_48\%\)\)_15\%\,var\(--vk-ground\)\)\)\] {
|
|
2046
|
+
background-color: var(--vk-label-blue-fill,var(--vk-label-blue,hsl(199 89% 48%)));
|
|
1334
2047
|
@supports (color: color-mix(in lab, red, red)) {
|
|
1335
|
-
background-color: color-mix(in oklab,var(--vk-label-blue,hsl(199 89% 48%))
|
|
2048
|
+
background-color: var(--vk-label-blue-fill,color-mix(in oklab,var(--vk-label-blue,hsl(199 89% 48%)) 15%,var(--vk-ground)));
|
|
1336
2049
|
}
|
|
1337
2050
|
}
|
|
1338
|
-
.bg-\[color-mix\(in_oklab\,var\(--vk-label-green\,hsl\(160_84\%_39\%\)\)
|
|
1339
|
-
background-color: var(--vk-label-green,hsl(160 84% 39%));
|
|
2051
|
+
.bg-\[var\(--vk-label-green-fill\,color-mix\(in_oklab\,var\(--vk-label-green\,hsl\(160_84\%_39\%\)\)_15\%\,var\(--vk-ground\)\)\)\] {
|
|
2052
|
+
background-color: var(--vk-label-green-fill,var(--vk-label-green,hsl(160 84% 39%)));
|
|
1340
2053
|
@supports (color: color-mix(in lab, red, red)) {
|
|
1341
|
-
background-color: color-mix(in oklab,var(--vk-label-green,hsl(160 84% 39%))
|
|
2054
|
+
background-color: var(--vk-label-green-fill,color-mix(in oklab,var(--vk-label-green,hsl(160 84% 39%)) 15%,var(--vk-ground)));
|
|
1342
2055
|
}
|
|
1343
2056
|
}
|
|
1344
|
-
.bg-\[color-mix\(in_oklab\,var\(--vk-label-pink\,hsl\(330_81\%_60\%\)\)
|
|
1345
|
-
background-color: var(--vk-label-pink,hsl(330 81% 60%));
|
|
2057
|
+
.bg-\[var\(--vk-label-pink-fill\,color-mix\(in_oklab\,var\(--vk-label-pink\,hsl\(330_81\%_60\%\)\)_15\%\,var\(--vk-ground\)\)\)\] {
|
|
2058
|
+
background-color: var(--vk-label-pink-fill,var(--vk-label-pink,hsl(330 81% 60%)));
|
|
1346
2059
|
@supports (color: color-mix(in lab, red, red)) {
|
|
1347
|
-
background-color: color-mix(in oklab,var(--vk-label-pink,hsl(330 81% 60%))
|
|
2060
|
+
background-color: var(--vk-label-pink-fill,color-mix(in oklab,var(--vk-label-pink,hsl(330 81% 60%)) 15%,var(--vk-ground)));
|
|
1348
2061
|
}
|
|
1349
2062
|
}
|
|
1350
|
-
.bg-\[color-mix\(in_oklab\,var\(--vk-label-purple\,hsl\(258_90\%_66\%\)\)
|
|
1351
|
-
background-color: var(--vk-label-purple,hsl(258 90% 66%));
|
|
2063
|
+
.bg-\[var\(--vk-label-purple-fill\,color-mix\(in_oklab\,var\(--vk-label-purple\,hsl\(258_90\%_66\%\)\)_15\%\,var\(--vk-ground\)\)\)\] {
|
|
2064
|
+
background-color: var(--vk-label-purple-fill,var(--vk-label-purple,hsl(258 90% 66%)));
|
|
1352
2065
|
@supports (color: color-mix(in lab, red, red)) {
|
|
1353
|
-
background-color: color-mix(in oklab,var(--vk-label-purple,hsl(258 90% 66%))
|
|
2066
|
+
background-color: var(--vk-label-purple-fill,color-mix(in oklab,var(--vk-label-purple,hsl(258 90% 66%)) 15%,var(--vk-ground)));
|
|
1354
2067
|
}
|
|
1355
2068
|
}
|
|
1356
|
-
.bg-\[color-mix\(in_oklab\,var\(--vk-label-red\,hsl\(0_84\%_60\%\)\)
|
|
1357
|
-
background-color: var(--vk-label-red,hsl(0 84% 60%));
|
|
2069
|
+
.bg-\[var\(--vk-label-red-fill\,color-mix\(in_oklab\,var\(--vk-label-red\,hsl\(0_84\%_60\%\)\)_15\%\,var\(--vk-ground\)\)\)\] {
|
|
2070
|
+
background-color: var(--vk-label-red-fill,var(--vk-label-red,hsl(0 84% 60%)));
|
|
1358
2071
|
@supports (color: color-mix(in lab, red, red)) {
|
|
1359
|
-
background-color: color-mix(in oklab,var(--vk-label-red,hsl(0 84% 60%))
|
|
2072
|
+
background-color: var(--vk-label-red-fill,color-mix(in oklab,var(--vk-label-red,hsl(0 84% 60%)) 15%,var(--vk-ground)));
|
|
1360
2073
|
}
|
|
1361
2074
|
}
|
|
1362
|
-
.bg-\[color-mix\(in_oklab\,var\(--vk-label-teal\,hsl\(173_80\%_40\%\)\)
|
|
1363
|
-
background-color: var(--vk-label-teal,hsl(173 80% 40%));
|
|
2075
|
+
.bg-\[var\(--vk-label-teal-fill\,color-mix\(in_oklab\,var\(--vk-label-teal\,hsl\(173_80\%_40\%\)\)_15\%\,var\(--vk-ground\)\)\)\] {
|
|
2076
|
+
background-color: var(--vk-label-teal-fill,var(--vk-label-teal,hsl(173 80% 40%)));
|
|
1364
2077
|
@supports (color: color-mix(in lab, red, red)) {
|
|
1365
|
-
background-color: color-mix(in oklab,var(--vk-label-teal,hsl(173 80% 40%))
|
|
2078
|
+
background-color: var(--vk-label-teal-fill,color-mix(in oklab,var(--vk-label-teal,hsl(173 80% 40%)) 15%,var(--vk-ground)));
|
|
1366
2079
|
}
|
|
1367
2080
|
}
|
|
1368
|
-
.bg-\[var\(--vk-info\,hsl\(199_89\%_48\%\)\)\] {
|
|
1369
|
-
background-color: var(--vk-info,hsl(199 89% 48%));
|
|
1370
|
-
}
|
|
1371
2081
|
.bg-\[var\(--vk-success\,hsl\(160_84\%_39\%\)\)\] {
|
|
1372
2082
|
background-color: var(--vk-success,hsl(160 84% 39%));
|
|
1373
2083
|
}
|
|
@@ -1387,50 +2097,29 @@
|
|
|
1387
2097
|
background-color: var(--vk-info);
|
|
1388
2098
|
}
|
|
1389
2099
|
.bg-info-soft {
|
|
1390
|
-
background-color: var(--vk-
|
|
2100
|
+
background-color: var(--vk-info-subtlest);
|
|
1391
2101
|
}
|
|
1392
2102
|
.bg-label-amber {
|
|
1393
2103
|
background-color: var(--vk-label-amber);
|
|
1394
2104
|
}
|
|
1395
|
-
.bg-label-amber-soft {
|
|
1396
|
-
background-color: var(--vk-t-label-amber-soft);
|
|
1397
|
-
}
|
|
1398
2105
|
.bg-label-blue {
|
|
1399
2106
|
background-color: var(--vk-label-blue);
|
|
1400
2107
|
}
|
|
1401
|
-
.bg-label-blue-soft {
|
|
1402
|
-
background-color: var(--vk-t-label-blue-soft);
|
|
1403
|
-
}
|
|
1404
2108
|
.bg-label-green {
|
|
1405
2109
|
background-color: var(--vk-label-green);
|
|
1406
2110
|
}
|
|
1407
|
-
.bg-label-green-soft {
|
|
1408
|
-
background-color: var(--vk-t-label-green-soft);
|
|
1409
|
-
}
|
|
1410
2111
|
.bg-label-pink {
|
|
1411
2112
|
background-color: var(--vk-label-pink);
|
|
1412
2113
|
}
|
|
1413
|
-
.bg-label-pink-soft {
|
|
1414
|
-
background-color: var(--vk-t-label-pink-soft);
|
|
1415
|
-
}
|
|
1416
2114
|
.bg-label-purple {
|
|
1417
2115
|
background-color: var(--vk-label-purple);
|
|
1418
2116
|
}
|
|
1419
|
-
.bg-label-purple-soft {
|
|
1420
|
-
background-color: var(--vk-t-label-purple-soft);
|
|
1421
|
-
}
|
|
1422
2117
|
.bg-label-red {
|
|
1423
2118
|
background-color: var(--vk-label-red);
|
|
1424
2119
|
}
|
|
1425
|
-
.bg-label-red-soft {
|
|
1426
|
-
background-color: var(--vk-t-label-red-soft);
|
|
1427
|
-
}
|
|
1428
2120
|
.bg-label-teal {
|
|
1429
2121
|
background-color: var(--vk-label-teal);
|
|
1430
2122
|
}
|
|
1431
|
-
.bg-label-teal-soft {
|
|
1432
|
-
background-color: var(--vk-t-label-teal-soft);
|
|
1433
|
-
}
|
|
1434
2123
|
.bg-muted {
|
|
1435
2124
|
background-color: var(--vk-neutral);
|
|
1436
2125
|
}
|
|
@@ -1447,7 +2136,7 @@
|
|
|
1447
2136
|
background-color: var(--vk-success);
|
|
1448
2137
|
}
|
|
1449
2138
|
.bg-success-soft {
|
|
1450
|
-
background-color: var(--vk-
|
|
2139
|
+
background-color: var(--vk-success-subtlest);
|
|
1451
2140
|
}
|
|
1452
2141
|
.bg-transparent {
|
|
1453
2142
|
background-color: transparent;
|
|
@@ -1456,7 +2145,7 @@
|
|
|
1456
2145
|
background-color: var(--vk-warning);
|
|
1457
2146
|
}
|
|
1458
2147
|
.bg-warning-soft {
|
|
1459
|
-
background-color: var(--vk-
|
|
2148
|
+
background-color: var(--vk-warning-subtlest);
|
|
1460
2149
|
}
|
|
1461
2150
|
.bg-linear-to-r {
|
|
1462
2151
|
--tw-gradient-position: to right;
|
|
@@ -1839,32 +2528,53 @@
|
|
|
1839
2528
|
.text-\(color\:--vk-head-glyph-fg\,currentColor\) {
|
|
1840
2529
|
color: var(--vk-head-glyph-fg,currentColor);
|
|
1841
2530
|
}
|
|
1842
|
-
.text-\[color\:var\(--vk-
|
|
1843
|
-
color: var(--vk-
|
|
2531
|
+
.text-\[color\:var\(--vk-label-amber-strong\,color-mix\(in_oklab\,var\(--vk-label-amber\,hsl\(38_92\%_50\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
|
|
2532
|
+
color: var(--vk-label-amber-strong,var(--vk-label-amber,hsl(38 92% 50%)));
|
|
2533
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2534
|
+
color: var(--vk-label-amber-strong,color-mix(in oklab,var(--vk-label-amber,hsl(38 92% 50%)) 60%,var(--vk-fg)));
|
|
2535
|
+
}
|
|
1844
2536
|
}
|
|
1845
|
-
.text-\[var\(--vk-
|
|
1846
|
-
color: var(--vk-
|
|
2537
|
+
.text-\[color\:var\(--vk-label-blue-strong\,color-mix\(in_oklab\,var\(--vk-label-blue\,hsl\(199_89\%_48\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
|
|
2538
|
+
color: var(--vk-label-blue-strong,var(--vk-label-blue,hsl(199 89% 48%)));
|
|
2539
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2540
|
+
color: var(--vk-label-blue-strong,color-mix(in oklab,var(--vk-label-blue,hsl(199 89% 48%)) 60%,var(--vk-fg)));
|
|
2541
|
+
}
|
|
1847
2542
|
}
|
|
1848
|
-
.text-\[var\(--vk-label-
|
|
1849
|
-
color: var(--vk-label-
|
|
2543
|
+
.text-\[color\:var\(--vk-label-green-strong\,color-mix\(in_oklab\,var\(--vk-label-green\,hsl\(160_84\%_39\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
|
|
2544
|
+
color: var(--vk-label-green-strong,var(--vk-label-green,hsl(160 84% 39%)));
|
|
2545
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2546
|
+
color: var(--vk-label-green-strong,color-mix(in oklab,var(--vk-label-green,hsl(160 84% 39%)) 60%,var(--vk-fg)));
|
|
2547
|
+
}
|
|
1850
2548
|
}
|
|
1851
|
-
.text-\[var\(--vk-label-
|
|
1852
|
-
color: var(--vk-label-
|
|
2549
|
+
.text-\[color\:var\(--vk-label-pink-strong\,color-mix\(in_oklab\,var\(--vk-label-pink\,hsl\(330_81\%_60\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
|
|
2550
|
+
color: var(--vk-label-pink-strong,var(--vk-label-pink,hsl(330 81% 60%)));
|
|
2551
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2552
|
+
color: var(--vk-label-pink-strong,color-mix(in oklab,var(--vk-label-pink,hsl(330 81% 60%)) 60%,var(--vk-fg)));
|
|
2553
|
+
}
|
|
1853
2554
|
}
|
|
1854
|
-
.text-\[var\(--vk-label-
|
|
1855
|
-
color: var(--vk-label-
|
|
2555
|
+
.text-\[color\:var\(--vk-label-purple-strong\,color-mix\(in_oklab\,var\(--vk-label-purple\,hsl\(258_90\%_66\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
|
|
2556
|
+
color: var(--vk-label-purple-strong,var(--vk-label-purple,hsl(258 90% 66%)));
|
|
2557
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2558
|
+
color: var(--vk-label-purple-strong,color-mix(in oklab,var(--vk-label-purple,hsl(258 90% 66%)) 60%,var(--vk-fg)));
|
|
2559
|
+
}
|
|
1856
2560
|
}
|
|
1857
|
-
.text-\[var\(--vk-label-
|
|
1858
|
-
color: var(--vk-label-
|
|
2561
|
+
.text-\[color\:var\(--vk-label-red-strong\,color-mix\(in_oklab\,var\(--vk-label-red\,hsl\(0_84\%_60\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
|
|
2562
|
+
color: var(--vk-label-red-strong,var(--vk-label-red,hsl(0 84% 60%)));
|
|
2563
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2564
|
+
color: var(--vk-label-red-strong,color-mix(in oklab,var(--vk-label-red,hsl(0 84% 60%)) 60%,var(--vk-fg)));
|
|
2565
|
+
}
|
|
1859
2566
|
}
|
|
1860
|
-
.text-\[var\(--vk-label-
|
|
1861
|
-
color: var(--vk-label-
|
|
2567
|
+
.text-\[color\:var\(--vk-label-teal-strong\,color-mix\(in_oklab\,var\(--vk-label-teal\,hsl\(173_80\%_40\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
|
|
2568
|
+
color: var(--vk-label-teal-strong,var(--vk-label-teal,hsl(173 80% 40%)));
|
|
2569
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2570
|
+
color: var(--vk-label-teal-strong,color-mix(in oklab,var(--vk-label-teal,hsl(173 80% 40%)) 60%,var(--vk-fg)));
|
|
2571
|
+
}
|
|
1862
2572
|
}
|
|
1863
|
-
.text-\[var\(--vk-
|
|
1864
|
-
color: var(--vk-
|
|
2573
|
+
.text-\[color\:var\(--vk-warning\,hsl\(38_92\%_50\%\)\)\] {
|
|
2574
|
+
color: var(--vk-warning,hsl(38 92% 50%));
|
|
1865
2575
|
}
|
|
1866
|
-
.text-\[var\(--vk-
|
|
1867
|
-
color: var(--vk-
|
|
2576
|
+
.text-\[var\(--vk-info\,hsl\(199_89\%_48\%\)\)\] {
|
|
2577
|
+
color: var(--vk-info,hsl(199 89% 48%));
|
|
1868
2578
|
}
|
|
1869
2579
|
.text-\[var\(--vk-success\,hsl\(160_84\%_39\%\)\)\] {
|
|
1870
2580
|
color: var(--vk-success,hsl(160 84% 39%));
|
|
@@ -1879,38 +2589,17 @@
|
|
|
1879
2589
|
color: var(--vk-danger);
|
|
1880
2590
|
}
|
|
1881
2591
|
.text-destructive-foreground {
|
|
1882
|
-
color: var(--vk-
|
|
2592
|
+
color: var(--vk-fg-inverse);
|
|
1883
2593
|
}
|
|
1884
2594
|
.text-info {
|
|
1885
2595
|
color: var(--vk-info);
|
|
1886
2596
|
}
|
|
1887
2597
|
.text-info-foreground {
|
|
1888
|
-
color: var(--vk-
|
|
2598
|
+
color: var(--vk-fg-inverse);
|
|
1889
2599
|
}
|
|
1890
2600
|
.text-inherit {
|
|
1891
2601
|
color: inherit;
|
|
1892
2602
|
}
|
|
1893
|
-
.text-label-amber {
|
|
1894
|
-
color: var(--vk-label-amber);
|
|
1895
|
-
}
|
|
1896
|
-
.text-label-blue {
|
|
1897
|
-
color: var(--vk-label-blue);
|
|
1898
|
-
}
|
|
1899
|
-
.text-label-green {
|
|
1900
|
-
color: var(--vk-label-green);
|
|
1901
|
-
}
|
|
1902
|
-
.text-label-pink {
|
|
1903
|
-
color: var(--vk-label-pink);
|
|
1904
|
-
}
|
|
1905
|
-
.text-label-purple {
|
|
1906
|
-
color: var(--vk-label-purple);
|
|
1907
|
-
}
|
|
1908
|
-
.text-label-red {
|
|
1909
|
-
color: var(--vk-label-red);
|
|
1910
|
-
}
|
|
1911
|
-
.text-label-teal {
|
|
1912
|
-
color: var(--vk-label-teal);
|
|
1913
|
-
}
|
|
1914
2603
|
.text-muted-foreground {
|
|
1915
2604
|
color: var(--vk-fg-subtle);
|
|
1916
2605
|
}
|
|
@@ -1924,13 +2613,13 @@
|
|
|
1924
2613
|
color: var(--vk-success);
|
|
1925
2614
|
}
|
|
1926
2615
|
.text-success-foreground {
|
|
1927
|
-
color: var(--vk-
|
|
2616
|
+
color: var(--vk-fg-inverse);
|
|
1928
2617
|
}
|
|
1929
2618
|
.text-warning {
|
|
1930
2619
|
color: var(--vk-warning);
|
|
1931
2620
|
}
|
|
1932
2621
|
.text-warning-foreground {
|
|
1933
|
-
color: var(--vk-
|
|
2622
|
+
color: var(--vk-fg-warning-inverse);
|
|
1934
2623
|
}
|
|
1935
2624
|
.lowercase {
|
|
1936
2625
|
text-transform: lowercase;
|
|
@@ -1994,6 +2683,55 @@
|
|
|
1994
2683
|
.opacity-\[calc\(var\(--vk-parked\,0\)\*var\(--vk-frozen-on\,0\)\)\] {
|
|
1995
2684
|
opacity: calc(var(--vk-parked,0) * var(--vk-frozen-on,0));
|
|
1996
2685
|
}
|
|
2686
|
+
.shadow-\[inset_0_0_0_1px_var\(--vk-label-amber-edge\,color-mix\(in_oklab\,var\(--vk-label-amber\,hsl\(38_92\%_50\%\)\)_40\%\,var\(--vk-ground\)\)\)\] {
|
|
2687
|
+
--tw-shadow: inset 0 0 0 1px var(--tw-shadow-color, var(--vk-label-amber-edge,var(--vk-label-amber,hsl(38 92% 50%))));
|
|
2688
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2689
|
+
--tw-shadow: inset 0 0 0 1px var(--tw-shadow-color, var(--vk-label-amber-edge,color-mix(in oklab,var(--vk-label-amber,hsl(38 92% 50%)) 40%,var(--vk-ground))));
|
|
2690
|
+
}
|
|
2691
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
2692
|
+
}
|
|
2693
|
+
.shadow-\[inset_0_0_0_1px_var\(--vk-label-blue-edge\,color-mix\(in_oklab\,var\(--vk-label-blue\,hsl\(199_89\%_48\%\)\)_40\%\,var\(--vk-ground\)\)\)\] {
|
|
2694
|
+
--tw-shadow: inset 0 0 0 1px var(--tw-shadow-color, var(--vk-label-blue-edge,var(--vk-label-blue,hsl(199 89% 48%))));
|
|
2695
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2696
|
+
--tw-shadow: inset 0 0 0 1px var(--tw-shadow-color, var(--vk-label-blue-edge,color-mix(in oklab,var(--vk-label-blue,hsl(199 89% 48%)) 40%,var(--vk-ground))));
|
|
2697
|
+
}
|
|
2698
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
2699
|
+
}
|
|
2700
|
+
.shadow-\[inset_0_0_0_1px_var\(--vk-label-green-edge\,color-mix\(in_oklab\,var\(--vk-label-green\,hsl\(160_84\%_39\%\)\)_40\%\,var\(--vk-ground\)\)\)\] {
|
|
2701
|
+
--tw-shadow: inset 0 0 0 1px var(--tw-shadow-color, var(--vk-label-green-edge,var(--vk-label-green,hsl(160 84% 39%))));
|
|
2702
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2703
|
+
--tw-shadow: inset 0 0 0 1px var(--tw-shadow-color, var(--vk-label-green-edge,color-mix(in oklab,var(--vk-label-green,hsl(160 84% 39%)) 40%,var(--vk-ground))));
|
|
2704
|
+
}
|
|
2705
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
2706
|
+
}
|
|
2707
|
+
.shadow-\[inset_0_0_0_1px_var\(--vk-label-pink-edge\,color-mix\(in_oklab\,var\(--vk-label-pink\,hsl\(330_81\%_60\%\)\)_40\%\,var\(--vk-ground\)\)\)\] {
|
|
2708
|
+
--tw-shadow: inset 0 0 0 1px var(--tw-shadow-color, var(--vk-label-pink-edge,var(--vk-label-pink,hsl(330 81% 60%))));
|
|
2709
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2710
|
+
--tw-shadow: inset 0 0 0 1px var(--tw-shadow-color, var(--vk-label-pink-edge,color-mix(in oklab,var(--vk-label-pink,hsl(330 81% 60%)) 40%,var(--vk-ground))));
|
|
2711
|
+
}
|
|
2712
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
2713
|
+
}
|
|
2714
|
+
.shadow-\[inset_0_0_0_1px_var\(--vk-label-purple-edge\,color-mix\(in_oklab\,var\(--vk-label-purple\,hsl\(258_90\%_66\%\)\)_40\%\,var\(--vk-ground\)\)\)\] {
|
|
2715
|
+
--tw-shadow: inset 0 0 0 1px var(--tw-shadow-color, var(--vk-label-purple-edge,var(--vk-label-purple,hsl(258 90% 66%))));
|
|
2716
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2717
|
+
--tw-shadow: inset 0 0 0 1px var(--tw-shadow-color, var(--vk-label-purple-edge,color-mix(in oklab,var(--vk-label-purple,hsl(258 90% 66%)) 40%,var(--vk-ground))));
|
|
2718
|
+
}
|
|
2719
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
2720
|
+
}
|
|
2721
|
+
.shadow-\[inset_0_0_0_1px_var\(--vk-label-red-edge\,color-mix\(in_oklab\,var\(--vk-label-red\,hsl\(0_84\%_60\%\)\)_40\%\,var\(--vk-ground\)\)\)\] {
|
|
2722
|
+
--tw-shadow: inset 0 0 0 1px var(--tw-shadow-color, var(--vk-label-red-edge,var(--vk-label-red,hsl(0 84% 60%))));
|
|
2723
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2724
|
+
--tw-shadow: inset 0 0 0 1px var(--tw-shadow-color, var(--vk-label-red-edge,color-mix(in oklab,var(--vk-label-red,hsl(0 84% 60%)) 40%,var(--vk-ground))));
|
|
2725
|
+
}
|
|
2726
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
2727
|
+
}
|
|
2728
|
+
.shadow-\[inset_0_0_0_1px_var\(--vk-label-teal-edge\,color-mix\(in_oklab\,var\(--vk-label-teal\,hsl\(173_80\%_40\%\)\)_40\%\,var\(--vk-ground\)\)\)\] {
|
|
2729
|
+
--tw-shadow: inset 0 0 0 1px var(--tw-shadow-color, var(--vk-label-teal-edge,var(--vk-label-teal,hsl(173 80% 40%))));
|
|
2730
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2731
|
+
--tw-shadow: inset 0 0 0 1px var(--tw-shadow-color, var(--vk-label-teal-edge,color-mix(in oklab,var(--vk-label-teal,hsl(173 80% 40%)) 40%,var(--vk-ground))));
|
|
2732
|
+
}
|
|
2733
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
2734
|
+
}
|
|
1997
2735
|
.shadow-\[var\(--vk-editing-shadow\,0_10px_15px_-3px_rgb\(0_0_0\/0\.2\)\,0_4px_6px_-4px_rgb\(0_0_0\/0\.2\)\)\] {
|
|
1998
2736
|
--tw-shadow: var(--vk-editing-shadow,0 10px 15px -3px rgb(0 0 0/0.2),0 4px 6px -4px rgb(0 0 0/0.2));
|
|
1999
2737
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
@@ -2386,7 +3124,7 @@
|
|
|
2386
3124
|
background-color: var(--vk-danger-subtlest);
|
|
2387
3125
|
}
|
|
2388
3126
|
.hover\:bg-info-soft:hover {
|
|
2389
|
-
background-color: var(--vk-
|
|
3127
|
+
background-color: var(--vk-info-subtlest);
|
|
2390
3128
|
}
|
|
2391
3129
|
.hover\:bg-primary-soft:hover {
|
|
2392
3130
|
background-color: var(--vk-brand-subtlest);
|
|
@@ -2395,13 +3133,13 @@
|
|
|
2395
3133
|
background-color: var(--vk-neutral);
|
|
2396
3134
|
}
|
|
2397
3135
|
.hover\:bg-success-soft:hover {
|
|
2398
|
-
background-color: var(--vk-
|
|
3136
|
+
background-color: var(--vk-success-subtlest);
|
|
2399
3137
|
}
|
|
2400
3138
|
.hover\:bg-transparent:hover {
|
|
2401
3139
|
background-color: transparent;
|
|
2402
3140
|
}
|
|
2403
3141
|
.hover\:bg-warning-soft:hover {
|
|
2404
|
-
background-color: var(--vk-
|
|
3142
|
+
background-color: var(--vk-warning-subtlest);
|
|
2405
3143
|
}
|
|
2406
3144
|
.hover\:bg-\[linear-gradient\(color-mix\(in_oklab\,_var\(--vk-brand\)_10\%\,_transparent\)\,color-mix\(in_oklab\,_var\(--vk-brand\)_10\%\,_transparent\)\)\]:hover {
|
|
2407
3145
|
background-image: linear-gradient(var(--vk-brand),var(--vk-brand));
|
|
@@ -3054,18 +3792,116 @@
|
|
|
3054
3792
|
--vk-label-purple: hsl(260 100% 64.5%);
|
|
3055
3793
|
--vk-label-pink: hsl(335 73% 49.5%);
|
|
3056
3794
|
--vk-label-teal: hsl(192 87% 32%);
|
|
3057
|
-
--vk-
|
|
3058
|
-
--vk-
|
|
3059
|
-
--vk-
|
|
3060
|
-
--vk-
|
|
3061
|
-
--vk-
|
|
3062
|
-
--vk-
|
|
3063
|
-
--vk-
|
|
3064
|
-
--vk-
|
|
3065
|
-
--vk-
|
|
3066
|
-
--vk-
|
|
3067
|
-
--vk-
|
|
3068
|
-
--vk-
|
|
3795
|
+
--vk-success-subtlest: hsl(142 41% 97%);
|
|
3796
|
+
--vk-warning-subtlest: hsl(19 74% 97.5%);
|
|
3797
|
+
--vk-info-subtlest: hsl(218 100% 98%);
|
|
3798
|
+
--vk-fg-inverse: hsl(0 0% 100%);
|
|
3799
|
+
--vk-fg-warning-inverse: hsl(210 6% 7%);
|
|
3800
|
+
--vk-label-blue-soft: hsl(218 100% 98%);
|
|
3801
|
+
--vk-label-blue-fill: hsl(218 100% 94%);
|
|
3802
|
+
--vk-label-blue-edge: hsl(218 97% 82%);
|
|
3803
|
+
--vk-label-blue-strong: hsl(219 70% 38%);
|
|
3804
|
+
--vk-label-green-soft: hsl(142 41% 97%);
|
|
3805
|
+
--vk-label-green-fill: hsl(143 41% 91%);
|
|
3806
|
+
--vk-label-green-edge: hsl(145 41% 71.5%);
|
|
3807
|
+
--vk-label-green-strong: hsl(156 87% 21%);
|
|
3808
|
+
--vk-label-amber-soft: hsl(19 74% 97.5%);
|
|
3809
|
+
--vk-label-amber-fill: hsl(19 72% 92.5%);
|
|
3810
|
+
--vk-label-amber-edge: hsl(20 68% 77%);
|
|
3811
|
+
--vk-label-amber-strong: hsl(23 85% 29%);
|
|
3812
|
+
--vk-label-red-soft: hsl(6 100% 98%);
|
|
3813
|
+
--vk-label-red-fill: hsl(6 100% 94%);
|
|
3814
|
+
--vk-label-red-edge: hsl(5 99% 82%);
|
|
3815
|
+
--vk-label-red-strong: hsl(0 59% 39%);
|
|
3816
|
+
--vk-label-purple-soft: hsl(248 100% 98.5%);
|
|
3817
|
+
--vk-label-purple-fill: hsl(249 100% 95.5%);
|
|
3818
|
+
--vk-label-purple-edge: hsl(251 100% 86.5%);
|
|
3819
|
+
--vk-label-purple-strong: hsl(259 53% 44.5%);
|
|
3820
|
+
--vk-label-pink-soft: hsl(345 100% 98%);
|
|
3821
|
+
--vk-label-pink-fill: hsl(345 100% 94.5%);
|
|
3822
|
+
--vk-label-pink-edge: hsl(343 88% 82.5%);
|
|
3823
|
+
--vk-label-pink-strong: hsl(336 59% 37.5%);
|
|
3824
|
+
--vk-label-teal-soft: hsl(196 52% 97%);
|
|
3825
|
+
--vk-label-teal-fill: hsl(196 52% 91.5%);
|
|
3826
|
+
--vk-label-teal-edge: hsl(196 52% 74.5%);
|
|
3827
|
+
--vk-label-teal-strong: hsl(193 82% 26%);
|
|
3828
|
+
--vk-brand-hovered: hsl(219 70% 46.5%);
|
|
3829
|
+
--vk-brand-pressed: hsl(219 70% 38%);
|
|
3830
|
+
--vk-brand-subtler: hsl(218 100% 94%);
|
|
3831
|
+
--vk-brand-subtler-hovered: hsl(218 100% 89%);
|
|
3832
|
+
--vk-brand-subtler-pressed: hsl(218 97% 82%);
|
|
3833
|
+
--vk-danger-bold: hsl(0 81% 58%);
|
|
3834
|
+
--vk-danger-bold-hovered: hsl(0 59% 49%);
|
|
3835
|
+
--vk-danger-bold-pressed: hsl(0 59% 39%);
|
|
3836
|
+
--vk-info-bold: hsl(219 87% 54%);
|
|
3837
|
+
--vk-info-bold-hovered: hsl(219 70% 46.5%);
|
|
3838
|
+
--vk-info-bold-pressed: hsl(219 70% 38%);
|
|
3839
|
+
--vk-success-bold: hsl(158 98% 26%);
|
|
3840
|
+
--vk-success-bold-hovered: hsl(157 88% 24%);
|
|
3841
|
+
--vk-success-bold-pressed: hsl(156 87% 21%);
|
|
3842
|
+
--vk-warning-bold: hsl(25 92% 41%);
|
|
3843
|
+
--vk-warning-bold-hovered: hsl(24 86% 35.5%);
|
|
3844
|
+
--vk-warning-bold-pressed: hsl(23 85% 29%);
|
|
3845
|
+
--vk-brighten: hsl(0 0% 100% / 0.09);
|
|
3846
|
+
--vk-darken: hsl(214 30% 10% / 0.1);
|
|
3847
|
+
--vk-border-input: hsl(220 3% 86%);
|
|
3848
|
+
--vk-border-input-hovered: hsl(210 1% 82%);
|
|
3849
|
+
--vk-raised: hsl(0 0% 100%);
|
|
3850
|
+
--vk-raised-hovered: hsl(220 3% 97%);
|
|
3851
|
+
--vk-overlay-hovered: hsl(220 3% 97%);
|
|
3852
|
+
--vk-overlay-pressed: hsl(0 0% 94%);
|
|
3853
|
+
--vk-overlay-card-pressed: hsl(220 7% 90%);
|
|
3854
|
+
--vk-fg-disabled: hsl(210 1% 72%);
|
|
3855
|
+
--vk-fg-accent: hsl(219 87% 54%);
|
|
3856
|
+
--vk-border-width: 1px;
|
|
3857
|
+
--vk-corner-smoothing: 0.7;
|
|
3858
|
+
--vk-dot-size: 6px;
|
|
3859
|
+
--vk-duration-instant: 60ms;
|
|
3860
|
+
--vk-duration-fast: 150ms;
|
|
3861
|
+
--vk-duration-base: 200ms;
|
|
3862
|
+
--vk-duration-slow: 300ms;
|
|
3863
|
+
--vk-ease-out: cubic-bezier(0, 0, 0.2, 1);
|
|
3864
|
+
--vk-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
3865
|
+
--vk-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
3866
|
+
--vk-focus-width: 2px;
|
|
3867
|
+
--vk-focus-offset: 2px;
|
|
3868
|
+
--vk-font-weight-medium: 500;
|
|
3869
|
+
--vk-font-weight-semibold: 600;
|
|
3870
|
+
--vk-hover-lift: 1px;
|
|
3871
|
+
--vk-loading-dim: 0.55;
|
|
3872
|
+
--vk-press-scale: 0.98;
|
|
3873
|
+
--vk-press-squash: 1.025 0.92;
|
|
3874
|
+
--vk-press-travel: 1px;
|
|
3875
|
+
--vk-press-travel-lg: 2px;
|
|
3876
|
+
--vk-progress-slide: 1400ms;
|
|
3877
|
+
--vk-radius-xs: 2.5px;
|
|
3878
|
+
--vk-radius-sm: 5px;
|
|
3879
|
+
--vk-radius-md: 7.5px;
|
|
3880
|
+
--vk-radius-lg: 10px;
|
|
3881
|
+
--vk-radius-xl: 15px;
|
|
3882
|
+
--vk-radius-2xl: 20px;
|
|
3883
|
+
--vk-radius-full: 9999px;
|
|
3884
|
+
--vk-shadow-key: inset 0 1px 0 0 hsl(0 0% 100% / 0.24), inset 0 -1px 0 0 hsl(214 30% 10% / 0.18), 0 1px 0 0 hsl(214 30% 10% / 0.32), 0 1px 2px 0 hsl(214 30% 10% / 0.12);
|
|
3885
|
+
--vk-shadow-key-pressed: inset 0 1px 1.5px 0 hsl(214 30% 10% / 0.12);
|
|
3886
|
+
--vk-shadow-key-pressed-bold: inset 0 1px 1.5px 0 hsl(214 30% 10% / 0.28);
|
|
3887
|
+
--vk-shadow-key-shallow: inset 0 1px 0 0 hsl(0 0% 100% / 0.24), inset 0 -1px 0 0 hsl(214 30% 10% / 0.064);
|
|
3888
|
+
--vk-shadow-key-soft: inset 0 1px 0 0 hsl(0 0% 100% / 0.3), inset 0 -1px 0 0 hsl(214 30% 10% / 0.088);
|
|
3889
|
+
--vk-shadow-key-subtle: inset 0 1px 0 0 hsl(0 0% 100% / 0.07), 0 1px 0 0 hsl(214 30% 10% / 0.088), 0 1px 2px 0 hsl(214 30% 10% / 0.04);
|
|
3890
|
+
--vk-shadow-key-subtle-raised: inset 0 1px 0 0 hsl(0 0% 100% / 0.07), 0 1px 0 0 hsl(214 30% 10% / 0.128), 0 1px 2px 0 hsl(214 30% 10% / 0.04);
|
|
3891
|
+
--vk-shadow-lift: 0 1px 2px 0 hsl(214 30% 10% / 0.104), 0 2px 6px -1px hsl(214 30% 10% / 0.064);
|
|
3892
|
+
--vk-shadow-lift-raised: 0 2px 4px -1px hsl(214 30% 10% / 0.104), 0 9px 20px -6px hsl(214 30% 10% / 0.136), 0 6px 18px -6px hsl(0 0% 100% / 0.1);
|
|
3893
|
+
--vk-shadow-rim: inset 0 1px 0 0 hsl(0 0% 100% / 0.07);
|
|
3894
|
+
--vk-shadow-rim-bold: inset 0 1px 0 0 hsl(0 0% 100% / 0.22);
|
|
3895
|
+
--vk-shadow-rim-bold-raised: inset 0 1px 0 0 hsl(0 0% 100% / 0.3);
|
|
3896
|
+
--vk-shadow-rim-raised: inset 0 1px 0 0 hsl(0 0% 100% / 0.14);
|
|
3897
|
+
--vk-spacing: 4px;
|
|
3898
|
+
--vk-spinner-breath: 1400ms;
|
|
3899
|
+
--vk-spinner-turn: 2000ms;
|
|
3900
|
+
--vk-spinner-turn-reduced: 3000ms;
|
|
3901
|
+
--vk-font-size-xs: 12px;
|
|
3902
|
+
--vk-font-size-sm: 14px;
|
|
3903
|
+
--vk-font-size-base: 16px;
|
|
3904
|
+
--vk-font-size-lg: 18px;
|
|
3069
3905
|
--vk-t-shadow-menu: 0 6px 18px hsl(0 0% 0% / 0.06), 0 3px 9px hsl(0 0% 0% / 0.05), 0 1px 1px hsl(0 0% 0% / 0.04);
|
|
3070
3906
|
--vk-t-shadow-field: 0 1px 1px 0 rgb(16 17 26 / 0.08);
|
|
3071
3907
|
--vk-t-shadow-field-hover: 0 1px 1px 0 rgb(16 17 26 / 0.16);
|
|
@@ -3123,18 +3959,80 @@
|
|
|
3123
3959
|
--vk-label-purple: hsl(260 100% 69%);
|
|
3124
3960
|
--vk-label-pink: hsl(335 73% 57.5%);
|
|
3125
3961
|
--vk-label-teal: hsl(192 87% 40%);
|
|
3126
|
-
--vk-
|
|
3127
|
-
--vk-
|
|
3128
|
-
--vk-
|
|
3129
|
-
--vk-
|
|
3130
|
-
--vk-
|
|
3131
|
-
--vk-
|
|
3132
|
-
--vk-
|
|
3133
|
-
--vk-
|
|
3134
|
-
--vk-
|
|
3135
|
-
--vk-
|
|
3136
|
-
--vk-
|
|
3137
|
-
--vk-
|
|
3962
|
+
--vk-success-subtlest: hsl(143 7% 9.5%);
|
|
3963
|
+
--vk-warning-subtlest: hsl(19 13% 10%);
|
|
3964
|
+
--vk-info-subtlest: hsl(218 15% 10%);
|
|
3965
|
+
--vk-fg-inverse: hsl(210 8% 95%);
|
|
3966
|
+
--vk-fg-warning-inverse: hsl(210 8% 5%);
|
|
3967
|
+
--vk-label-blue-soft: hsl(218 15% 10%);
|
|
3968
|
+
--vk-label-blue-fill: hsl(219 46% 21%);
|
|
3969
|
+
--vk-label-blue-edge: hsl(219 55% 29%);
|
|
3970
|
+
--vk-label-blue-strong: hsl(218 100% 81%);
|
|
3971
|
+
--vk-label-green-soft: hsl(143 7% 9.5%);
|
|
3972
|
+
--vk-label-green-fill: hsl(146 27% 16.5%);
|
|
3973
|
+
--vk-label-green-edge: hsl(148 37% 21%);
|
|
3974
|
+
--vk-label-green-strong: hsl(146 52% 73.5%);
|
|
3975
|
+
--vk-label-amber-soft: hsl(19 13% 10%);
|
|
3976
|
+
--vk-label-amber-fill: hsl(20 42% 18.5%);
|
|
3977
|
+
--vk-label-amber-edge: hsl(20 54% 24%);
|
|
3978
|
+
--vk-label-amber-strong: hsl(20 90% 76.5%);
|
|
3979
|
+
--vk-label-red-soft: hsl(6 13% 10%);
|
|
3980
|
+
--vk-label-red-fill: hsl(5 37% 20.5%);
|
|
3981
|
+
--vk-label-red-edge: hsl(4 45% 28%);
|
|
3982
|
+
--vk-label-red-strong: hsl(6 100% 83%);
|
|
3983
|
+
--vk-label-purple-soft: hsl(249 11% 10.5%);
|
|
3984
|
+
--vk-label-purple-fill: hsl(254 34% 23.5%);
|
|
3985
|
+
--vk-label-purple-edge: hsl(256 41% 32.5%);
|
|
3986
|
+
--vk-label-purple-strong: hsl(251 100% 86%);
|
|
3987
|
+
--vk-label-pink-soft: hsl(344 11% 10%);
|
|
3988
|
+
--vk-label-pink-fill: hsl(341 34% 20.5%);
|
|
3989
|
+
--vk-label-pink-edge: hsl(339 42% 28%);
|
|
3990
|
+
--vk-label-pink-strong: hsl(342 100% 83.5%);
|
|
3991
|
+
--vk-label-teal-soft: hsl(196 8% 9.5%);
|
|
3992
|
+
--vk-label-teal-fill: hsl(196 32% 17.5%);
|
|
3993
|
+
--vk-label-teal-edge: hsl(195 42% 22.5%);
|
|
3994
|
+
--vk-label-teal-strong: hsl(196 67% 75.5%);
|
|
3995
|
+
--vk-brand-hovered: hsl(219 95% 64%);
|
|
3996
|
+
--vk-brand-pressed: hsl(219 100% 72.5%);
|
|
3997
|
+
--vk-brand-subtler: hsl(218 32% 14.5%);
|
|
3998
|
+
--vk-brand-subtler-hovered: hsl(219 46% 21%);
|
|
3999
|
+
--vk-brand-subtler-pressed: hsl(219 55% 29%);
|
|
4000
|
+
--vk-danger-bold: hsl(0 81% 58%);
|
|
4001
|
+
--vk-danger-bold-hovered: hsl(3 90% 66.5%);
|
|
4002
|
+
--vk-danger-bold-pressed: hsl(4 100% 75%);
|
|
4003
|
+
--vk-info-bold: hsl(219 87% 59.5%);
|
|
4004
|
+
--vk-info-bold-hovered: hsl(219 95% 64%);
|
|
4005
|
+
--vk-info-bold-pressed: hsl(219 100% 72.5%);
|
|
4006
|
+
--vk-success-bold: hsl(158 98% 34%);
|
|
4007
|
+
--vk-success-bold-hovered: hsl(150 45% 51.5%);
|
|
4008
|
+
--vk-success-bold-pressed: hsl(148 46% 62.5%);
|
|
4009
|
+
--vk-warning-bold: hsl(25 92% 41%);
|
|
4010
|
+
--vk-warning-bold-hovered: hsl(21 66% 55%);
|
|
4011
|
+
--vk-warning-bold-pressed: hsl(20 73% 65.5%);
|
|
4012
|
+
--vk-brighten: hsl(210 8% 95% / 0.09);
|
|
4013
|
+
--vk-darken: hsl(0 0% 0% / 0.15);
|
|
4014
|
+
--vk-border-input: hsl(220 4% 22%);
|
|
4015
|
+
--vk-border-input-hovered: hsl(210 2% 26.5%);
|
|
4016
|
+
--vk-raised: hsl(226 10% 10%);
|
|
4017
|
+
--vk-raised-hovered: hsl(225 7% 15%);
|
|
4018
|
+
--vk-overlay-hovered: hsl(225 7% 15%);
|
|
4019
|
+
--vk-overlay-pressed: hsl(225 7% 15%);
|
|
4020
|
+
--vk-overlay-card-pressed: hsl(220 4% 22%);
|
|
4021
|
+
--vk-fg-disabled: hsl(210 1% 37%);
|
|
4022
|
+
--vk-fg-accent: hsl(219 87% 59.5%);
|
|
4023
|
+
--vk-shadow-key: inset 0 1px 0 0 hsl(210 8% 95% / 0.24), inset 0 -1px 0 0 hsl(0 0% 0% / 0.27), 0 1px 0 0 hsl(0 0% 0% / 0.5), 0 1px 2px 0 hsl(0 0% 0% / 0.18);
|
|
4024
|
+
--vk-shadow-key-pressed: inset 0 1px 1.5px 0 hsl(0 0% 0% / 0.18);
|
|
4025
|
+
--vk-shadow-key-pressed-bold: inset 0 1px 1.5px 0 hsl(0 0% 0% / 0.42);
|
|
4026
|
+
--vk-shadow-key-shallow: inset 0 1px 0 0 hsl(210 8% 95% / 0.24), inset 0 -1px 0 0 hsl(0 0% 0% / 0.096);
|
|
4027
|
+
--vk-shadow-key-soft: inset 0 1px 0 0 hsl(210 8% 95% / 0.3), inset 0 -1px 0 0 hsl(0 0% 0% / 0.132);
|
|
4028
|
+
--vk-shadow-key-subtle: inset 0 1px 0 0 hsl(210 8% 95% / 0.07), 0 1px 0 0 hsl(0 0% 0% / 0.132), 0 1px 2px 0 hsl(0 0% 0% / 0.06);
|
|
4029
|
+
--vk-shadow-key-subtle-raised: inset 0 1px 0 0 hsl(210 8% 95% / 0.07), 0 1px 0 0 hsl(0 0% 0% / 0.192), 0 1px 2px 0 hsl(0 0% 0% / 0.06);
|
|
4030
|
+
--vk-shadow-lift: 0 1px 2px 0 hsl(0 0% 0% / 0.156), 0 2px 6px -1px hsl(0 0% 0% / 0.096);
|
|
4031
|
+
--vk-shadow-lift-raised: 0 2px 4px -1px hsl(0 0% 0% / 0.156), 0 9px 20px -6px hsl(0 0% 0% / 0.204), 0 6px 18px -6px hsl(210 8% 95% / 0.1);
|
|
4032
|
+
--vk-shadow-rim: inset 0 1px 0 0 hsl(210 8% 95% / 0.07);
|
|
4033
|
+
--vk-shadow-rim-bold: inset 0 1px 0 0 hsl(210 8% 95% / 0.22);
|
|
4034
|
+
--vk-shadow-rim-bold-raised: inset 0 1px 0 0 hsl(210 8% 95% / 0.3);
|
|
4035
|
+
--vk-shadow-rim-raised: inset 0 1px 0 0 hsl(210 8% 95% / 0.14);
|
|
3138
4036
|
--vk-t-shadow-menu: 0 8px 24px hsl(0 0% 0% / 0.5), 0 0 0 1px hsl(0 0% 18%);
|
|
3139
4037
|
--vk-t-shadow-field: 0 1px 1px 0 rgb(255 255 255 / 0.08);
|
|
3140
4038
|
--vk-t-shadow-field-hover: 0 1px 1px 0 rgb(255 255 255 / 0.12);
|