viewkitjs 0.21.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 +22 -0
- package/MIGRATION.md +1 -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/fields.md +1 -1
- package/package.json +15 -1
- package/views/dist/atoms/tones.js +7 -7
- package/views/dist/contract.d.ts +288 -0
- package/views/dist/contract.js +96 -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/looks/index.d.ts +2 -0
- package/views/dist/looks/index.js +2 -0
- package/views/dist/looks/looks.d.ts +2 -1
- package/views/dist/looks/pieces.js +3 -1
- package/views/dist/panels/react/views-row/FoldingViewRow.js +8 -8
- package/views/dist/styles.css +825 -56
- package/views/dist/styles.unlayered.css +842 -56
- package/views/docs/contract.md +131 -8
- package/views/docs/guides/the-provider.md +1 -1
- package/views/docs/index.md +1 -0
- package/views/docs/install.md +2 -0
- package/views/docs/reference/controls.md +36 -0
- package/views/docs/reference/looks.md +12 -2
- package/views/docs/reference/views.md +4 -1
package/views/dist/styles.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! viewkitjs 0.
|
|
1
|
+
/*! viewkitjs 0.22.0 · viewkitjs/views/styles.css: ViewKit's look, its defaults the Outright look */
|
|
2
2
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
3
3
|
@layer theme, base, components, utilities;
|
|
4
4
|
@layer base {
|
|
@@ -223,6 +223,21 @@
|
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
|
+
@property --smooth-t { syntax: "<length-percentage>"; inherits: true; initial-value: 0px; }
|
|
227
|
+
@property --smooth-side { syntax: "<length>"; inherits: true; initial-value: 0px; }
|
|
228
|
+
@property --smooth-x { syntax: "<number>"; inherits: true; initial-value: 0; }
|
|
229
|
+
@property --smooth-k { syntax: "<number>"; inherits: true; initial-value: 0; }
|
|
230
|
+
@property --smooth-cc { syntax: "<number>"; inherits: true; initial-value: 0; }
|
|
231
|
+
@property --smooth-d { syntax: "<number>"; inherits: true; initial-value: 0; }
|
|
232
|
+
@property --smooth-p { syntax: "<number>"; inherits: true; initial-value: 0; }
|
|
233
|
+
@property --smooth-a2 { syntax: "<number>"; inherits: true; initial-value: 0; }
|
|
234
|
+
@property --smooth-a1 { syntax: "<number>"; inherits: true; initial-value: 0; }
|
|
235
|
+
@property --smooth-bc { syntax: "<number>"; inherits: true; initial-value: 0; }
|
|
236
|
+
@property --smooth-e { syntax: "<number>"; inherits: true; initial-value: 0; }
|
|
237
|
+
@property --smooth-hx { syntax: "<number>"; inherits: true; initial-value: 0; }
|
|
238
|
+
@property --smooth-hy { syntax: "<number>"; inherits: true; initial-value: 0; }
|
|
239
|
+
@property --smooth-khy { syntax: "<number>"; inherits: true; initial-value: 0; }
|
|
240
|
+
@property --smooth-khx { syntax: "<number>"; inherits: true; initial-value: 0; }
|
|
226
241
|
@layer components {
|
|
227
242
|
@layer viewkit {
|
|
228
243
|
@layer properties {
|
|
@@ -289,6 +304,684 @@
|
|
|
289
304
|
}
|
|
290
305
|
}
|
|
291
306
|
}
|
|
307
|
+
|
|
308
|
+
.o-smooth, .o-smooth::before, .o-smooth::after {
|
|
309
|
+
/* 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
|
|
310
|
+
last curve's handles (cc, bc); where the bend starts (p). Apple's, at 70%. */
|
|
311
|
+
--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;
|
|
312
|
+
--smooth-khy: 0.248; --smooth-khx: 0.196; --smooth-cc: 0.24; --smooth-bc: 0.568; --smooth-p: 1.7;
|
|
313
|
+
--smooth-path:
|
|
314
|
+
hline to calc(100% - var(--smooth-in, 0px) - var(--smooth-t) * var(--smooth-p)),
|
|
315
|
+
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,
|
|
316
|
+
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)),
|
|
317
|
+
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)),
|
|
318
|
+
vline to calc(var(--smooth-foot, 100%) - var(--smooth-in, 0px) - var(--smooth-b, var(--smooth-t)) * var(--smooth-p)),
|
|
319
|
+
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)),
|
|
320
|
+
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)),
|
|
321
|
+
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)),
|
|
322
|
+
hline to calc(var(--smooth-in, 0px) + var(--smooth-b, var(--smooth-t)) * var(--smooth-p)),
|
|
323
|
+
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,
|
|
324
|
+
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),
|
|
325
|
+
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),
|
|
326
|
+
vline to calc(var(--smooth-in, 0px) + var(--smooth-t) * var(--smooth-p)),
|
|
327
|
+
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),
|
|
328
|
+
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),
|
|
329
|
+
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),
|
|
330
|
+
close;
|
|
331
|
+
--smooth-outline: from calc(var(--smooth-in, 0px) + var(--smooth-t) * var(--smooth-p)) var(--smooth-in, 0px), var(--smooth-path);
|
|
332
|
+
--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);
|
|
333
|
+
}
|
|
334
|
+
/* The element's own outline, as it worked it out: what its ::before or ::after reads for a ring's outer line. */
|
|
335
|
+
.o-smooth { --smooth-outer: var(--smooth-outline); }
|
|
336
|
+
|
|
337
|
+
/* 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
|
|
338
|
+
from it (at 0.7 these give Apple's within a thousandth). */
|
|
339
|
+
.o-smooth.o-smooth-ease { --smooth-x: clamp(0, tan(atan2(var(--smooth-side), var(--smooth-t) * 2)) - 1, var(--smooth-amount, 0.7)); }
|
|
340
|
+
.o-smooth.o-smooth-ease, .o-smooth.o-smooth-ease::before, .o-smooth.o-smooth-ease::after {
|
|
341
|
+
--smooth-k: calc(sin(45deg * (1 - var(--smooth-x))) * 1.414214);
|
|
342
|
+
--smooth-cc: calc(tan(22.5deg * var(--smooth-x)) * cos(45deg * var(--smooth-x)));
|
|
343
|
+
--smooth-d: calc(tan(22.5deg * var(--smooth-x)) * sin(45deg * var(--smooth-x)));
|
|
344
|
+
--smooth-p: calc(1 + var(--smooth-x));
|
|
345
|
+
--smooth-a2: calc(var(--smooth-p) - var(--smooth-k) - var(--smooth-cc) - var(--smooth-d));
|
|
346
|
+
--smooth-a1: calc(var(--smooth-a2) * 2 / 3);
|
|
347
|
+
--smooth-bc: calc(var(--smooth-a2) / 3 + var(--smooth-cc));
|
|
348
|
+
--smooth-e: calc(var(--smooth-p) - var(--smooth-k) - var(--smooth-d));
|
|
349
|
+
--smooth-hx: calc(tan(22.5deg * (1 - var(--smooth-x))) * 4 / 3 * cos(45deg * var(--smooth-x)));
|
|
350
|
+
--smooth-hy: calc(tan(22.5deg * (1 - var(--smooth-x))) * 4 / 3 * sin(45deg * var(--smooth-x)));
|
|
351
|
+
--smooth-khy: calc(var(--smooth-k) - var(--smooth-hy));
|
|
352
|
+
--smooth-khx: calc(var(--smooth-k) - var(--smooth-hx));
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/* ── At rest ──────────────────────────────────────────────────────────────────────────────────────── */
|
|
356
|
+
:where(.o-button) {
|
|
357
|
+
height: calc(var(--vk-spacing) * 9);
|
|
358
|
+
padding: 0 calc(var(--vk-spacing) * 3.5);
|
|
359
|
+
font-size: var(--vk-font-size-sm);
|
|
360
|
+
--button-r: var(--vk-radius-lg);
|
|
361
|
+
--button-edge: transparent; --button-edge-foot: transparent;
|
|
362
|
+
--button-ground: transparent; --button-light: none; --button-depth: none; --button-line: var(--vk-border-width);
|
|
363
|
+
color: var(--vk-fg);
|
|
364
|
+
/* Drawn as a link (an <a>), it drops the browser's underline at rest; every kind's own underline still wins. */
|
|
365
|
+
text-decoration: none;
|
|
366
|
+
}
|
|
367
|
+
.o-button {
|
|
368
|
+
position: relative; display: inline-flex; align-items: center; justify-content: center; gap: calc(var(--vk-spacing) * 1.5);
|
|
369
|
+
box-sizing: border-box; margin: 0;
|
|
370
|
+
border-width: var(--button-line); border-style: solid;
|
|
371
|
+
/* Its paint, from its variables: every kind, look and state below sets them, never the paint itself, so its cut can
|
|
372
|
+
draw them under Smooth (Corner smoothing, the last section) and it paints them itself under Round. */
|
|
373
|
+
border-radius: var(--button-r); background-color: var(--button-ground); background-image: var(--button-light);
|
|
374
|
+
border-color: var(--button-edge); border-bottom-color: var(--button-edge-foot); box-shadow: var(--button-depth);
|
|
375
|
+
font-family: inherit; line-height: 1; font-weight: var(--vk-font-weight-medium); white-space: nowrap;
|
|
376
|
+
cursor: pointer; user-select: none; outline: none; -webkit-tap-highlight-color: transparent;
|
|
377
|
+
transition-property: background-color, border-color, color, box-shadow, translate, scale;
|
|
378
|
+
transition-duration: var(--vk-duration-fast);
|
|
379
|
+
transition-timing-function: var(--vk-ease-out);
|
|
380
|
+
}
|
|
381
|
+
.o-button > [data-slot="vk-button-icon"] { display: inline-flex; flex: none; transition: color var(--vk-duration-fast) var(--vk-ease-out); }
|
|
382
|
+
.o-button > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 3.75); height: calc(var(--vk-spacing) * 3.75); }
|
|
383
|
+
|
|
384
|
+
/* ── Sizes and forms: 24 and 28px in dense places (a header beside a 24px face, a chip's row), 32 in
|
|
385
|
+
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
|
|
386
|
+
at 44 high); the smaller two carry smaller words and icons ── */
|
|
387
|
+
.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); }
|
|
388
|
+
.o-button-xs { height: calc(var(--vk-spacing) * 7); padding: 0 calc(var(--vk-spacing) * 2.5); gap: calc(var(--vk-spacing) * 1); }
|
|
389
|
+
.o-button-sm { height: calc(var(--vk-spacing) * 8); padding: 0 calc(var(--vk-spacing) * 3); }
|
|
390
|
+
.o-button-lg { height: calc(var(--vk-spacing) * 11); padding: 0 calc(var(--vk-spacing) * 5); font-size: var(--vk-font-size-base); }
|
|
391
|
+
.o-button-2xs > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 3); height: calc(var(--vk-spacing) * 3); }
|
|
392
|
+
.o-button-xs > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 3.5); height: calc(var(--vk-spacing) * 3.5); }
|
|
393
|
+
/* Icon only: a square of its height, at every size. */
|
|
394
|
+
.o-button.o-button-icon { aspect-ratio: 1; min-width: 0; padding: 0; }
|
|
395
|
+
/* Round: a circle of its height, at every size; the card's close is the 32px one. */
|
|
396
|
+
.o-button.o-button-round { aspect-ratio: 1; min-width: 0; padding: 0; --button-r: var(--vk-radius-full); }
|
|
397
|
+
/* An icon-only or round button's icon is in proportion to it, a little over half its height: 14px at 24,
|
|
398
|
+
16 at 28, 18 at 32, 20 at 36, 24 at 44. A button with words keeps its icon beside them, 15px. */
|
|
399
|
+
.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); }
|
|
400
|
+
.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); }
|
|
401
|
+
.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); }
|
|
402
|
+
.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); }
|
|
403
|
+
.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); }
|
|
404
|
+
|
|
405
|
+
/* ── Under the pointer, only on a screen that has one: iOS keeps :hover on what was last tapped,
|
|
406
|
+
so on a phone a hover fill would stay after the tap. Every kind's and every look's hover is here, in the
|
|
407
|
+
order the kinds and the looks below give them; where each rule stands below, only the sheets' forced state
|
|
408
|
+
([data-force="hover"]) stays, drawn on any screen. A press (:active) stays below too, a fill only while
|
|
409
|
+
pressed, and after this block, so a press under the pointer still wins over the hover ────────────── */
|
|
410
|
+
@media (hover: hover) {
|
|
411
|
+
.o-button-primary:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-brand-hovered); }
|
|
412
|
+
.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); }
|
|
413
|
+
.o-button-information:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-info-bold-hovered); }
|
|
414
|
+
.o-button-success:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-success-bold-hovered); }
|
|
415
|
+
.o-button-warning:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-warning-bold-hovered); }
|
|
416
|
+
.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); }
|
|
417
|
+
.o-button-soft:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-neutral-hovered); }
|
|
418
|
+
.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); }
|
|
419
|
+
.o-button-link:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { text-decoration: underline; }
|
|
420
|
+
.o-button-text:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { text-decoration-color: currentColor; }
|
|
421
|
+
[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); }
|
|
422
|
+
[data-button-depth="edged"] .o-button-quiet:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-depth: var(--vk-shadow-key-shallow); }
|
|
423
|
+
[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)); }
|
|
424
|
+
[data-button-hover="brighter"] .o-button-primary:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-brand); }
|
|
425
|
+
[data-button-hover="brighter"] .o-button-danger:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-danger-bold); }
|
|
426
|
+
[data-button-hover="brighter"] .o-button-information:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-info-bold); }
|
|
427
|
+
[data-button-hover="brighter"] .o-button-success:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-success-bold); }
|
|
428
|
+
[data-button-hover="brighter"] .o-button-warning:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-warning-bold); }
|
|
429
|
+
[data-button-hover="brighter"] .o-button-outline:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-ground); }
|
|
430
|
+
[data-button-hover="brighter"] .o-button-soft:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-neutral); }
|
|
431
|
+
[data-button-hover="brighter"] .o-button-quiet:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-light: none; }
|
|
432
|
+
[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); }
|
|
433
|
+
[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); }
|
|
434
|
+
[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); }
|
|
435
|
+
[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); }
|
|
436
|
+
[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); }
|
|
437
|
+
[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); }
|
|
438
|
+
[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); }
|
|
439
|
+
[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); }
|
|
440
|
+
[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); }
|
|
441
|
+
[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; }
|
|
442
|
+
[data-button-soft="tint"] .o-button-soft:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-brand-subtler-hovered); }
|
|
443
|
+
[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); }
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
/* ── The kinds, as the approved card draws them ─────────────────────────────────────────────────────── */
|
|
447
|
+
/* Primary: the one main action, in the brand. */
|
|
448
|
+
.o-button-primary { --button-ground: var(--vk-brand); color: var(--vk-fg-on-brand); }
|
|
449
|
+
.o-button-primary[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]),
|
|
450
|
+
.o-button-primary:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-brand-hovered); }
|
|
451
|
+
/* Danger: primary's form in the danger colours. */
|
|
452
|
+
.o-button-danger { --button-ground: var(--vk-danger-bold); color: var(--vk-fg-inverse); }
|
|
453
|
+
.o-button-danger[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]),
|
|
454
|
+
.o-button-danger:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-danger-bold-hovered); }
|
|
455
|
+
/* Information, Success and Warning: primary's form in the Notice's meanings' colours, for an action that says which it is. Warning
|
|
456
|
+
takes the same white words as the rest. */
|
|
457
|
+
.o-button-information { --button-ground: var(--vk-info-bold); color: var(--vk-fg-on-brand); }
|
|
458
|
+
.o-button-information[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]),
|
|
459
|
+
.o-button-information:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-info-bold-hovered); }
|
|
460
|
+
.o-button-success { --button-ground: var(--vk-success-bold); color: var(--vk-fg-inverse); }
|
|
461
|
+
.o-button-success[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]),
|
|
462
|
+
.o-button-success:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-success-bold-hovered); }
|
|
463
|
+
.o-button-warning { --button-ground: var(--vk-warning-bold); color: var(--vk-fg-inverse); }
|
|
464
|
+
.o-button-warning[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]),
|
|
465
|
+
.o-button-warning:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-warning-bold-hovered); }
|
|
466
|
+
/* Outline: every other action, the surface with an edge. */
|
|
467
|
+
.o-button-outline { --button-ground: var(--vk-ground); --button-edge: var(--vk-border-input); --button-edge-foot: var(--vk-border-input); }
|
|
468
|
+
.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); }
|
|
469
|
+
.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); }
|
|
470
|
+
/* Soft: beside a field or in a toolbar. */
|
|
471
|
+
.o-button-soft { --button-ground: var(--vk-neutral); }
|
|
472
|
+
.o-button-soft[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]),
|
|
473
|
+
.o-button-soft:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-neutral-hovered); }
|
|
474
|
+
/* Quiet: the way out, only its words until the pointer finds it, on the step of the ground it stands on: the
|
|
475
|
+
page's, or a popup's own. */
|
|
476
|
+
.o-button-quiet { color: var(--vk-fg-subtle); }
|
|
477
|
+
.o-button-quiet[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-hovered); color: var(--vk-fg); }
|
|
478
|
+
.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); }
|
|
479
|
+
/* On a popup's ground, the overlay's hover: as specific as the page's, so a look's own hover (rises) and a
|
|
480
|
+
component's own over a Button (the Menu's dots) still win. Its press follows the looks' press, below. */
|
|
481
|
+
: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); }
|
|
482
|
+
@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); } }
|
|
483
|
+
/* Link: words in the brand's text colour, no fill and no edge; underlined under the pointer. */
|
|
484
|
+
.o-button-link { color: var(--vk-fg-accent); text-underline-offset: calc(var(--vk-spacing) * 3 / 4); }
|
|
485
|
+
.o-button-link[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { text-decoration: underline; }
|
|
486
|
+
/* 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
|
|
487
|
+
colour, no fill and no edge, the underline easing in under the pointer. While it works without a spinner
|
|
488
|
+
("Retrying…"), its words stay, quieter. */
|
|
489
|
+
.o-button-text {
|
|
490
|
+
color: var(--vk-fg); text-decoration: underline transparent; text-underline-offset: calc(var(--vk-spacing) * 3 / 4);
|
|
491
|
+
transition-property: background-color, border-color, color, box-shadow, translate, scale, text-decoration-color;
|
|
492
|
+
}
|
|
493
|
+
.o-button-text[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { text-decoration-color: currentColor; }
|
|
494
|
+
.o-button-text[aria-busy="true"]:not(:has(> [data-slot="vk-button-spinner"])) { color: var(--vk-fg-subtle); }
|
|
495
|
+
.o-button.o-button-text[aria-busy="true"]:not(:has(> [data-slot="vk-button-spinner"])) > * { visibility: visible; }
|
|
496
|
+
/* Pressed, it settles. */
|
|
497
|
+
.o-button:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { scale: var(--vk-press-scale); }
|
|
498
|
+
|
|
499
|
+
/* ── Corners: a step of the radius ────────────────────────────────────────────────────────────────── */
|
|
500
|
+
/* For now, a Button whose own look names its radius (or its words, below) keeps them: the frame's Corners, Pill's padding
|
|
501
|
+
and Label weight skip it; Pill's padding skips its pad and the measured sizes with words too, and Pill's padding at an
|
|
502
|
+
end icon skips its end room. */
|
|
503
|
+
[data-button-radius="xs"] .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])) { --button-r: var(--vk-radius-xs); }
|
|
504
|
+
[data-button-radius="sm"] .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])) { --button-r: var(--vk-radius-sm); }
|
|
505
|
+
[data-button-radius="md"] .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])) { --button-r: var(--vk-radius-md); }
|
|
506
|
+
[data-button-radius="lg"] .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])) { --button-r: var(--vk-radius-lg); }
|
|
507
|
+
[data-button-radius="xl"] .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])) { --button-r: var(--vk-radius-xl); }
|
|
508
|
+
[data-button-radius="2xl"] .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])) { --button-r: var(--vk-radius-2xl); }
|
|
509
|
+
/* Full: a pill, an icon button a circle. Its round ends leave room, so it takes a step more padding, and
|
|
510
|
+
a step less on the side an icon sits. */
|
|
511
|
+
[data-button-radius="full"] .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])) { --button-r: var(--vk-radius-full); }
|
|
512
|
+
[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); }
|
|
513
|
+
[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); }
|
|
514
|
+
[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); }
|
|
515
|
+
[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); }
|
|
516
|
+
[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); }
|
|
517
|
+
[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); }
|
|
518
|
+
[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); }
|
|
519
|
+
[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); }
|
|
520
|
+
[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); }
|
|
521
|
+
[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); }
|
|
522
|
+
[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); }
|
|
523
|
+
[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); }
|
|
524
|
+
[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); }
|
|
525
|
+
[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); }
|
|
526
|
+
[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); }
|
|
527
|
+
|
|
528
|
+
/* ── Label weight ─────────────────────────────────────────────────────────────────────────────────── */
|
|
529
|
+
[data-button-weight="semibold"] .o-button:not(:where([data-button-own][data-button-words])) { font-weight: var(--vk-font-weight-semibold); }
|
|
530
|
+
|
|
531
|
+
/* ── Depth: edged, a key; lifted, floating on the page ────────────────────────────────────────────── */
|
|
532
|
+
[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); }
|
|
533
|
+
[data-button-depth="edged"] .o-button-outline { --button-depth: var(--vk-shadow-key-subtle); --button-edge-foot: var(--vk-border-input-hovered); }
|
|
534
|
+
[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); }
|
|
535
|
+
[data-button-depth="edged"] .o-button-soft { --button-depth: var(--vk-shadow-key-soft); }
|
|
536
|
+
[data-button-depth="edged"] .o-button-quiet[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-depth: var(--vk-shadow-key-shallow); }
|
|
537
|
+
|
|
538
|
+
[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); }
|
|
539
|
+
[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); }
|
|
540
|
+
[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); }
|
|
541
|
+
[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); }
|
|
542
|
+
[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); }
|
|
543
|
+
[data-button-depth="lifted"] .o-button-outline { --button-depth: var(--vk-shadow-rim), var(--vk-shadow-lift); }
|
|
544
|
+
|
|
545
|
+
/* ── Under the pointer: brighter, a thin light over the fill; rises, a pixel up on a deeper shadow ── */
|
|
546
|
+
[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)); }
|
|
547
|
+
[data-button-hover="brighter"] .o-button-primary[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-brand); }
|
|
548
|
+
[data-button-hover="brighter"] .o-button-danger[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-danger-bold); }
|
|
549
|
+
[data-button-hover="brighter"] .o-button-information[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-info-bold); }
|
|
550
|
+
[data-button-hover="brighter"] .o-button-success[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-success-bold); }
|
|
551
|
+
[data-button-hover="brighter"] .o-button-warning[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-warning-bold); }
|
|
552
|
+
[data-button-hover="brighter"] .o-button-outline[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-ground); }
|
|
553
|
+
[data-button-hover="brighter"] .o-button-soft[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-neutral); }
|
|
554
|
+
[data-button-hover="brighter"] .o-button-quiet[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-light: none; }
|
|
555
|
+
|
|
556
|
+
[data-button-hover="rises"] .o-button { transition-duration: var(--vk-duration-base); }
|
|
557
|
+
[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); }
|
|
558
|
+
[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); }
|
|
559
|
+
[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); }
|
|
560
|
+
[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); }
|
|
561
|
+
[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); }
|
|
562
|
+
[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); }
|
|
563
|
+
[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); }
|
|
564
|
+
[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); }
|
|
565
|
+
[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); }
|
|
566
|
+
|
|
567
|
+
/* A link, and text, stay words in every look: no light laid over them, no rise. */
|
|
568
|
+
[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; }
|
|
569
|
+
|
|
570
|
+
/* A press under the pointer: the kind's pressed fill comes back over what a look's hover set. */
|
|
571
|
+
[data-button-hover] .o-button:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-light: none; }
|
|
572
|
+
[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); }
|
|
573
|
+
[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); }
|
|
574
|
+
[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); }
|
|
575
|
+
[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); }
|
|
576
|
+
[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); }
|
|
577
|
+
[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); }
|
|
578
|
+
[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); }
|
|
579
|
+
[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); }
|
|
580
|
+
/* On a popup's ground, the overlay's press, in every look. */
|
|
581
|
+
: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); }
|
|
582
|
+
|
|
583
|
+
/* ── Press: sinks into the page, springs back from a squash, or lands flat ────────────────────────── */
|
|
584
|
+
[data-button-press="sinks"] .o-button:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) {
|
|
585
|
+
scale: none; translate: 0 var(--vk-press-travel); --button-depth: var(--vk-shadow-key-pressed);
|
|
586
|
+
--button-light: linear-gradient(var(--vk-darken), var(--vk-darken)); transition-duration: var(--vk-duration-instant);
|
|
587
|
+
}
|
|
588
|
+
[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); }
|
|
589
|
+
[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); }
|
|
590
|
+
[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); }
|
|
591
|
+
[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); }
|
|
592
|
+
[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); }
|
|
593
|
+
[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); }
|
|
594
|
+
[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); }
|
|
595
|
+
[data-button-press="sinks"] .o-button-outline:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]),
|
|
596
|
+
[data-button-press="sinks"] .o-button-quiet:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-light: none; }
|
|
597
|
+
|
|
598
|
+
[data-button-press="springs"] .o-button {
|
|
599
|
+
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);
|
|
600
|
+
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);
|
|
601
|
+
}
|
|
602
|
+
/* Every Button squashes the same, its icon alone and a round one too: one press, whatever it shows. */
|
|
603
|
+
[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); }
|
|
604
|
+
[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); }
|
|
605
|
+
[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); }
|
|
606
|
+
[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); }
|
|
607
|
+
[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); }
|
|
608
|
+
[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); }
|
|
609
|
+
|
|
610
|
+
[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; }
|
|
611
|
+
|
|
612
|
+
[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); }
|
|
613
|
+
[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); }
|
|
614
|
+
[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); }
|
|
615
|
+
[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); }
|
|
616
|
+
[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); }
|
|
617
|
+
[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); }
|
|
618
|
+
|
|
619
|
+
/* ── The soft kind in the brand's tint, its icon taking the brand under the pointer ───────────────── */
|
|
620
|
+
[data-button-soft="tint"] .o-button-soft { --button-ground: var(--vk-brand-subtler); }
|
|
621
|
+
[data-button-soft="tint"] .o-button-soft > [data-slot="vk-button-icon"] { color: var(--vk-fg-subtle); }
|
|
622
|
+
[data-button-soft="tint"] .o-button-soft[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-brand-subtler-hovered); }
|
|
623
|
+
[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); }
|
|
624
|
+
[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); }
|
|
625
|
+
|
|
626
|
+
/* ── Focus, disabled, working: the same in every look ─────────────────────────────────────────────── */
|
|
627
|
+
.o-button:is(:focus-visible, [data-force="focus"]) { outline: var(--vk-focus-width) solid var(--vk-border-brand); outline-offset: var(--vk-focus-offset); }
|
|
628
|
+
/* Disabled: on the page, grey, no depth; a quiet button keeps no fill. */
|
|
629
|
+
.o-button:is(:disabled, [data-disabled]) {
|
|
630
|
+
--button-ground: var(--vk-neutral); --button-light: none; --button-edge: transparent; --button-edge-foot: transparent; --button-depth: none;
|
|
631
|
+
color: var(--vk-fg-disabled); cursor: not-allowed;
|
|
632
|
+
}
|
|
633
|
+
.o-button:is(.o-button-quiet, .o-button-link, .o-button-text):is(:disabled, [data-disabled]) { --button-ground: transparent; }
|
|
634
|
+
/* Text's ring hugs its words, as it sits inside what it acts on. */
|
|
635
|
+
.o-button.o-button-text:is(:focus-visible, [data-force="focus"]) { outline-offset: 0; }
|
|
636
|
+
.o-button:is(:disabled, [data-disabled]) > [data-slot="vk-button-icon"] { color: inherit; }
|
|
637
|
+
/* Working: it keeps its place and its width; the label waits under the spinner. */
|
|
638
|
+
.o-button[aria-busy="true"] { cursor: progress; }
|
|
639
|
+
.o-button[aria-busy="true"] > :not([data-slot="vk-button-spinner"], .o-button-cut) { visibility: hidden; }
|
|
640
|
+
.o-button > [data-slot="vk-button-spinner"] { position: absolute; inset: 0; display: grid; place-items: center; }
|
|
641
|
+
|
|
642
|
+
/* ── A group: buttons joined in a row or a column, the corners between them square and the edge between
|
|
643
|
+
them shared; whatever the corners and the looks, only the group's outer corners are rounded. Focus lifts
|
|
644
|
+
a button above its neighbours, so its ring shows whole; groups inside a group stand 8px apart ──────── */
|
|
645
|
+
.o-button-group { display: inline-flex; align-items: stretch; width: fit-content; isolation: isolate; }
|
|
646
|
+
.o-button-group[data-orientation="vertical"] { flex-direction: column; }
|
|
647
|
+
.o-button-group:has(> .o-button-group) { gap: calc(var(--vk-spacing) * 2); }
|
|
648
|
+
.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; }
|
|
649
|
+
.o-button-group[data-orientation="horizontal"] > :not(:last-child):not(.o-button-group) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
|
|
650
|
+
.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; }
|
|
651
|
+
.o-button-group[data-orientation="vertical"] > :not(:last-child):not(.o-button-group) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
|
|
652
|
+
.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; }
|
|
653
|
+
/* Words in a group: on the neutral ground, inside the group's edge. */
|
|
654
|
+
.o-button-group-text {
|
|
655
|
+
display: inline-flex; align-items: center; gap: calc(var(--vk-spacing) * 2); box-sizing: border-box; padding: 0 calc(var(--vk-spacing) * 2.5);
|
|
656
|
+
border: var(--vk-border-width) solid var(--vk-border-input); border-radius: var(--vk-radius-lg);
|
|
657
|
+
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;
|
|
658
|
+
}
|
|
659
|
+
.o-button-group-text svg { flex: none; width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); }
|
|
660
|
+
/* The line between two buttons with no edge of their own. */
|
|
661
|
+
.o-button-group-sep { flex: none; align-self: stretch; width: var(--vk-border-width); background-color: var(--vk-border-input); }
|
|
662
|
+
.o-button-group[data-orientation="vertical"] > .o-button-group-sep { width: auto; height: var(--vk-border-width); }
|
|
663
|
+
|
|
664
|
+
/* ── Measured sizes, and a Button's own look ─────────────────────────────────────────────────
|
|
665
|
+
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,
|
|
666
|
+
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
|
|
667
|
+
set on the Button itself, beside data-button-own: each option it names, it keeps; what it doesn't name, the frame sets. */
|
|
668
|
+
.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); }
|
|
669
|
+
.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); }
|
|
670
|
+
.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); }
|
|
671
|
+
.o-button-26:has(> [data-slot="vk-button-icon"]:first-child) { padding-left: var(--vk-spacing); }
|
|
672
|
+
.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; }
|
|
673
|
+
.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); }
|
|
674
|
+
/* 44: the md Button 44 high, square when icon-only or round; not a look's measure, so Pill pads it as md. */
|
|
675
|
+
.o-button-44 { height: calc(var(--vk-spacing) * 11); }
|
|
676
|
+
.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); }
|
|
677
|
+
.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; }
|
|
678
|
+
.o-button.o-button-line.o-button-icon { width: auto; aspect-ratio: auto; }
|
|
679
|
+
.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); }
|
|
680
|
+
.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,
|
|
681
|
+
.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); }
|
|
682
|
+
.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); }
|
|
683
|
+
|
|
684
|
+
/* Its radius and its corner, its edge, its words. */
|
|
685
|
+
.o-button[data-button-own][data-button-radius="none"] { --button-r: 0px; }
|
|
686
|
+
.o-button[data-button-own][data-button-radius="xs"] { --button-r: var(--vk-radius-xs); }
|
|
687
|
+
.o-button[data-button-own][data-button-radius="sm"] { --button-r: var(--vk-radius-sm); }
|
|
688
|
+
.o-button[data-button-own][data-button-radius="md"] { --button-r: var(--vk-radius-md); }
|
|
689
|
+
.o-button[data-button-own][data-button-corner="round"] { }
|
|
690
|
+
.o-button[data-button-own][data-button-edge="none"] { --button-line: 0px; }
|
|
691
|
+
.o-button[data-button-own][data-button-words], .o-button[data-button-own][data-button-words="inherit"] { font: inherit; }
|
|
692
|
+
.o-button[data-button-own][data-button-words="xs"] { font-size: var(--vk-font-size-xs); }
|
|
693
|
+
.o-button[data-button-own][data-button-words="sm"] { font-size: var(--vk-font-size-sm); }
|
|
694
|
+
.o-button[data-button-own][data-button-words="xs-medium"] { font-size: var(--vk-font-size-xs); font-weight: var(--vk-font-weight-medium); }
|
|
695
|
+
/* Its colour, kept in every state but disabled (a press's and the pointer's colour among them), unless disabled plain. */
|
|
696
|
+
.o-button[data-button-own][data-button-colour="faint"]:is(:not(:disabled, [data-disabled]), [data-button-disabled="plain"]) { color: var(--vk-fg-subtlest); }
|
|
697
|
+
.o-button[data-button-own][data-button-colour="link"]:is(:not(:disabled, [data-disabled]), [data-button-disabled="plain"]) { color: var(--vk-fg-brand); }
|
|
698
|
+
.o-button[data-button-own][data-button-colour="text"]:is(:not(:disabled, [data-disabled]), [data-button-disabled="plain"]) { color: var(--vk-fg); }
|
|
699
|
+
.o-button[data-button-own][data-button-colour="inherit"]:is(:not(:disabled, [data-disabled]), [data-button-disabled="plain"]) { color: inherit; }
|
|
700
|
+
.o-button[data-button-own][data-button-disabled="plain"]:is(:disabled, [data-disabled]) { cursor: default; }
|
|
701
|
+
/* Its icons: their size, and their colour apart from its words. */
|
|
702
|
+
.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); }
|
|
703
|
+
.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); }
|
|
704
|
+
.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); }
|
|
705
|
+
.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); }
|
|
706
|
+
.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); }
|
|
707
|
+
.o-button[data-button-own][data-button-icon-colour="faint"] > [data-slot="vk-button-icon"] > svg { color: var(--vk-fg-subtlest); }
|
|
708
|
+
/* Its room left and right, and between its words and its icons. */
|
|
709
|
+
.o-button[data-button-own][data-button-pad="4"] { padding: 0 var(--vk-spacing); }
|
|
710
|
+
.o-button[data-button-own][data-button-pad="6"] { padding: 0 calc(var(--vk-spacing) * 1.5); }
|
|
711
|
+
.o-button[data-button-own][data-button-pad="8"] { padding: 0 calc(var(--vk-spacing) * 2); }
|
|
712
|
+
.o-button[data-button-own][data-button-gap="4"] { gap: var(--vk-spacing); }
|
|
713
|
+
/* Under the pointer: with hover none the kit's own hovers skip it (above); with hover words, its words alone take the text's
|
|
714
|
+
colour. Open, the ground it has under the pointer, on a popup's the overlay's. */
|
|
715
|
+
@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); } }
|
|
716
|
+
.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); }
|
|
717
|
+
: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); }
|
|
718
|
+
.o-button[data-button-own][data-button-cursor="grab"]:not(:disabled, [data-disabled]) { cursor: grab; }
|
|
719
|
+
/* Pressed on a card in a popup: the card's pressed step, over the popup's own press. */
|
|
720
|
+
.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); }
|
|
721
|
+
/* its words at its start, its label growing so an end icon stands at its end; its words semibold, over its words' own. */
|
|
722
|
+
.o-button[data-button-own][data-button-align="start"] { justify-content: flex-start; text-align: start; }
|
|
723
|
+
.o-button[data-button-own][data-button-align="start"] > [data-slot="vk-button-label"] { flex-grow: 1; }
|
|
724
|
+
.o-button[data-button-own][data-button-weight="semibold"] { font-weight: var(--vk-font-weight-semibold); }
|
|
725
|
+
/* 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. */
|
|
726
|
+
.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); }
|
|
727
|
+
.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; }
|
|
728
|
+
.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; }
|
|
729
|
+
/* A dot at its top end corner, saying something is on. */
|
|
730
|
+
.o-button[data-button-own][data-button-dot="brand"]::after {
|
|
731
|
+
content: ""; position: absolute; top: var(--vk-spacing); right: var(--vk-spacing); width: var(--vk-dot-size); height: var(--vk-dot-size);
|
|
732
|
+
border-radius: 50%; background-color: var(--vk-brand); pointer-events: none;
|
|
733
|
+
}
|
|
734
|
+
/* 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
|
|
735
|
+
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
|
|
736
|
+
past its line above and below, taken back by its margin, so the Button's height and its words' place stay. */
|
|
737
|
+
.o-button[data-button-own][data-button-cut="end"] > [data-slot="vk-button-label"] {
|
|
738
|
+
min-width: 0; overflow: hidden; text-overflow: ellipsis;
|
|
739
|
+
padding-block: var(--vk-spacing); margin-block: calc(var(--vk-spacing) * -1);
|
|
740
|
+
}
|
|
741
|
+
/* Room at its end for something laid over it: it wins over Pill's padding by standing after it, as specific (0,3,0). */
|
|
742
|
+
.o-button[data-button-own][data-button-end-room="30"] { padding-right: calc(var(--vk-spacing) * 7.5); }
|
|
743
|
+
/* Its icons subtle, kept while its words take the text's colour under the pointer. */
|
|
744
|
+
.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); }
|
|
745
|
+
/* The values the Date and Text editors' looks need, each as measured from Attio's captures or the look's sketches. The
|
|
746
|
+
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
|
|
747
|
+
place's font); digits one width each; the icon in the brand's colour. */
|
|
748
|
+
.o-button[data-button-own][data-button-radius="lg"] { --button-r: var(--vk-radius-lg); }
|
|
749
|
+
.o-button[data-button-own][data-button-pad="0"] { padding: 0; }
|
|
750
|
+
.o-button[data-button-own][data-button-pad="6-4"] { padding: 0 var(--vk-spacing) 0 calc(var(--vk-spacing) * 1.5); }
|
|
751
|
+
.o-button[data-button-own][data-button-gap="3"] { gap: calc(var(--vk-spacing) * 3 / 4); }
|
|
752
|
+
.o-button[data-button-own][data-button-gap="6"] { gap: calc(var(--vk-spacing) * 1.5); }
|
|
753
|
+
.o-button[data-button-own][data-button-gap="8"] { gap: calc(var(--vk-spacing) * 2); }
|
|
754
|
+
.o-button[data-button-own][data-button-gap="10"] { gap: calc(var(--vk-spacing) * 2.5); }
|
|
755
|
+
.o-button[data-button-own][data-button-words="lg"] { font-size: var(--vk-font-size-lg); }
|
|
756
|
+
.o-button[data-button-own][data-button-weight="medium"] { font-weight: var(--vk-font-weight-medium); }
|
|
757
|
+
.o-button[data-button-own][data-button-digits="tabular"] { font-variant-numeric: tabular-nums; }
|
|
758
|
+
.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); }
|
|
759
|
+
/* 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
|
|
760
|
+
its popup hover. */
|
|
761
|
+
@media (hover: hover) {
|
|
762
|
+
.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); }
|
|
763
|
+
.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); }
|
|
764
|
+
}
|
|
765
|
+
/* Open: its words and icons in the brand's colour, over its own colour; or the neutral ground. */
|
|
766
|
+
.o-button[data-button-own][data-button-open="brand"][aria-expanded="true"]:not(:disabled, [data-disabled]) { color: var(--vk-fg-accent); }
|
|
767
|
+
.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); }
|
|
768
|
+
.o-button[data-button-own][data-button-open="neutral"][aria-expanded="true"]:not(:disabled, [data-disabled]) { --button-ground: var(--vk-neutral); }
|
|
769
|
+
/* Standing pressed (aria-pressed="true"): the popup's hover as its ground, its words the text's. */
|
|
770
|
+
.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); }
|
|
771
|
+
|
|
772
|
+
/* ── Corner smoothing: the Button's own (data-button-smoothing, looks.ts), The app's, with nothing set, following the
|
|
773
|
+
token corner-smoothing (Round is the token at 0), Smooth and Round setting it apart; the Toggle, the Toolbar
|
|
774
|
+
button and the Menubar's triggers are Buttons, so they follow it (the Toolbar button's own Smooth or Round, data-smoothing, wins).
|
|
775
|
+
Drawn with the smooth outline (smooth.css, beside the controls) in every browser that knows shape(); one that doesn't keeps the corners
|
|
776
|
+
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
|
|
777
|
+
Button joined in a group or a Toolbar button joined to its neighbours (data-joined) (the outline has no corners apart left
|
|
778
|
+
and right: in Chromium its squircle, as before), which paint
|
|
779
|
+
themselves from their variables as before. The Button itself is never clipped: its depth, its press, its focus ring and a phone's
|
|
780
|
+
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
|
|
781
|
+
last child, over its border box): the ground (::before) clipped by the outline, with the depth's inset light again inside it,
|
|
782
|
+
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
|
|
783
|
+
Button's own side (100cqmin) whatever height a place gives it: the corner its radius fitted to that side as a control's is,
|
|
784
|
+
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. ──────── */
|
|
785
|
+
.o-button-cut { display: none; }
|
|
786
|
+
.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; }
|
|
787
|
+
@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) {
|
|
788
|
+
/* Its side: the shorter of its sides as each size gives its height (its width where it is the narrower), which its own
|
|
789
|
+
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
|
|
790
|
+
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. */
|
|
791
|
+
:where(.o-button) { --button-side: calc(var(--vk-spacing) * 9); }
|
|
792
|
+
.o-button-2xs { --button-side: calc(var(--vk-spacing) * 6); }
|
|
793
|
+
.o-button-xs { --button-side: calc(var(--vk-spacing) * 7); }
|
|
794
|
+
.o-button-sm { --button-side: calc(var(--vk-spacing) * 8); }
|
|
795
|
+
.o-button-lg { --button-side: calc(var(--vk-spacing) * 11); }
|
|
796
|
+
.o-button-20 { --button-side: calc(var(--vk-spacing) * 5); }
|
|
797
|
+
.o-button-22 { --button-side: calc(var(--vk-spacing) * 5.5); }
|
|
798
|
+
.o-button-26 { --button-side: calc(var(--vk-spacing) * 6.5); }
|
|
799
|
+
.o-button.o-button-20x24 { --button-side: calc(var(--vk-spacing) * 5); }
|
|
800
|
+
.o-button.o-button-32x44 { --button-side: calc(var(--vk-spacing) * 8); }
|
|
801
|
+
.o-button-44 { --button-side: calc(var(--vk-spacing) * 11); }
|
|
802
|
+
.o-button.o-button-40x44 { --button-side: calc(var(--vk-spacing) * 10); }
|
|
803
|
+
.o-button.o-button-line { --button-side: calc(1lh + var(--button-line) * 2); }
|
|
804
|
+
.o-button.o-button-line.o-button-icon { --button-side: calc(var(--vk-spacing) * 3.5 + var(--button-line) * 2); }
|
|
805
|
+
/* Its own corner is its ground's, so the focus ring and the depth it paints itself, a place's ring with them (an
|
|
806
|
+
offset, an inset ring, the browser's own), stand on the fitted corner: the cut's sum, from the side its size declares
|
|
807
|
+
(--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
|
|
808
|
+
its radius, as on main, which the browser holds to half its real side: so a pill's side is never told too short. */
|
|
809
|
+
: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) {
|
|
810
|
+
isolation: isolate; background-color: transparent; background-image: none; border-color: transparent;
|
|
811
|
+
--button-own-amount: calc(var(--vk-corner-smoothing) * (1 - clamp(0, tan(atan2(var(--button-r) - 500px, 1px)), 1)));
|
|
812
|
+
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);
|
|
813
|
+
}
|
|
814
|
+
: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"]) {
|
|
815
|
+
--button-own-amount: calc(0.7 * (1 - clamp(0, tan(atan2(var(--button-r) - 500px, 1px)), 1)));
|
|
816
|
+
}
|
|
817
|
+
: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 {
|
|
818
|
+
display: block; position: absolute; inset: calc(var(--button-line) * -1); z-index: -1; pointer-events: none; container-type: size;
|
|
819
|
+
transition-property: none; transition-duration: inherit; transition-timing-function: inherit;
|
|
820
|
+
}
|
|
821
|
+
/* 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)
|
|
822
|
+
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
|
|
823
|
+
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
|
|
824
|
+
Sheet's bottom corners, a Menubar's inset, a list's row) reaches it. */
|
|
825
|
+
.o-button > .o-button-cut > .o-smooth {
|
|
826
|
+
--button-pill: clamp(0, tan(atan2(var(--button-r) - 500px, 1px)), 1); --button-side: 100cqmin; --smooth-side: var(--button-side);
|
|
827
|
+
--smooth-amount: calc(var(--vk-corner-smoothing) * (1 - var(--button-pill)));
|
|
828
|
+
--button-fit: min(var(--button-r), var(--button-side) / (2 + 2 * var(--smooth-amount, 0.7)));
|
|
829
|
+
--smooth-t: var(--button-fit); --smooth-b: initial; --smooth-foot: initial; --smooth-in: initial;
|
|
830
|
+
position: absolute; inset: 0; transition-property: none; transition-duration: inherit; transition-timing-function: inherit;
|
|
831
|
+
}
|
|
832
|
+
[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))); }
|
|
833
|
+
.o-button > .o-button-cut > .o-smooth::before, .o-button > .o-button-cut > .o-smooth::after {
|
|
834
|
+
content: ""; position: absolute; inset: 0; box-sizing: border-box;
|
|
835
|
+
transition-property: background-color, box-shadow; transition-duration: inherit; transition-timing-function: inherit;
|
|
836
|
+
}
|
|
837
|
+
/* 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. */
|
|
838
|
+
.o-button > .o-button-cut > .o-smooth::before {
|
|
839
|
+
border: var(--button-line) solid transparent; border-radius: var(--button-fit);
|
|
840
|
+
background-color: var(--button-ground); background-image: var(--button-light); box-shadow: var(--button-depth); clip-path: shape(var(--smooth-outline));
|
|
841
|
+
}
|
|
842
|
+
.o-button > .o-button-cut > .o-smooth::after {
|
|
843
|
+
--smooth-t: max(0px, var(--button-fit) - var(--button-line)); --smooth-in: var(--button-line);
|
|
844
|
+
background-image: linear-gradient(var(--button-edge) calc(100% - var(--button-fit)), var(--button-edge-foot) 0); clip-path: shape(var(--smooth-ring));
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
/* Under reduced motion nothing moves; the colours still change. */
|
|
849
|
+
@media (prefers-reduced-motion: reduce) {
|
|
850
|
+
.o-button { transition-property: background-color, border-color, color, box-shadow; }
|
|
851
|
+
.o-button, .o-button:is(:active, [data-force]) { translate: none !important; scale: none !important; }
|
|
852
|
+
.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; }
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
/* ── The arc, as a frame that names a kind other than the tail draws it (nothing picked is the tail, below) ─────────────────────────────────────────────────────────────────────── */
|
|
856
|
+
.o-spinner {
|
|
857
|
+
--o-spinner-turn: var(--vk-spinner-turn); --o-spinner-breath: var(--vk-spinner-breath); --o-spinner-weight: 1;
|
|
858
|
+
flex: none; display: inline-block; color: inherit;
|
|
859
|
+
animation: vk-spin-turn var(--o-spinner-turn) linear infinite; animation-delay: calc(var(--o-spinner-turn) * -0.25);
|
|
860
|
+
}
|
|
861
|
+
.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); }
|
|
862
|
+
.o-spinner > :is(.o-spinner-track, .o-spinner-bars, .o-spinner-dot, .o-spinner-ring) { display: none; }
|
|
863
|
+
.o-spinner-track { opacity: 0.14; }
|
|
864
|
+
.o-spinner-arc {
|
|
865
|
+
stroke-linecap: round; stroke-dasharray: 1 200; stroke-dashoffset: 0;
|
|
866
|
+
animation: vk-spin-breath var(--o-spinner-breath) linear infinite; animation-delay: calc(var(--o-spinner-breath) * -0.5);
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
/* ── Breath, the arc's. Slower: the same at two thirds of its speed. Never a dot: the same two beats, eased, between an eighth
|
|
870
|
+
and five eighths of the ring. Soft: both ends ease out and back round a middle that turns steadily. Barely: the same,
|
|
871
|
+
between a third and a half of the ring ───────────────────────────────────────────────────────────────────────── */
|
|
872
|
+
[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); }
|
|
873
|
+
[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); }
|
|
874
|
+
[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); }
|
|
875
|
+
[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); }
|
|
876
|
+
[data-spinner-breath="open"] .o-spinner-arc { animation-name: vk-spin-open; animation-timing-function: var(--vk-ease-in-out); }
|
|
877
|
+
[data-spinner-breath="soft"] .o-spinner-arc { animation-name: vk-spin-soft; animation-timing-function: var(--vk-ease-in-out); }
|
|
878
|
+
[data-spinner-breath="barely"] .o-spinner-arc { animation-name: vk-spin-barely; animation-timing-function: var(--vk-ease-in-out); }
|
|
879
|
+
|
|
880
|
+
/* ── Line and Track, a ring's: its line lighter, and a faint ring under it ──────────────────────────────────────── */
|
|
881
|
+
[data-spinner-line="thin"] .o-spinner { --o-spinner-weight: 0.65; }
|
|
882
|
+
[data-spinner-track="faint"] .o-spinner > .o-spinner-track { display: inline; }
|
|
883
|
+
|
|
884
|
+
/* ── Kind. These come after Breath, so a kind that isn't the arc takes its own pace and stills the arc's breath.
|
|
885
|
+
Tail: the ring fading out behind its head, steady, only its place changing. The fade is painted on the drawing's own box
|
|
886
|
+
and cut to the ring's line; the arc is its round head, a dot where the fade ends.
|
|
887
|
+
Two halves: two arcs a fifth of the ring each, opposite each other, turning slowly ─────────────────────────────── */
|
|
888
|
+
[data-spinner-kind="tail"] .o-spinner, .o-spinner:not([data-spinner-kind] *) {
|
|
889
|
+
--o-spinner-turn: calc(var(--vk-spinner-turn) * 0.65);
|
|
890
|
+
--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%);
|
|
891
|
+
border-radius: var(--vk-radius-full);
|
|
892
|
+
background-image: conic-gradient(transparent 0turn, color-mix(in srgb, currentColor 48%, transparent) 0.133turn, color-mix(in srgb, currentColor 73%, transparent) 0.267turn,
|
|
893
|
+
color-mix(in srgb, currentColor 86%, transparent) 0.4turn, color-mix(in srgb, currentColor 93%, transparent) 0.533turn, transparent 0.533turn);
|
|
894
|
+
-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));
|
|
895
|
+
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));
|
|
896
|
+
}
|
|
897
|
+
[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; }
|
|
898
|
+
[data-spinner-kind="halves"] .o-spinner { --o-spinner-turn: calc(var(--vk-spinner-turn) * 1.1); }
|
|
899
|
+
[data-spinner-kind="halves"] .o-spinner-arc { animation: none; stroke-dasharray: 25.13 37.7; stroke-dashoffset: 0; }
|
|
900
|
+
|
|
901
|
+
/* Bars and the pulse stand still as a whole: only their parts move. */
|
|
902
|
+
:is([data-spinner-kind="bars"], [data-spinner-kind="pulse"]) .o-spinner { animation: none; }
|
|
903
|
+
:is([data-spinner-kind="bars"], [data-spinner-kind="pulse"]) .o-spinner > :is(.o-spinner-track, .o-spinner-arc) { display: none; }
|
|
904
|
+
|
|
905
|
+
/* Bars: three growing from their middle, from three eighths of their height to all of it, one beat every half turn, each a
|
|
906
|
+
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
|
|
907
|
+
fifth of their height, each at its own pace (--o-spinner-pace) and place in it (--o-spinner-at) */
|
|
908
|
+
[data-spinner-kind="bars"]:not([data-spinner-bars="foot"]) .o-spinner > .o-spinner-bars:not(.o-spinner-foot),
|
|
909
|
+
[data-spinner-kind="bars"][data-spinner-bars="foot"] .o-spinner > .o-spinner-foot { display: inline; }
|
|
910
|
+
.o-spinner-bars > rect {
|
|
911
|
+
--o-spinner-beat: calc(var(--vk-spinner-turn) * 0.5);
|
|
912
|
+
fill: currentColor; transform-box: fill-box; transform-origin: center;
|
|
913
|
+
animation: vk-spin-bar var(--o-spinner-beat) linear infinite; animation-delay: calc(var(--o-spinner-beat) * var(--o-spinner-at));
|
|
914
|
+
}
|
|
915
|
+
[data-spinner-bars="eased"] .o-spinner-bars > rect { --o-spinner-beat: var(--vk-spinner-breath); animation-timing-function: var(--vk-ease-in-out); }
|
|
916
|
+
.o-spinner-foot > rect {
|
|
917
|
+
--o-spinner-beat: calc(var(--vk-spinner-breath) * var(--o-spinner-pace)); transform-origin: 50% 100%;
|
|
918
|
+
animation-name: vk-spin-foot; animation-timing-function: var(--vk-ease-in-out); animation-delay: calc(var(--vk-spinner-breath) * var(--o-spinner-at));
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
/* The pulse: a dot, and a ring that leaves it and fades, once every four fifths of a turn. */
|
|
922
|
+
[data-spinner-kind="pulse"] .o-spinner > :is(.o-spinner-dot, .o-spinner-ring) { display: inline; }
|
|
923
|
+
.o-spinner-dot { fill: currentColor; }
|
|
924
|
+
.o-spinner-ring {
|
|
925
|
+
--o-spinner-beat: calc(var(--vk-spinner-turn) * 0.8);
|
|
926
|
+
fill: none; stroke: currentColor; stroke-width: 3.33px; opacity: 0;
|
|
927
|
+
animation: vk-spin-ring var(--o-spinner-beat) var(--vk-ease-out) infinite, vk-spin-fade var(--o-spinner-beat) linear infinite;
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
/* ── The loading bar: along the top of the box that holds what is loading again, half a spacing step high, in the brand. A
|
|
931
|
+
third of it slides across, in the Progress's time and on its curve; under Loading bar › Soft ends (data-spinner-loading)
|
|
932
|
+
a longer piece fades out at both ends and takes a little longer. What it holds dims to loading-dim, quickly, and comes
|
|
933
|
+
back in duration-base ────────────────────────────────────────────────────────────────────────────────────────── */
|
|
934
|
+
.o-loading { position: relative; min-width: 0; }
|
|
935
|
+
.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; }
|
|
936
|
+
.o-loading-bar::before {
|
|
937
|
+
content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--o-loading-share) * 100%); background-color: var(--vk-brand);
|
|
938
|
+
animation: vk-loading-slide calc(var(--vk-progress-slide) * 0.85) var(--vk-ease-in-out) infinite;
|
|
939
|
+
}
|
|
940
|
+
[data-spinner-loading="soft"] .o-loading-bar, .o-loading-bar:not([data-spinner-loading] *) { --o-loading-share: 0.48; }
|
|
941
|
+
[data-spinner-loading="soft"] .o-loading-bar::before, .o-loading-bar:not([data-spinner-loading] *)::before {
|
|
942
|
+
background-color: transparent; animation-duration: calc(var(--vk-progress-slide) * 1.15);
|
|
943
|
+
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%,
|
|
944
|
+
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);
|
|
945
|
+
}
|
|
946
|
+
.o-loading-held { min-width: 0; transition: opacity var(--vk-duration-base) var(--vk-ease-out); }
|
|
947
|
+
.o-loading[data-loading] > .o-loading-held { opacity: var(--vk-loading-dim); transition-duration: var(--vk-duration-fast); }
|
|
948
|
+
|
|
949
|
+
/* Under reduced motion a ring stops breathing and turns slowly, the bars and the pulse stand still, and the loading bar stands
|
|
950
|
+
across its box in the pale blue, as the Progress's does. */
|
|
951
|
+
@media (prefers-reduced-motion: reduce) {
|
|
952
|
+
.o-spinner { animation-duration: var(--vk-spinner-turn-reduced); }
|
|
953
|
+
.o-spinner-arc { stroke-dasharray: 80 200; }
|
|
954
|
+
:is(.o-spinner-arc, [data-spinner-breath] .o-spinner-arc) { animation: none; }
|
|
955
|
+
:is(.o-spinner-bars, [data-spinner-bars] .o-spinner-bars) > rect { animation: none; }
|
|
956
|
+
.o-spinner-bars > rect:nth-child(odd) { transform: scaleY(0.6); }
|
|
957
|
+
.o-spinner-ring { animation: none; opacity: 0.4; }
|
|
958
|
+
.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); }
|
|
959
|
+
.o-loading-held { transition: none; }
|
|
960
|
+
}
|
|
961
|
+
@keyframes vk-spin-turn { to { transform: rotate(360deg); } }
|
|
962
|
+
@keyframes vk-spin-breath {
|
|
963
|
+
0% { stroke-dasharray: 1 200; stroke-dashoffset: 0; }
|
|
964
|
+
50% { stroke-dasharray: 90 200; stroke-dashoffset: -35; }
|
|
965
|
+
100% { stroke-dasharray: 90 200; stroke-dashoffset: -124; }
|
|
966
|
+
}
|
|
967
|
+
@keyframes vk-spin-open {
|
|
968
|
+
0% { stroke-dasharray: 15.08 110.58; stroke-dashoffset: 0; }
|
|
969
|
+
50% { stroke-dasharray: 77.91 47.75; stroke-dashoffset: -30.16; }
|
|
970
|
+
100% { stroke-dasharray: 15.08 110.58; stroke-dashoffset: -125.66; }
|
|
971
|
+
}
|
|
972
|
+
@keyframes vk-spin-soft {
|
|
973
|
+
0%, 100% { stroke-dasharray: 27.65 98.02; stroke-dashoffset: 13.82; }
|
|
974
|
+
50% { stroke-dasharray: 72.89 52.78; stroke-dashoffset: 36.44; }
|
|
975
|
+
}
|
|
976
|
+
@keyframes vk-spin-barely {
|
|
977
|
+
0%, 100% { stroke-dasharray: 42.73 82.94; stroke-dashoffset: 21.36; }
|
|
978
|
+
50% { stroke-dasharray: 62.83 62.83; stroke-dashoffset: 31.42; }
|
|
979
|
+
}
|
|
980
|
+
@keyframes vk-spin-bar { 0%, 100% { transform: scaleY(0.375); } 50% { transform: scaleY(1); } }
|
|
981
|
+
@keyframes vk-spin-foot { 0%, 100% { transform: scaleY(0.22); } 50% { transform: scaleY(1); } }
|
|
982
|
+
@keyframes vk-spin-ring { from { r: 8.33px; } to { r: 21.88px; } }
|
|
983
|
+
@keyframes vk-spin-fade { from { opacity: 0.7; } to { opacity: 0; } }
|
|
984
|
+
@keyframes vk-loading-slide { from { transform: translateX(-100%); } to { transform: translateX(calc(100% / var(--o-loading-share))); } }
|
|
292
985
|
.\@container {
|
|
293
986
|
container-type: inline-size;
|
|
294
987
|
}
|
|
@@ -1459,45 +2152,24 @@
|
|
|
1459
2152
|
.bg-label-amber {
|
|
1460
2153
|
background-color: var(--vk-label-amber);
|
|
1461
2154
|
}
|
|
1462
|
-
.bg-label-amber-soft {
|
|
1463
|
-
background-color: var(--vk-label-amber-soft);
|
|
1464
|
-
}
|
|
1465
2155
|
.bg-label-blue {
|
|
1466
2156
|
background-color: var(--vk-label-blue);
|
|
1467
2157
|
}
|
|
1468
|
-
.bg-label-blue-soft {
|
|
1469
|
-
background-color: var(--vk-label-blue-soft);
|
|
1470
|
-
}
|
|
1471
2158
|
.bg-label-green {
|
|
1472
2159
|
background-color: var(--vk-label-green);
|
|
1473
2160
|
}
|
|
1474
|
-
.bg-label-green-soft {
|
|
1475
|
-
background-color: var(--vk-label-green-soft);
|
|
1476
|
-
}
|
|
1477
2161
|
.bg-label-pink {
|
|
1478
2162
|
background-color: var(--vk-label-pink);
|
|
1479
2163
|
}
|
|
1480
|
-
.bg-label-pink-soft {
|
|
1481
|
-
background-color: var(--vk-label-pink-soft);
|
|
1482
|
-
}
|
|
1483
2164
|
.bg-label-purple {
|
|
1484
2165
|
background-color: var(--vk-label-purple);
|
|
1485
2166
|
}
|
|
1486
|
-
.bg-label-purple-soft {
|
|
1487
|
-
background-color: var(--vk-label-purple-soft);
|
|
1488
|
-
}
|
|
1489
2167
|
.bg-label-red {
|
|
1490
2168
|
background-color: var(--vk-label-red);
|
|
1491
2169
|
}
|
|
1492
|
-
.bg-label-red-soft {
|
|
1493
|
-
background-color: var(--vk-label-red-soft);
|
|
1494
|
-
}
|
|
1495
2170
|
.bg-label-teal {
|
|
1496
2171
|
background-color: var(--vk-label-teal);
|
|
1497
2172
|
}
|
|
1498
|
-
.bg-label-teal-soft {
|
|
1499
|
-
background-color: var(--vk-label-teal-soft);
|
|
1500
|
-
}
|
|
1501
2173
|
.bg-muted {
|
|
1502
2174
|
background-color: var(--vk-neutral);
|
|
1503
2175
|
}
|
|
@@ -1906,54 +2578,54 @@
|
|
|
1906
2578
|
.text-\(color\:--vk-head-glyph-fg\,currentColor\) {
|
|
1907
2579
|
color: var(--vk-head-glyph-fg,currentColor);
|
|
1908
2580
|
}
|
|
1909
|
-
.text-\[color\:var\(--vk-
|
|
1910
|
-
color: var(--vk-warning,hsl(38 92% 50%));
|
|
1911
|
-
}
|
|
1912
|
-
.text-\[var\(--vk-info\,hsl\(199_89\%_48\%\)\)\] {
|
|
1913
|
-
color: var(--vk-info,hsl(199 89% 48%));
|
|
1914
|
-
}
|
|
1915
|
-
.text-\[var\(--vk-label-amber-strong\,color-mix\(in_oklab\,var\(--vk-label-amber\,hsl\(38_92\%_50\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
|
|
2581
|
+
.text-\[color\:var\(--vk-label-amber-strong\,color-mix\(in_oklab\,var\(--vk-label-amber\,hsl\(38_92\%_50\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
|
|
1916
2582
|
color: var(--vk-label-amber-strong,var(--vk-label-amber,hsl(38 92% 50%)));
|
|
1917
2583
|
@supports (color: color-mix(in lab, red, red)) {
|
|
1918
2584
|
color: var(--vk-label-amber-strong,color-mix(in oklab,var(--vk-label-amber,hsl(38 92% 50%)) 60%,var(--vk-fg)));
|
|
1919
2585
|
}
|
|
1920
2586
|
}
|
|
1921
|
-
.text-\[var\(--vk-label-blue-strong\,color-mix\(in_oklab\,var\(--vk-label-blue\,hsl\(199_89\%_48\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
|
|
2587
|
+
.text-\[color\:var\(--vk-label-blue-strong\,color-mix\(in_oklab\,var\(--vk-label-blue\,hsl\(199_89\%_48\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
|
|
1922
2588
|
color: var(--vk-label-blue-strong,var(--vk-label-blue,hsl(199 89% 48%)));
|
|
1923
2589
|
@supports (color: color-mix(in lab, red, red)) {
|
|
1924
2590
|
color: var(--vk-label-blue-strong,color-mix(in oklab,var(--vk-label-blue,hsl(199 89% 48%)) 60%,var(--vk-fg)));
|
|
1925
2591
|
}
|
|
1926
2592
|
}
|
|
1927
|
-
.text-\[var\(--vk-label-green-strong\,color-mix\(in_oklab\,var\(--vk-label-green\,hsl\(160_84\%_39\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
|
|
2593
|
+
.text-\[color\:var\(--vk-label-green-strong\,color-mix\(in_oklab\,var\(--vk-label-green\,hsl\(160_84\%_39\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
|
|
1928
2594
|
color: var(--vk-label-green-strong,var(--vk-label-green,hsl(160 84% 39%)));
|
|
1929
2595
|
@supports (color: color-mix(in lab, red, red)) {
|
|
1930
2596
|
color: var(--vk-label-green-strong,color-mix(in oklab,var(--vk-label-green,hsl(160 84% 39%)) 60%,var(--vk-fg)));
|
|
1931
2597
|
}
|
|
1932
2598
|
}
|
|
1933
|
-
.text-\[var\(--vk-label-pink-strong\,color-mix\(in_oklab\,var\(--vk-label-pink\,hsl\(330_81\%_60\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
|
|
2599
|
+
.text-\[color\:var\(--vk-label-pink-strong\,color-mix\(in_oklab\,var\(--vk-label-pink\,hsl\(330_81\%_60\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
|
|
1934
2600
|
color: var(--vk-label-pink-strong,var(--vk-label-pink,hsl(330 81% 60%)));
|
|
1935
2601
|
@supports (color: color-mix(in lab, red, red)) {
|
|
1936
2602
|
color: var(--vk-label-pink-strong,color-mix(in oklab,var(--vk-label-pink,hsl(330 81% 60%)) 60%,var(--vk-fg)));
|
|
1937
2603
|
}
|
|
1938
2604
|
}
|
|
1939
|
-
.text-\[var\(--vk-label-purple-strong\,color-mix\(in_oklab\,var\(--vk-label-purple\,hsl\(258_90\%_66\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
|
|
2605
|
+
.text-\[color\:var\(--vk-label-purple-strong\,color-mix\(in_oklab\,var\(--vk-label-purple\,hsl\(258_90\%_66\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
|
|
1940
2606
|
color: var(--vk-label-purple-strong,var(--vk-label-purple,hsl(258 90% 66%)));
|
|
1941
2607
|
@supports (color: color-mix(in lab, red, red)) {
|
|
1942
2608
|
color: var(--vk-label-purple-strong,color-mix(in oklab,var(--vk-label-purple,hsl(258 90% 66%)) 60%,var(--vk-fg)));
|
|
1943
2609
|
}
|
|
1944
2610
|
}
|
|
1945
|
-
.text-\[var\(--vk-label-red-strong\,color-mix\(in_oklab\,var\(--vk-label-red\,hsl\(0_84\%_60\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
|
|
2611
|
+
.text-\[color\:var\(--vk-label-red-strong\,color-mix\(in_oklab\,var\(--vk-label-red\,hsl\(0_84\%_60\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
|
|
1946
2612
|
color: var(--vk-label-red-strong,var(--vk-label-red,hsl(0 84% 60%)));
|
|
1947
2613
|
@supports (color: color-mix(in lab, red, red)) {
|
|
1948
2614
|
color: var(--vk-label-red-strong,color-mix(in oklab,var(--vk-label-red,hsl(0 84% 60%)) 60%,var(--vk-fg)));
|
|
1949
2615
|
}
|
|
1950
2616
|
}
|
|
1951
|
-
.text-\[var\(--vk-label-teal-strong\,color-mix\(in_oklab\,var\(--vk-label-teal\,hsl\(173_80\%_40\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
|
|
2617
|
+
.text-\[color\:var\(--vk-label-teal-strong\,color-mix\(in_oklab\,var\(--vk-label-teal\,hsl\(173_80\%_40\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
|
|
1952
2618
|
color: var(--vk-label-teal-strong,var(--vk-label-teal,hsl(173 80% 40%)));
|
|
1953
2619
|
@supports (color: color-mix(in lab, red, red)) {
|
|
1954
2620
|
color: var(--vk-label-teal-strong,color-mix(in oklab,var(--vk-label-teal,hsl(173 80% 40%)) 60%,var(--vk-fg)));
|
|
1955
2621
|
}
|
|
1956
2622
|
}
|
|
2623
|
+
.text-\[color\:var\(--vk-warning\,hsl\(38_92\%_50\%\)\)\] {
|
|
2624
|
+
color: var(--vk-warning,hsl(38 92% 50%));
|
|
2625
|
+
}
|
|
2626
|
+
.text-\[var\(--vk-info\,hsl\(199_89\%_48\%\)\)\] {
|
|
2627
|
+
color: var(--vk-info,hsl(199 89% 48%));
|
|
2628
|
+
}
|
|
1957
2629
|
.text-\[var\(--vk-success\,hsl\(160_84\%_39\%\)\)\] {
|
|
1958
2630
|
color: var(--vk-success,hsl(160 84% 39%));
|
|
1959
2631
|
}
|
|
@@ -1978,27 +2650,6 @@
|
|
|
1978
2650
|
.text-inherit {
|
|
1979
2651
|
color: inherit;
|
|
1980
2652
|
}
|
|
1981
|
-
.text-label-amber {
|
|
1982
|
-
color: var(--vk-label-amber);
|
|
1983
|
-
}
|
|
1984
|
-
.text-label-blue {
|
|
1985
|
-
color: var(--vk-label-blue);
|
|
1986
|
-
}
|
|
1987
|
-
.text-label-green {
|
|
1988
|
-
color: var(--vk-label-green);
|
|
1989
|
-
}
|
|
1990
|
-
.text-label-pink {
|
|
1991
|
-
color: var(--vk-label-pink);
|
|
1992
|
-
}
|
|
1993
|
-
.text-label-purple {
|
|
1994
|
-
color: var(--vk-label-purple);
|
|
1995
|
-
}
|
|
1996
|
-
.text-label-red {
|
|
1997
|
-
color: var(--vk-label-red);
|
|
1998
|
-
}
|
|
1999
|
-
.text-label-teal {
|
|
2000
|
-
color: var(--vk-label-teal);
|
|
2001
|
-
}
|
|
2002
2653
|
.text-muted-foreground {
|
|
2003
2654
|
color: var(--vk-fg-subtle);
|
|
2004
2655
|
}
|
|
@@ -2898,6 +3549,83 @@
|
|
|
2898
3549
|
--vk-label-teal-fill: hsl(196 52% 91.5%);
|
|
2899
3550
|
--vk-label-teal-edge: hsl(196 52% 74.5%);
|
|
2900
3551
|
--vk-label-teal-strong: hsl(193 82% 26%);
|
|
3552
|
+
--vk-brand-hovered: hsl(219 70% 46.5%);
|
|
3553
|
+
--vk-brand-pressed: hsl(219 70% 38%);
|
|
3554
|
+
--vk-brand-subtler: hsl(218 100% 94%);
|
|
3555
|
+
--vk-brand-subtler-hovered: hsl(218 100% 89%);
|
|
3556
|
+
--vk-brand-subtler-pressed: hsl(218 97% 82%);
|
|
3557
|
+
--vk-danger-bold: hsl(0 81% 58%);
|
|
3558
|
+
--vk-danger-bold-hovered: hsl(0 59% 49%);
|
|
3559
|
+
--vk-danger-bold-pressed: hsl(0 59% 39%);
|
|
3560
|
+
--vk-info-bold: hsl(219 87% 54%);
|
|
3561
|
+
--vk-info-bold-hovered: hsl(219 70% 46.5%);
|
|
3562
|
+
--vk-info-bold-pressed: hsl(219 70% 38%);
|
|
3563
|
+
--vk-success-bold: hsl(158 98% 26%);
|
|
3564
|
+
--vk-success-bold-hovered: hsl(157 88% 24%);
|
|
3565
|
+
--vk-success-bold-pressed: hsl(156 87% 21%);
|
|
3566
|
+
--vk-warning-bold: hsl(25 92% 41%);
|
|
3567
|
+
--vk-warning-bold-hovered: hsl(24 86% 35.5%);
|
|
3568
|
+
--vk-warning-bold-pressed: hsl(23 85% 29%);
|
|
3569
|
+
--vk-brighten: hsl(0 0% 100% / 0.09);
|
|
3570
|
+
--vk-darken: hsl(214 30% 10% / 0.1);
|
|
3571
|
+
--vk-border-input: hsl(220 3% 86%);
|
|
3572
|
+
--vk-border-input-hovered: hsl(210 1% 82%);
|
|
3573
|
+
--vk-raised: hsl(0 0% 100%);
|
|
3574
|
+
--vk-raised-hovered: hsl(220 3% 97%);
|
|
3575
|
+
--vk-overlay-hovered: hsl(220 3% 97%);
|
|
3576
|
+
--vk-overlay-pressed: hsl(0 0% 94%);
|
|
3577
|
+
--vk-overlay-card-pressed: hsl(220 7% 90%);
|
|
3578
|
+
--vk-fg-disabled: hsl(210 1% 72%);
|
|
3579
|
+
--vk-fg-accent: hsl(219 87% 54%);
|
|
3580
|
+
--vk-border-width: 1px;
|
|
3581
|
+
--vk-corner-smoothing: 0.7;
|
|
3582
|
+
--vk-dot-size: 6px;
|
|
3583
|
+
--vk-duration-instant: 60ms;
|
|
3584
|
+
--vk-duration-fast: 150ms;
|
|
3585
|
+
--vk-duration-base: 200ms;
|
|
3586
|
+
--vk-duration-slow: 300ms;
|
|
3587
|
+
--vk-ease-out: cubic-bezier(0, 0, 0.2, 1);
|
|
3588
|
+
--vk-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
3589
|
+
--vk-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
3590
|
+
--vk-focus-width: 2px;
|
|
3591
|
+
--vk-focus-offset: 2px;
|
|
3592
|
+
--vk-font-weight-medium: 500;
|
|
3593
|
+
--vk-font-weight-semibold: 600;
|
|
3594
|
+
--vk-hover-lift: 1px;
|
|
3595
|
+
--vk-loading-dim: 0.55;
|
|
3596
|
+
--vk-press-scale: 0.98;
|
|
3597
|
+
--vk-press-squash: 1.025 0.92;
|
|
3598
|
+
--vk-press-travel: 1px;
|
|
3599
|
+
--vk-press-travel-lg: 2px;
|
|
3600
|
+
--vk-progress-slide: 1400ms;
|
|
3601
|
+
--vk-radius-xs: 2.5px;
|
|
3602
|
+
--vk-radius-sm: 5px;
|
|
3603
|
+
--vk-radius-md: 7.5px;
|
|
3604
|
+
--vk-radius-lg: 10px;
|
|
3605
|
+
--vk-radius-xl: 15px;
|
|
3606
|
+
--vk-radius-2xl: 20px;
|
|
3607
|
+
--vk-radius-full: 9999px;
|
|
3608
|
+
--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);
|
|
3609
|
+
--vk-shadow-key-pressed: inset 0 1px 1.5px 0 hsl(214 30% 10% / 0.12);
|
|
3610
|
+
--vk-shadow-key-pressed-bold: inset 0 1px 1.5px 0 hsl(214 30% 10% / 0.28);
|
|
3611
|
+
--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);
|
|
3612
|
+
--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);
|
|
3613
|
+
--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);
|
|
3614
|
+
--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);
|
|
3615
|
+
--vk-shadow-lift: 0 1px 2px 0 hsl(214 30% 10% / 0.104), 0 2px 6px -1px hsl(214 30% 10% / 0.064);
|
|
3616
|
+
--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);
|
|
3617
|
+
--vk-shadow-rim: inset 0 1px 0 0 hsl(0 0% 100% / 0.07);
|
|
3618
|
+
--vk-shadow-rim-bold: inset 0 1px 0 0 hsl(0 0% 100% / 0.22);
|
|
3619
|
+
--vk-shadow-rim-bold-raised: inset 0 1px 0 0 hsl(0 0% 100% / 0.3);
|
|
3620
|
+
--vk-shadow-rim-raised: inset 0 1px 0 0 hsl(0 0% 100% / 0.14);
|
|
3621
|
+
--vk-spacing: 4px;
|
|
3622
|
+
--vk-spinner-breath: 1400ms;
|
|
3623
|
+
--vk-spinner-turn: 2000ms;
|
|
3624
|
+
--vk-spinner-turn-reduced: 3000ms;
|
|
3625
|
+
--vk-font-size-xs: 12px;
|
|
3626
|
+
--vk-font-size-sm: 14px;
|
|
3627
|
+
--vk-font-size-base: 16px;
|
|
3628
|
+
--vk-font-size-lg: 18px;
|
|
2901
3629
|
--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);
|
|
2902
3630
|
--vk-t-shadow-field: 0 1px 1px 0 rgb(16 17 26 / 0.08);
|
|
2903
3631
|
--vk-t-shadow-field-hover: 0 1px 1px 0 rgb(16 17 26 / 0.16);
|
|
@@ -2988,6 +3716,47 @@
|
|
|
2988
3716
|
--vk-label-teal-fill: hsl(196 32% 17.5%);
|
|
2989
3717
|
--vk-label-teal-edge: hsl(195 42% 22.5%);
|
|
2990
3718
|
--vk-label-teal-strong: hsl(196 67% 75.5%);
|
|
3719
|
+
--vk-brand-hovered: hsl(219 95% 64%);
|
|
3720
|
+
--vk-brand-pressed: hsl(219 100% 72.5%);
|
|
3721
|
+
--vk-brand-subtler: hsl(218 32% 14.5%);
|
|
3722
|
+
--vk-brand-subtler-hovered: hsl(219 46% 21%);
|
|
3723
|
+
--vk-brand-subtler-pressed: hsl(219 55% 29%);
|
|
3724
|
+
--vk-danger-bold: hsl(0 81% 58%);
|
|
3725
|
+
--vk-danger-bold-hovered: hsl(3 90% 66.5%);
|
|
3726
|
+
--vk-danger-bold-pressed: hsl(4 100% 75%);
|
|
3727
|
+
--vk-info-bold: hsl(219 87% 59.5%);
|
|
3728
|
+
--vk-info-bold-hovered: hsl(219 95% 64%);
|
|
3729
|
+
--vk-info-bold-pressed: hsl(219 100% 72.5%);
|
|
3730
|
+
--vk-success-bold: hsl(158 98% 34%);
|
|
3731
|
+
--vk-success-bold-hovered: hsl(150 45% 51.5%);
|
|
3732
|
+
--vk-success-bold-pressed: hsl(148 46% 62.5%);
|
|
3733
|
+
--vk-warning-bold: hsl(25 92% 41%);
|
|
3734
|
+
--vk-warning-bold-hovered: hsl(21 66% 55%);
|
|
3735
|
+
--vk-warning-bold-pressed: hsl(20 73% 65.5%);
|
|
3736
|
+
--vk-brighten: hsl(210 8% 95% / 0.09);
|
|
3737
|
+
--vk-darken: hsl(0 0% 0% / 0.15);
|
|
3738
|
+
--vk-border-input: hsl(220 4% 22%);
|
|
3739
|
+
--vk-border-input-hovered: hsl(210 2% 26.5%);
|
|
3740
|
+
--vk-raised: hsl(226 10% 10%);
|
|
3741
|
+
--vk-raised-hovered: hsl(225 7% 15%);
|
|
3742
|
+
--vk-overlay-hovered: hsl(225 7% 15%);
|
|
3743
|
+
--vk-overlay-pressed: hsl(225 7% 15%);
|
|
3744
|
+
--vk-overlay-card-pressed: hsl(220 4% 22%);
|
|
3745
|
+
--vk-fg-disabled: hsl(210 1% 37%);
|
|
3746
|
+
--vk-fg-accent: hsl(219 87% 59.5%);
|
|
3747
|
+
--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);
|
|
3748
|
+
--vk-shadow-key-pressed: inset 0 1px 1.5px 0 hsl(0 0% 0% / 0.18);
|
|
3749
|
+
--vk-shadow-key-pressed-bold: inset 0 1px 1.5px 0 hsl(0 0% 0% / 0.42);
|
|
3750
|
+
--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);
|
|
3751
|
+
--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);
|
|
3752
|
+
--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);
|
|
3753
|
+
--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);
|
|
3754
|
+
--vk-shadow-lift: 0 1px 2px 0 hsl(0 0% 0% / 0.156), 0 2px 6px -1px hsl(0 0% 0% / 0.096);
|
|
3755
|
+
--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);
|
|
3756
|
+
--vk-shadow-rim: inset 0 1px 0 0 hsl(210 8% 95% / 0.07);
|
|
3757
|
+
--vk-shadow-rim-bold: inset 0 1px 0 0 hsl(210 8% 95% / 0.22);
|
|
3758
|
+
--vk-shadow-rim-bold-raised: inset 0 1px 0 0 hsl(210 8% 95% / 0.3);
|
|
3759
|
+
--vk-shadow-rim-raised: inset 0 1px 0 0 hsl(210 8% 95% / 0.14);
|
|
2991
3760
|
--vk-t-shadow-menu: 0 8px 24px hsl(0 0% 0% / 0.5), 0 0 0 1px hsl(0 0% 18%);
|
|
2992
3761
|
--vk-t-shadow-field: 0 1px 1px 0 rgb(255 255 255 / 0.08);
|
|
2993
3762
|
--vk-t-shadow-field-hover: 0 1px 1px 0 rgb(255 255 255 / 0.12);
|