@zazz-ui/core 0.9.1 → 0.11.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/AUTHORING.md +21 -16
- package/CHANGELOG.md +144 -0
- package/README.md +3 -3
- package/dist/sri.json +89 -88
- package/dist/zazz.css +1 -1
- package/editor/zazz.css-data.json +8370 -1264
- package/editor/zazz.html-data.json +31 -41
- package/editor/zazz.language-data.json +516 -247
- package/editor/zazz.lint-data.json +654 -619
- package/package.json +2 -3
- package/src/base/_defaults.css +59 -40
- package/src/base/_layers.css +5 -2
- package/src/base/_properties-2xl.css +10 -0
- package/src/base/_properties-active.css +8 -0
- package/src/base/_properties-checked.css +8 -0
- package/src/base/_properties-current.css +8 -0
- package/src/base/_properties-disabled.css +8 -0
- package/src/base/_properties-focus-visible.css +8 -0
- package/src/base/_properties-focus-within.css +8 -0
- package/src/base/_properties-hover.css +8 -0
- package/src/base/_properties-lg.css +10 -0
- package/src/base/_properties-md.css +10 -0
- package/src/base/_properties-open.css +8 -0
- package/src/base/_properties-sm.css +10 -0
- package/src/base/_properties-starting.css +4 -0
- package/src/base/_properties-stuck.css +4 -0
- package/src/base/_properties-xl.css +10 -0
- package/src/base/_properties.css +55 -15
- package/src/base/_reset.css +8 -4
- package/src/base/_typography.css +26 -9
- package/src/base/_utilities-box.css +63 -59
- package/src/base/_utilities-color.css +55 -8
- package/src/base/_utilities-effects.css +8 -0
- package/src/base/_utilities-flow.css +28 -5
- package/src/base/_utilities-pseudo.css +4 -0
- package/src/base/_utilities-spacing.css +8 -8
- package/src/base/_utilities-sr.css +98 -0
- package/src/base/_utilities-tier-2xl.css +5 -0
- package/src/base/_utilities-tier-active.css +5 -1
- package/src/base/_utilities-tier-checked.css +5 -1
- package/src/base/_utilities-tier-current.css +5 -1
- package/src/base/_utilities-tier-disabled.css +5 -1
- package/src/base/_utilities-tier-focus-visible.css +5 -1
- package/src/base/_utilities-tier-focus-within.css +5 -1
- package/src/base/_utilities-tier-hover.css +5 -1
- package/src/base/_utilities-tier-lg.css +5 -0
- package/src/base/_utilities-tier-md.css +5 -0
- package/src/base/_utilities-tier-open.css +5 -1
- package/src/base/_utilities-tier-sm.css +5 -0
- package/src/base/_utilities-tier-starting.css +2 -0
- package/src/base/_utilities-tier-stuck.css +3 -0
- package/src/base/_utilities-tier-xl.css +5 -0
- package/src/base/_utilities-typography.css +263 -3
- package/src/base/_variables.css +151 -60
- package/src/base/kit-styling.d.ts.map +1 -1
- package/src/base/kit-styling.js +134 -128
- package/src/base/kit-styling.ts +134 -128
- package/src/base/utilities.d.ts +23 -8
- package/src/base/utilities.d.ts.map +1 -1
- package/src/base/utilities.js +78 -3
- package/src/base/utilities.ts +95 -11
- package/src/head.d.ts.map +1 -1
- package/src/head.js +4 -5
- package/src/head.ts +4 -5
- package/src/index.css +3 -2
- package/src/manifest.d.ts.map +1 -1
- package/src/manifest.js +13 -3
- package/src/manifest.ts +13 -3
- package/src/primitives/accordion/accordion.css +3 -0
- package/src/primitives/alert-dialog/alert-dialog.css +1 -1
- package/src/primitives/alert-dialog/alert-dialog.html +14 -14
- package/src/primitives/autocomplete/autocomplete.css +4 -2
- package/src/primitives/avatar/avatar.html +4 -6
- package/src/primitives/badge/badge.css +77 -56
- package/src/primitives/breadcrumbs/breadcrumbs.html +1 -7
- package/src/primitives/button/button.css +75 -60
- package/src/primitives/button-group/button-group.css +4 -0
- package/src/primitives/callout/callout.css +22 -43
- package/src/primitives/card/card-subgrid.html +2 -3
- package/src/primitives/card/card.css +4 -0
- package/src/primitives/card/card.html +2 -3
- package/src/primitives/checkbox/checkbox.css +13 -0
- package/src/primitives/combobox/combobox.css +25 -2
- package/src/primitives/command/command-actions.d.ts.map +1 -1
- package/src/primitives/command/command-actions.js +4 -9
- package/src/primitives/command/command-actions.ts +4 -9
- package/src/primitives/command/command-dialog.html +109 -107
- package/src/primitives/command/command.css +16 -8
- package/src/primitives/debug/audit-core.d.ts +1 -1
- package/src/primitives/debug/audit-core.d.ts.map +1 -1
- package/src/primitives/debug/audit-core.js +30 -3
- package/src/primitives/debug/audit-core.ts +40 -2
- package/src/primitives/dialog/dialog-with-form.html +1 -1
- package/src/primitives/dialog/dialog.css +111 -44
- package/src/primitives/fields/fields.css +11 -5
- package/src/primitives/group/group.css +18 -0
- package/src/primitives/group/group.html +26 -0
- package/src/primitives/input/input.css +16 -9
- package/src/primitives/input-group/input-group-password-group.html +1 -1
- package/src/primitives/input-group/input-group.css +19 -11
- package/src/primitives/kbd/kbd.css +4 -0
- package/src/primitives/lightbox/lightbox.css +17 -4
- package/src/primitives/lightbox/lightbox.html +2 -1
- package/src/primitives/menu/menu.css +3 -1
- package/src/primitives/meter/meter.css +10 -3
- package/src/primitives/mobile-menu/mobile-menu.css +17 -16
- package/src/primitives/mobile-menu/mobile-menu.html +4 -4
- package/src/primitives/navigation-menu/navigation-menu.css +8 -3
- package/src/primitives/navigation-menu/navigation-menu.html +2 -2
- package/src/primitives/otp/otp.css +7 -2
- package/src/primitives/password-group/password-group.css +20 -12
- package/src/primitives/password-group/password-group.html +1 -1
- package/src/primitives/popover/popover.css +29 -10
- package/src/primitives/progress/progress.css +5 -0
- package/src/primitives/radio/radio.css +15 -2
- package/src/primitives/scroll-fade/scroll-fade.css +1 -1
- package/src/primitives/select/select.css +42 -21
- package/src/primitives/slider/slider.css +11 -0
- package/src/primitives/switch/switch.css +67 -20
- package/src/primitives/tabs/tabs.css +20 -1
- package/src/primitives/textarea/textarea.css +19 -10
- package/src/primitives/toaster/toaster.css +8 -4
- package/src/primitives/toggle/toggle.css +37 -9
- package/src/primitives/toggle-group/toggle-group.css +4 -0
- package/src/primitives/tooltip/tooltip.css +44 -25
- package/src/primitives/utilities/pile.html +2 -3
- package/src/base/_switches.css +0 -148
package/src/base/_variables.css
CHANGED
|
@@ -4,12 +4,14 @@
|
|
|
4
4
|
* @layer variables
|
|
5
5
|
* @requires _layers.css, _typography.css (--fluid, which --spacing reads)
|
|
6
6
|
* @uses light-dark() — theme roles re-resolve per color-scheme (system,
|
|
7
|
-
* data-
|
|
7
|
+
* data-theme="dark" | "light"); tokens stay unregistered on purpose
|
|
8
8
|
* @uses oklch(from …) — shade/tint scales and shadow alphas
|
|
9
9
|
* @uses color-mix() — focus ring (--color-ring)
|
|
10
10
|
* @uses interpolate-size: allow-keywords — discrete block-size animations (details, etc.)
|
|
11
|
+
* @uses @media (not (hover: hover)) — --_touch-min carries --spacing-touch-min (44px) to
|
|
12
|
+
* the primitives on touch screens and loosens --spacing-min; 0px on a mouse
|
|
11
13
|
* @tokens Global token tiers (the root override hooks) — Theme roles, brand
|
|
12
|
-
* scales (50–950), grayscale/shade/tint, typography, spacing, radius,
|
|
14
|
+
* scales (50–950), grayscale/shade/tint, typography, spacing (incl. the touch floor), radius,
|
|
13
15
|
* layout, effects, animations. Sized families run 2xs–2xl. Re-declare any of these to re-skin the
|
|
14
16
|
* whole system; see CONVENTIONS.styles.md.
|
|
15
17
|
*/
|
|
@@ -49,7 +51,7 @@
|
|
|
49
51
|
interpolate-size: allow-keywords;
|
|
50
52
|
|
|
51
53
|
/* ==========================================================================
|
|
52
|
-
* Theme — light/dark via light-dark(); follows color-scheme (system +
|
|
54
|
+
* Theme — light/dark via light-dark(); follows color-scheme (system + data-theme)
|
|
53
55
|
* ========================================================================== */
|
|
54
56
|
|
|
55
57
|
/* base */
|
|
@@ -70,9 +72,9 @@
|
|
|
70
72
|
|
|
71
73
|
/* overlay */
|
|
72
74
|
--color-muted: light-dark(var(--color-shade-50), var(--color-tint-100));
|
|
73
|
-
--color-muted-foreground: light-dark(var(--color-shade-600), var(--color-tint-
|
|
75
|
+
--color-muted-foreground: light-dark(var(--color-shade-600), var(--color-tint-700));
|
|
74
76
|
--color-faded: light-dark(var(--color-tint-400), var(--color-shade-100));
|
|
75
|
-
--color-faded-foreground: light-dark(var(--color-tint-
|
|
77
|
+
--color-faded-foreground: light-dark(var(--color-tint-700), var(--color-shade-700));
|
|
76
78
|
|
|
77
79
|
/* brand */
|
|
78
80
|
--color-primary: light-dark(var(--color-primary-950), var(--color-primary-50));
|
|
@@ -88,15 +90,17 @@
|
|
|
88
90
|
--shadow-angle turns it for an element and its subtree */
|
|
89
91
|
--default-shadow-angle: 0deg;
|
|
90
92
|
|
|
91
|
-
/* status
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
--color-
|
|
95
|
-
--color-
|
|
96
|
-
--color-
|
|
97
|
-
--color-
|
|
98
|
-
--color-
|
|
99
|
-
--color-
|
|
93
|
+
/* status: each role is a pale surface, and its -foreground the same hue at
|
|
94
|
+
AA contrast on that surface. -foreground is also the ink for status text,
|
|
95
|
+
borders, rings, and accents that sit on other surfaces. */
|
|
96
|
+
--color-info: light-dark(oklch(0.955 0.02 242), oklch(0.33 0.06 242));
|
|
97
|
+
--color-info-foreground: light-dark(oklch(0.45 0.105 242), oklch(0.82 0.09 242));
|
|
98
|
+
--color-success: light-dark(oklch(0.955 0.03 164), oklch(0.33 0.055 164));
|
|
99
|
+
--color-success-foreground: light-dark(oklch(0.43 0.085 164), oklch(0.84 0.13 164));
|
|
100
|
+
--color-warning: light-dark(oklch(0.955 0.03 58), oklch(0.34 0.06 58));
|
|
101
|
+
--color-warning-foreground: light-dark(oklch(0.47 0.105 58), oklch(0.86 0.09 58));
|
|
102
|
+
--color-destructive: light-dark(oklch(0.95 0.025 27), oklch(0.33 0.08 27));
|
|
103
|
+
--color-destructive-foreground: light-dark(oklch(0.48 0.17 27), oklch(0.76 0.13 27));
|
|
100
104
|
|
|
101
105
|
/* ==========================================================================
|
|
102
106
|
* Corporate — brand color scales (50–950)
|
|
@@ -160,34 +164,39 @@
|
|
|
160
164
|
--color-neutral-950: oklch(0.198 0.008 285.68);
|
|
161
165
|
--color-black: oklch(0 0 0);
|
|
162
166
|
|
|
163
|
-
/* shade — darkened overlays (derived from neutral-950)
|
|
167
|
+
/* shade — darkened overlays (derived from neutral-950). The alphas are solved
|
|
168
|
+
for even perceived lightness steps over white, so they don't match the stop
|
|
169
|
+
numbers; browsers composite in gamma-encoded sRGB, where even alpha steps
|
|
170
|
+
look uneven. */
|
|
164
171
|
--color-shade-none: oklch(from var(--color-neutral-950) l c h / 0);
|
|
165
|
-
--color-shade-50: oklch(from var(--color-neutral-950) l c h / 0.
|
|
166
|
-
--color-shade-100: oklch(from var(--color-neutral-950) l c h / 0.
|
|
167
|
-
--color-shade-200: oklch(from var(--color-neutral-950) l c h / 0.
|
|
168
|
-
--color-shade-300: oklch(from var(--color-neutral-950) l c h / 0.
|
|
169
|
-
--color-shade-400: oklch(from var(--color-neutral-950) l c h / 0.
|
|
170
|
-
--color-shade-500: oklch(from var(--color-neutral-950) l c h / 0.
|
|
171
|
-
--color-shade-600: oklch(from var(--color-neutral-950) l c h / 0.
|
|
172
|
-
--color-shade-700: oklch(from var(--color-neutral-950) l c h / 0.
|
|
173
|
-
--color-shade-800: oklch(from var(--color-neutral-950) l c h / 0.
|
|
174
|
-
--color-shade-900: oklch(from var(--color-neutral-950) l c h / 0.
|
|
172
|
+
--color-shade-50: oklch(from var(--color-neutral-950) l c h / 0.055);
|
|
173
|
+
--color-shade-100: oklch(from var(--color-neutral-950) l c h / 0.115);
|
|
174
|
+
--color-shade-200: oklch(from var(--color-neutral-950) l c h / 0.225);
|
|
175
|
+
--color-shade-300: oklch(from var(--color-neutral-950) l c h / 0.335);
|
|
176
|
+
--color-shade-400: oklch(from var(--color-neutral-950) l c h / 0.44);
|
|
177
|
+
--color-shade-500: oklch(from var(--color-neutral-950) l c h / 0.545);
|
|
178
|
+
--color-shade-600: oklch(from var(--color-neutral-950) l c h / 0.645);
|
|
179
|
+
--color-shade-700: oklch(from var(--color-neutral-950) l c h / 0.74);
|
|
180
|
+
--color-shade-800: oklch(from var(--color-neutral-950) l c h / 0.835);
|
|
181
|
+
--color-shade-900: oklch(from var(--color-neutral-950) l c h / 0.92);
|
|
175
182
|
--color-shade-950: oklch(from var(--color-neutral-950) l c h / 0.96);
|
|
176
183
|
--color-shade-full: oklch(from var(--color-neutral-950) l c h / 1);
|
|
177
184
|
|
|
178
|
-
/* tint — faded overlays (derived from white)
|
|
185
|
+
/* tint — faded overlays (derived from white). Solved the same way over the dark
|
|
186
|
+
background; the curve differs from shade's because lightening runs the other
|
|
187
|
+
way up the same lightness response. */
|
|
179
188
|
--color-tint-none: oklch(from var(--color-white) l c h / 0);
|
|
180
|
-
--color-tint-50: oklch(from var(--color-white) l c h / 0.
|
|
181
|
-
--color-tint-100: oklch(from var(--color-white) l c h / 0.
|
|
182
|
-
--color-tint-200: oklch(from var(--color-white) l c h / 0.
|
|
183
|
-
--color-tint-300: oklch(from var(--color-white) l c h / 0.
|
|
184
|
-
--color-tint-400: oklch(from var(--color-white) l c h / 0.
|
|
185
|
-
--color-tint-500: oklch(from var(--color-white) l c h / 0.
|
|
186
|
-
--color-tint-600: oklch(from var(--color-white) l c h / 0.
|
|
187
|
-
--color-tint-700: oklch(from var(--color-white) l c h / 0.
|
|
188
|
-
--color-tint-800: oklch(from var(--color-white) l c h / 0.
|
|
189
|
-
--color-tint-900: oklch(from var(--color-white) l c h / 0.
|
|
190
|
-
--color-tint-950: oklch(from var(--color-white) l c h / 0.
|
|
189
|
+
--color-tint-50: oklch(from var(--color-white) l c h / 0.04);
|
|
190
|
+
--color-tint-100: oklch(from var(--color-white) l c h / 0.085);
|
|
191
|
+
--color-tint-200: oklch(from var(--color-white) l c h / 0.17);
|
|
192
|
+
--color-tint-300: oklch(from var(--color-white) l c h / 0.265);
|
|
193
|
+
--color-tint-400: oklch(from var(--color-white) l c h / 0.36);
|
|
194
|
+
--color-tint-500: oklch(from var(--color-white) l c h / 0.46);
|
|
195
|
+
--color-tint-600: oklch(from var(--color-white) l c h / 0.56);
|
|
196
|
+
--color-tint-700: oklch(from var(--color-white) l c h / 0.67);
|
|
197
|
+
--color-tint-800: oklch(from var(--color-white) l c h / 0.775);
|
|
198
|
+
--color-tint-900: oklch(from var(--color-white) l c h / 0.885);
|
|
199
|
+
--color-tint-950: oklch(from var(--color-white) l c h / 0.945);
|
|
191
200
|
--color-tint-full: oklch(from var(--color-white) l c h / 1);
|
|
192
201
|
|
|
193
202
|
/* ==========================================================================
|
|
@@ -323,9 +332,19 @@
|
|
|
323
332
|
* Spacing — the --spacing unit and the --space-* scale
|
|
324
333
|
* ========================================================================== */
|
|
325
334
|
|
|
335
|
+
/* touch targets — the minimum tappable box on a touch screen (WCAG 2.5.8 AA is 24px;
|
|
336
|
+
Apple's 44pt is the AAA figure). Primitives read --_touch-min, which is 0 unless the
|
|
337
|
+
primary pointer cannot hover (a touch screen), so mouse layouts keep their sizes.
|
|
338
|
+
Visible controls (buttons, fields, tabs) grow to it; small indicators (checkbox,
|
|
339
|
+
radio, switch) extend an invisible ::after hit area instead; and --spacing-min takes
|
|
340
|
+
a tenth of it (below), so padding loosens with the floor. 0px opts out of all three. */
|
|
341
|
+
--spacing-touch-min: 44px;
|
|
342
|
+
--_touch-min: 0px;
|
|
343
|
+
|
|
326
344
|
/* the utility scale unit: `--p: 4` is 4 × --spacing. Fluid between its
|
|
327
345
|
min and max across the fluid range (--fluid comes from _typography.css);
|
|
328
|
-
set them equal, or pin `:root { --spacing: 0.25rem }`, for a fixed scale.
|
|
346
|
+
set them equal, or pin `:root { --spacing: 0.25rem }`, for a fixed scale.
|
|
347
|
+
On a touch screen the floor adds a tenth of itself (the media block below). */
|
|
329
348
|
--spacing-min: 0.225rem;
|
|
330
349
|
--spacing-max: 0.25rem;
|
|
331
350
|
--spacing: calc(var(--spacing-min) + var(--fluid) * (var(--spacing-max) - var(--spacing-min)));
|
|
@@ -346,6 +365,7 @@
|
|
|
346
365
|
|
|
347
366
|
/* modifiers */
|
|
348
367
|
--radius-multiplier: 1;
|
|
368
|
+
--radius-corner-shape: superellipse(1.3);
|
|
349
369
|
|
|
350
370
|
/* semantic */
|
|
351
371
|
--radius-none: 0rem;
|
|
@@ -363,7 +383,7 @@
|
|
|
363
383
|
* ========================================================================== */
|
|
364
384
|
|
|
365
385
|
/* semantic */
|
|
366
|
-
--gutters: var(--space-
|
|
386
|
+
--gutters: var(--space-sm);
|
|
367
387
|
|
|
368
388
|
/* --layout-* tokens are generated into _breakpoints.css; breakpoint
|
|
369
389
|
tiers query the nearest inline-size container (_utilities-tier-*.css). */
|
|
@@ -452,31 +472,45 @@
|
|
|
452
472
|
|
|
453
473
|
/* ==========================================================================
|
|
454
474
|
* Animations — spring easing, duration
|
|
475
|
+
* --spring-easing is a critically damped spring from rest: no bounce, settled
|
|
476
|
+
* to within 0.1% at the end of --spring-duration. --bezier-easing is its closest fit.
|
|
455
477
|
* ========================================================================== */
|
|
456
478
|
|
|
457
479
|
--spring-easing: linear(
|
|
458
480
|
0,
|
|
459
|
-
0.
|
|
460
|
-
0.
|
|
461
|
-
0.
|
|
462
|
-
0.
|
|
463
|
-
0.
|
|
464
|
-
0.
|
|
465
|
-
0.
|
|
466
|
-
0.
|
|
467
|
-
0.
|
|
468
|
-
0.
|
|
469
|
-
0.
|
|
470
|
-
0.
|
|
471
|
-
0.
|
|
481
|
+
0.005 1.1%,
|
|
482
|
+
0.02 2.3%,
|
|
483
|
+
0.044 3.6%,
|
|
484
|
+
0.082 5.1%,
|
|
485
|
+
0.16 7.7%,
|
|
486
|
+
0.364 13.8%,
|
|
487
|
+
0.462 16.9%,
|
|
488
|
+
0.556 20.2%,
|
|
489
|
+
0.637 23.4%,
|
|
490
|
+
0.706 26.8%,
|
|
491
|
+
0.766 30.1%,
|
|
492
|
+
0.818 33.8%,
|
|
493
|
+
0.861 37.5%,
|
|
494
|
+
0.899 42%,
|
|
495
|
+
0.93 46.9%,
|
|
496
|
+
0.954 52.3%,
|
|
497
|
+
0.971 58.6%,
|
|
498
|
+
0.983 65.5%,
|
|
499
|
+
0.991 73.8%,
|
|
472
500
|
1
|
|
473
501
|
);
|
|
474
|
-
--bezier-easing: cubic-bezier(0.
|
|
475
|
-
--spring-duration: 0.
|
|
502
|
+
--bezier-easing: cubic-bezier(0.32, 0.66, 0.1, 1);
|
|
503
|
+
--spring-duration: 0.25s;
|
|
504
|
+
|
|
505
|
+
/* the spring is declared first: the editor data reads the first definition */
|
|
506
|
+
--default-transition-timing-function: var(--spring-easing);
|
|
507
|
+
|
|
508
|
+
/* falls back to cubic-bezier when linear() easing is unsupported */
|
|
509
|
+
@supports not (transition-timing-function: linear(0, 1)) {
|
|
510
|
+
--default-transition-timing-function: var(--bezier-easing);
|
|
511
|
+
}
|
|
476
512
|
|
|
477
|
-
|
|
478
|
-
--default-transition-timing-function: var(--spring-easing, var(--bezier-easing));
|
|
479
|
-
--default-transition-duration: var(--spring-duration, 0.333s);
|
|
513
|
+
--default-transition-duration: var(--spring-duration);
|
|
480
514
|
--default-transition-property-colors:
|
|
481
515
|
text-decoration-color, background-color, border-color, color, fill, stroke;
|
|
482
516
|
--default-transition-property-transforms: transform, translate, scale, rotate;
|
|
@@ -523,12 +557,69 @@
|
|
|
523
557
|
--default-transition:
|
|
524
558
|
var(--default-transition-colors), var(--default-transition-transforms),
|
|
525
559
|
var(--default-transition-effects), var(--default-transition-content);
|
|
560
|
+
|
|
561
|
+
/* looping animations for `--animation`. `--spin` is constant motion, so it runs
|
|
562
|
+
linear; `--spin`, `--ping`, and `--bounce` animate `transform`, so the `--rotate`,
|
|
563
|
+
`--scale`, and `--translate` utilities still compose with them */
|
|
564
|
+
--default-animation: 1s var(--default-transition-timing-function) infinite;
|
|
565
|
+
--spin: spin 1s linear infinite;
|
|
566
|
+
--ping: ping var(--default-animation);
|
|
567
|
+
--pulse: pulse 2s var(--default-transition-timing-function) infinite;
|
|
568
|
+
--bounce: bounce var(--default-animation);
|
|
526
569
|
}
|
|
527
570
|
|
|
528
571
|
@media (prefers-reduced-motion: reduce) {
|
|
529
572
|
:root {
|
|
530
573
|
--default-transition-duration: 0s;
|
|
531
|
-
--default-transition-timing-function: ease-
|
|
574
|
+
--default-transition-timing-function: ease-out;
|
|
575
|
+
|
|
576
|
+
/* `--animation` reads this first, so reduced motion stops any value */
|
|
577
|
+
--_motion-off: none;
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
/* a primary pointer that cannot hover is a touch screen (the dialog's phone query uses
|
|
582
|
+
the same test): every primitive's touch floor turns on, and the spacing floor takes a
|
|
583
|
+
tenth of it spread over an 8-step control (44px makes a phone step 3.6px -> 4.15px, so
|
|
584
|
+
button and field padding grow with the floor, not just their height). The literal
|
|
585
|
+
repeats the declaration above: a var() would be a cycle, and the editor data reads
|
|
586
|
+
the first declaration for the fluid range. */
|
|
587
|
+
@media (not (hover: hover)) {
|
|
588
|
+
:root {
|
|
589
|
+
--_touch-min: var(--spacing-touch-min);
|
|
590
|
+
--spacing-min: calc(0.225rem + var(--spacing-touch-min) / 80);
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
/* In this layer, the lowest, so a page's own keyframes of the same name win. */
|
|
595
|
+
@keyframes spin {
|
|
596
|
+
to {
|
|
597
|
+
transform: rotate(360deg);
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
@keyframes ping {
|
|
602
|
+
75%,
|
|
603
|
+
100% {
|
|
604
|
+
transform: scale(2);
|
|
605
|
+
opacity: 0;
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
@keyframes pulse {
|
|
610
|
+
50% {
|
|
611
|
+
opacity: 0.5;
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
@keyframes bounce {
|
|
616
|
+
0%,
|
|
617
|
+
100% {
|
|
618
|
+
transform: translateY(-25%);
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
50% {
|
|
622
|
+
transform: none;
|
|
532
623
|
}
|
|
533
624
|
}
|
|
534
625
|
|
|
@@ -556,12 +647,12 @@
|
|
|
556
647
|
* the ancestor, so re-assert them at each scope boundary.
|
|
557
648
|
*/
|
|
558
649
|
|
|
559
|
-
[data-
|
|
650
|
+
[data-theme="dark"] {
|
|
560
651
|
color-scheme: dark;
|
|
561
652
|
color: var(--color-foreground);
|
|
562
653
|
}
|
|
563
654
|
|
|
564
|
-
[data-
|
|
655
|
+
[data-theme="light"] {
|
|
565
656
|
color-scheme: light;
|
|
566
657
|
color: var(--color-foreground);
|
|
567
658
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kit-styling.d.ts","sourceRoot":"","sources":["kit-styling.ts"],"names":[],"mappings":"AAEA,sGAAsG;AACtG,eAAO,MAAM,aAAa,EAAE,SAAS,MAAM,EA8Q1C,CAAC;AAEF,0GAA0G;AAC1G,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"kit-styling.d.ts","sourceRoot":"","sources":["kit-styling.ts"],"names":[],"mappings":"AAEA,sGAAsG;AACtG,eAAO,MAAM,aAAa,EAAE,SAAS,MAAM,EA8Q1C,CAAC;AAEF,0GAA0G;AAC1G,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAwDlE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CA+KnE,CAAC"}
|