@crystal-ui/core 2.0.0 → 2.1.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/assets/crystal-theme.css +111 -3
- package/assets/crystal.css +897 -5
- package/assets/crystal.js +96 -11
- package/assets/tokens.js +1 -1
- package/docs/accessibility.md +2 -2
- package/docs/adoption.md +27 -48
- package/docs/catalogue.md +3 -2
- package/docs/colors.md +84 -0
- package/docs/components.md +31 -18
- package/docs/motion-components.md +7 -8
- package/docs/motion.md +3 -1
- package/docs/tokens.md +30 -2
- package/exports/crystal-tokens.kt +18 -0
- package/exports/crystal-tokens.swift +18 -0
- package/exports/crystal-tokens.ts +18 -0
- package/package.json +1 -1
- package/tokens/catalogue/02-navigation.json +1 -1
- package/tokens/catalogue/03-actions.json +1 -1
- package/tokens/catalogue/13-screens.json +4 -0
- package/tokens/catalogue.json +7 -3
- package/tokens/crystal.json +252 -12
- package/tokens/crystal.tokens.json +96 -0
- package/tokens/motion-recipes.json +92 -0
package/assets/crystal.css
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
/* Crystal 1.0: framework-independent primitives. Theme variables are supplied by
|
|
13
13
|
crystal-theme.css or by a configuration exported from the playground. */
|
|
14
14
|
:root{--cr-font:Manrope,system-ui,sans-serif;--cr-radius:28px;--cr-space:20px;--cr-reading:16px;--cr-leading:1.5;color-scheme:light}
|
|
15
|
-
*{box-sizing:border-box}body{margin:0;color:var(--cr-text);background:var(--cr-canvas);font-family:var(--cr-font);font-size:16px;line-height:1.6}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}a{color:var(--cr-primary);text-underline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:var(--cr-focus-core-width,2px) solid var(--cr-focus-core,var(--cr-primary));outline-offset:var(--cr-focus-core-offset,3px);box-shadow:var(--cr-focus-ring,0 0 6px
|
|
15
|
+
*{box-sizing:border-box}body{margin:0;color:var(--cr-text);background:var(--cr-canvas);font-family:var(--cr-font);font-size:16px;line-height:1.6}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}a{color:var(--cr-primary);text-underline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:var(--cr-focus-core-width,2px) solid var(--cr-focus-core,var(--cr-primary));outline-offset:var(--cr-focus-core-offset,3px);box-shadow:var(--cr-focus-ring,0 0 6px 1px var(--cr-focus-feather-1,color-mix(in srgb,var(--cr-primary) 46%,transparent)),0 0 16px 3px var(--cr-focus-feather-2,color-mix(in srgb,var(--cr-primary) 30%,transparent)),0 0 30px 6px var(--cr-focus-feather-3,color-mix(in srgb,var(--cr-primary) 17%,transparent)),0 0 54px 11px var(--cr-focus-feather-4,color-mix(in srgb,var(--cr-primary) 8%,transparent)),0 8px 18px var(--cr-focus-feather-2,color-mix(in srgb,var(--cr-primary) 30%,transparent)),0 22px 40px var(--cr-focus-shadow,color-mix(in srgb,var(--cr-decorative) 27%,transparent)))}button:disabled{cursor:not-allowed;opacity:.55}button{transition:background var(--cr-state),box-shadow var(--cr-state),transform var(--cr-press)}button:active:not(:disabled){transform:translateY(1px)}[hidden]{display:none!important}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}h1,h2,h3,h4,p{margin-top:0}h1,h2,h3,h4{line-height:1.2;letter-spacing:-.04em}button:has(svg){display:inline-flex;align-items:center;justify-content:center;gap:9px}
|
|
16
16
|
/* Plastic carries a glow of its own — the primary lifted by the scheme's tint —
|
|
17
17
|
which is a material property and stays. What was ambient was the glow drifting
|
|
18
18
|
across the foundation; that is deferred with the rest of the tier, so the
|
|
@@ -23,12 +23,43 @@
|
|
|
23
23
|
:is(.cr-frost,.cr-acrylic):before{content:'';position:absolute;inset:0;pointer-events:none;z-index:-1;border-radius:inherit;opacity:var(--cr-grain-opacity);background-image:url('grain.svg')}
|
|
24
24
|
:is(.cr-resin,.cr-glass){background:var(--cr-resin-fill);border-radius:999px;box-shadow:var(--cr-shadow-float);backdrop-filter:blur(var(--cr-resin-blur)) saturate(var(--cr-resin-saturation));-webkit-backdrop-filter:blur(var(--cr-resin-blur)) saturate(var(--cr-resin-saturation))}
|
|
25
25
|
.cr-well{background:var(--cr-surface);border-radius:calc(var(--cr-radius) - 7px);color:var(--cr-text);border:1px solid var(--cr-edge)}
|
|
26
|
-
.cr-button{min-height:44px;padding:
|
|
27
|
-
.cr-button:hover{box-shadow:var(--cr-shadow-content);filter:brightness(1.04)}
|
|
26
|
+
.cr-button{min-height:44px;padding:15px 24px;border-radius:999px;border:1px solid transparent;font-weight:750;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:9px;line-height:1.3}
|
|
27
|
+
.cr-button:hover{box-shadow:var(--cr-shadow-content);filter:brightness(1.04)}/* The button vocabulary is four names and none of them is a colour Crystal
|
|
28
|
+
does not have.
|
|
29
|
+
|
|
30
|
+
`.cr-button` is the action control: a Resin shell with the neutral Haze
|
|
31
|
+
reading fill. `.primary` is the one tinted in the palette's action colour,
|
|
32
|
+
`.quiet` drops the reading fill, `.danger` adds the independent
|
|
33
|
+
destructive boundary. Emphasis is opt-in: a rule that had to enumerate
|
|
34
|
+
every variant it was *not* meant to tint was one forgotten modifier away
|
|
35
|
+
from painting the whole surface.
|
|
36
|
+
|
|
37
|
+
`.secondary` was here and is gone. It named a second action colour, and
|
|
38
|
+
Crystal has no such role — the palettes publish one action pair, and the
|
|
39
|
+
companion and glow hues are expressive paint that is never assumed to be
|
|
40
|
+
text-safe. See `docs/colors.md`. A variant named after a colour the system
|
|
41
|
+
does not define is a promise it cannot keep.
|
|
42
|
+
|
|
43
|
+
The bare `.cr-button` also no longer carries `background:var(--cr-primary)`
|
|
44
|
+
and `color:var(--cr-on-primary)` here. Those had not rendered since the
|
|
45
|
+
Resin surface was adopted — the component layer outranks this one — and
|
|
46
|
+
with the tint moved to `.primary` they would now be wrong as well as
|
|
47
|
+
dead. */
|
|
28
48
|
.cr-input{min-height:44px;border:1px solid var(--cr-outline);border-radius:12px;background:var(--cr-surface);padding:10px 12px;width:100%;color:var(--cr-text)}.cr-input::placeholder{color:var(--cr-muted)}
|
|
29
|
-
.cr-status{display:inline-flex;align-items:center;gap:7px;border-radius:9px;padding:5px 9px;background:var(--status-surface);color:var(--status-ink);font-size:13px;font-weight:750;line-height:1.4
|
|
49
|
+
.cr-status{display:inline-flex;align-items:center;gap:7px;border-radius:9px;padding:5px 9px;background:var(--status-surface);color:var(--status-ink);font-size:13px;font-weight:750;line-height:1.4;/* Adopted from the preview 21 September 2026 with D-11's third divergence.
|
|
50
|
+
It scopes --cr-outline to the status ink for the chip's subtree. Nothing
|
|
51
|
+
in the library reads it there today: --cr-outline is consumed by
|
|
52
|
+
.cr-input, .cr-dialog, the Frost/Resin border and the two scrollbar
|
|
53
|
+
rules, none of which can match inside a chip, and the
|
|
54
|
+
chip's own rim comes from --cr-rim. Kept because the preview carries it
|
|
55
|
+
and a consumer may nest something that reads it; it is not a claim that
|
|
56
|
+
anything renders differently. */--cr-outline:var(--status-ink)}.cr-status[data-status=success]{--status-surface:var(--cr-success-surface);--status-ink:var(--cr-success-ink)}.cr-status[data-status=attention]{--status-surface:var(--cr-attention-surface);--status-ink:var(--cr-attention-ink)}.cr-status[data-status=danger]{--status-surface:var(--cr-danger-surface);--status-ink:var(--cr-danger-ink)}.cr-status[data-status=info]{--status-surface:var(--cr-info-surface);--status-ink:var(--cr-info-ink)}
|
|
30
57
|
.cr-bubble{background:var(--cr-surface);color:var(--cr-text);border:1px solid var(--cr-edge);border-radius:6px var(--cr-radius) var(--cr-radius) var(--cr-radius);box-shadow:var(--cr-shadow-content);padding:14px 18px;line-height:1.5;font-size:16px}.cr-bubble.own{border-radius:var(--cr-radius) 6px var(--cr-radius) var(--cr-radius);background:var(--cr-primary-soft);color:var(--cr-on-primary-soft)}[dir=rtl] .cr-bubble{border-radius:var(--cr-radius) 6px var(--cr-radius) var(--cr-radius)}[dir=rtl] .cr-bubble.own{border-radius:6px var(--cr-radius) var(--cr-radius) var(--cr-radius)}
|
|
31
|
-
.cr-dock{display:flex;align-items:center;gap:4px;padding:8px;max-width:100%}.cr-dock-inner{display:flex;gap:3px;align-items:center;border-radius:999px;background:var(--cr-label-fill);padding:3px;width:100%}.cr-dock button{min-height:44px;border:0;background:none;padding:10px 17px;border-radius:999px;font-weight:700;white-space:nowrap;color:var(--cr-text)}
|
|
58
|
+
.cr-dock{display:flex;align-items:center;gap:4px;padding:8px;max-width:100%}.cr-dock-inner{display:flex;gap:3px;align-items:center;border-radius:999px;background:var(--cr-label-fill);padding:3px;width:100%}.cr-dock button{min-height:44px;border:0;background:none;padding:10px 17px;border-radius:999px;font-weight:700;white-space:nowrap;color:var(--cr-text)}/* The underline this rule used to draw under a selected dock label is gone.
|
|
59
|
+
Selection is carried by label weight alone, the adopted component layer
|
|
60
|
+
sets text-decoration:none over it, and a declaration that neither renders
|
|
61
|
+
nor matches the specification is worse than an absent one. */
|
|
62
|
+
.cr-dock button[aria-pressed=true]{background:var(--cr-primary);color:var(--cr-on-primary);box-shadow:0 2px 5px #0002}.cr-dock button:hover:not([aria-pressed=true]){background:var(--cr-surface)}
|
|
32
63
|
.cr-dialog{border:1px solid var(--cr-outline);background:var(--cr-surface);color:var(--cr-text);padding:30px;border-radius:calc(var(--cr-radius) + 6px);width:min(560px,calc(100% - 32px));box-shadow:var(--cr-shadow-float);max-height:85dvh;overflow:auto;overflow-x:hidden}.cr-dialog::backdrop,.cr-mirage{background:var(--cr-mirage-fill);backdrop-filter:blur(var(--cr-mirage-blur)) saturate(var(--cr-mirage-saturation)) brightness(var(--cr-mirage-brightness));-webkit-backdrop-filter:blur(var(--cr-mirage-blur)) saturate(var(--cr-mirage-saturation)) brightness(var(--cr-mirage-brightness))}.cr-dialog header{display:flex;justify-content:space-between;align-items:start;gap:20px}.cr-dialog h2{font-size:26px}.cr-dialog footer{display:flex;gap:10px;justify-content:flex-end;margin-top:24px}.cr-dialog pre{max-height:300px;overflow:auto}
|
|
33
64
|
[data-effects=opaque] :is(.cr-frost,.cr-acrylic),[data-effects=opaque] :is(.cr-resin,.cr-glass){backdrop-filter:none;-webkit-backdrop-filter:none;background:var(--cr-surface);border-color:var(--cr-outline)}[data-effects=opaque] :is(.cr-frost,.cr-acrylic):before{display:none}
|
|
34
65
|
@supports not (backdrop-filter:blur(1px)){:is(.cr-frost,.cr-acrylic),:is(.cr-resin,.cr-glass){background:var(--cr-surface);border-color:var(--cr-outline)}}
|
|
@@ -275,3 +306,864 @@
|
|
|
275
306
|
.cr-dialog::backdrop,.cr-mirage{background:var(--cr-mirage-fallback-fill)}
|
|
276
307
|
}
|
|
277
308
|
}
|
|
309
|
+
|
|
310
|
+
/* ---------------------------------------------------------------------------
|
|
311
|
+
The Resin interaction surface, and the four Crystal components that were
|
|
312
|
+
only ever in the preview's stylesheet.
|
|
313
|
+
|
|
314
|
+
`.cr-control`, `.cr-field-shell`, `.cr-indicator`, `.cr-resin-haze` and
|
|
315
|
+
`.cr-tag` are named throughout `docs/components.md` — the indicator's 20px
|
|
316
|
+
circle with its 3px-inset 80% Haze fill, `.cr-resin-haze` as the composition
|
|
317
|
+
small display elements use — and until 21 September 2026 the library shipped
|
|
318
|
+
none of them. `components.md` said "use `assets/controls.css` after the base
|
|
319
|
+
and layout styles", and `assets/controls.css` is not in this package and never
|
|
320
|
+
was. A consumer following the specification reached for five components that
|
|
321
|
+
did not exist, which is why Crystal React had to rebuild the control surface
|
|
322
|
+
in SCSS rather than consume it.
|
|
323
|
+
|
|
324
|
+
That is D-11's third divergence, and Meridian decided on 21 September that the
|
|
325
|
+
library adopts rather than the preview drops. Lifted from
|
|
326
|
+
`crystal-preview/website/assets/controls.css` with its selector lists filtered
|
|
327
|
+
to the Crystal parts: the preview's own furniture — `.suite-switch`,
|
|
328
|
+
`.segmented`, the range inputs — shares those rules and stays with the site.
|
|
329
|
+
|
|
330
|
+
In `@layer crystal.component`, which is where the preview had it and where the
|
|
331
|
+
layer order at the top of this file already reserves a slot. That matters for
|
|
332
|
+
more than tidiness: the rules above are unlayered and therefore beat these, so
|
|
333
|
+
a property the library already sets keeps the library's value and these supply
|
|
334
|
+
only what it left unset. The cascade is the one the preview has been rendering
|
|
335
|
+
all along, which is what makes this an adoption rather than a redesign.
|
|
336
|
+
--------------------------------------------------------------------------- */
|
|
337
|
+
@layer crystal.component {
|
|
338
|
+
:is(button,a.cr-button,.cr-control,.cr-field-shell,.cr-resin-haze,.cr-status) {
|
|
339
|
+
position: relative;
|
|
340
|
+
isolation: isolate;
|
|
341
|
+
background: var(--cr-resin-fill);
|
|
342
|
+
color: var(--cr-text);
|
|
343
|
+
border: 1px solid var(--cr-rim);
|
|
344
|
+
box-shadow: var(--cr-shadow-float);
|
|
345
|
+
backdrop-filter: blur(var(--cr-resin-blur)) saturate(var(--cr-resin-saturation));
|
|
346
|
+
-webkit-backdrop-filter: blur(var(--cr-resin-blur)) saturate(var(--cr-resin-saturation));
|
|
347
|
+
filter: none;
|
|
348
|
+
}
|
|
349
|
+
:is(button,a.cr-button,.cr-control,.cr-field-shell,.cr-resin-haze,.cr-status)::before {
|
|
350
|
+
content: '';
|
|
351
|
+
position: absolute;
|
|
352
|
+
inset: var(--cr-haze-inset);
|
|
353
|
+
z-index: -1;
|
|
354
|
+
pointer-events: none;
|
|
355
|
+
border-radius: inherit;
|
|
356
|
+
background: var(--cr-haze-fill);
|
|
357
|
+
filter: blur(var(--cr-haze-feather));
|
|
358
|
+
box-shadow: none;
|
|
359
|
+
}
|
|
360
|
+
:is(button,a.cr-button,.cr-control,.cr-field-shell,.cr-resin-haze,.cr-status)::after {
|
|
361
|
+
content: '';
|
|
362
|
+
position: absolute;
|
|
363
|
+
inset: 0;
|
|
364
|
+
z-index: -2;
|
|
365
|
+
pointer-events: none;
|
|
366
|
+
border-radius: inherit;
|
|
367
|
+
background: linear-gradient(115deg,transparent 20%,#ffffff30 43%,#ffffff0a 55%,transparent 72%),radial-gradient(ellipse at 12% 0%,var(--cr-control-light),transparent 75%),linear-gradient(135deg,var(--cr-control-color),transparent 60%,var(--cr-control-light));
|
|
368
|
+
background-size: 220% 100%,100% 100%,100% 100%;
|
|
369
|
+
background-position: 100% 0;
|
|
370
|
+
box-shadow: inset 0 2px 1px var(--cr-rim),inset 0 -1px 1px var(--cr-rim);
|
|
371
|
+
}
|
|
372
|
+
.cr-field-shell {
|
|
373
|
+
display: inline-flex;
|
|
374
|
+
align-items: center;
|
|
375
|
+
min-width: 0;
|
|
376
|
+
border-radius: 20px;
|
|
377
|
+
padding: 8px;
|
|
378
|
+
vertical-align: middle;
|
|
379
|
+
}
|
|
380
|
+
.cr-field-shell:has(.cr-input) {
|
|
381
|
+
width: 100%;
|
|
382
|
+
}
|
|
383
|
+
.cr-field-shell :is(input,select,textarea) {
|
|
384
|
+
position: relative;
|
|
385
|
+
background: transparent;
|
|
386
|
+
border: 0;
|
|
387
|
+
box-shadow: none;
|
|
388
|
+
border-radius: 12px;
|
|
389
|
+
min-width: 0;
|
|
390
|
+
color: var(--cr-text);
|
|
391
|
+
min-height: 44px;
|
|
392
|
+
max-width: 100%;
|
|
393
|
+
}
|
|
394
|
+
.cr-field-shell:focus-within {
|
|
395
|
+
outline: 2px solid var(--cr-focus-core);
|
|
396
|
+
outline-offset: 3px;
|
|
397
|
+
}
|
|
398
|
+
.cr-field-shell :focus-visible {
|
|
399
|
+
outline: 0;
|
|
400
|
+
}
|
|
401
|
+
[data-effects=opaque] :is(button,a.cr-button,.cr-control,.cr-field-shell,.cr-resin-haze,.cr-status) {
|
|
402
|
+
background: var(--cr-surface);
|
|
403
|
+
backdrop-filter: none;
|
|
404
|
+
-webkit-backdrop-filter: none;
|
|
405
|
+
}
|
|
406
|
+
[data-effects=opaque] :is(button,a.cr-button,.cr-control,.cr-field-shell,.cr-resin-haze,.cr-status)::after {
|
|
407
|
+
display: none;
|
|
408
|
+
}
|
|
409
|
+
.cr-resin-haze {
|
|
410
|
+
border-radius: 18px;
|
|
411
|
+
padding: 16px;
|
|
412
|
+
line-height: 1.5;
|
|
413
|
+
}
|
|
414
|
+
.cr-tag {
|
|
415
|
+
display: inline-flex;
|
|
416
|
+
align-items: center;
|
|
417
|
+
gap: 6px;
|
|
418
|
+
padding: 10px 14px;
|
|
419
|
+
border-radius: 99px;
|
|
420
|
+
font-size: 13px;
|
|
421
|
+
font-weight: 700;
|
|
422
|
+
}
|
|
423
|
+
nav a.cr-control {
|
|
424
|
+
display: inline-flex;
|
|
425
|
+
align-items: center;
|
|
426
|
+
justify-content: center;
|
|
427
|
+
padding: 10px 14px;
|
|
428
|
+
border-radius: 99px;
|
|
429
|
+
min-height: 44px;
|
|
430
|
+
text-decoration: none;
|
|
431
|
+
}
|
|
432
|
+
nav a.cr-control[aria-current] {
|
|
433
|
+
text-decoration: none;
|
|
434
|
+
}
|
|
435
|
+
.cr-field-shell {
|
|
436
|
+
box-shadow: inset 0 2px 1px var(--cr-rim),0 3px 5px var(--cr-control-edge),0 12px 24px var(--cr-shadow-contact);
|
|
437
|
+
}
|
|
438
|
+
:is(.cr-tag,.cr-resin-haze) {
|
|
439
|
+
padding: 17px 24px;
|
|
440
|
+
}
|
|
441
|
+
.cr-tag {
|
|
442
|
+
min-height: 48px;
|
|
443
|
+
}
|
|
444
|
+
span.cr-field-shell {
|
|
445
|
+
border-color: var(--cr-rim);
|
|
446
|
+
}
|
|
447
|
+
span.cr-field-shell::after {
|
|
448
|
+
background-image: radial-gradient(ellipse at 12% 0%,var(--cr-control-light),transparent 75%),linear-gradient(135deg,var(--cr-control-color),transparent 60%,var(--cr-control-light));
|
|
449
|
+
background-size: 100% 100%,100% 100%;
|
|
450
|
+
background-position: 0 0,0 0;
|
|
451
|
+
background-repeat: no-repeat;
|
|
452
|
+
}
|
|
453
|
+
span.cr-field-shell:has([aria-invalid=true])::after {
|
|
454
|
+
background-image: radial-gradient(ellipse at 12% 0%,var(--cr-control-light),transparent 75%),linear-gradient(135deg,var(--cr-control-color),transparent 60%,var(--cr-control-light));
|
|
455
|
+
}
|
|
456
|
+
[data-effects=opaque] span.cr-field-shell::after {
|
|
457
|
+
display: none;
|
|
458
|
+
}
|
|
459
|
+
span.cr-field-shell:focus-within {
|
|
460
|
+
outline: 2px solid var(--cr-focus-core);
|
|
461
|
+
outline-offset: 3px;
|
|
462
|
+
box-shadow: inset 0 2px 1px var(--cr-rim),var(--cr-focus-ring);
|
|
463
|
+
}
|
|
464
|
+
span.cr-field-shell :is(input,select,textarea):focus-visible {
|
|
465
|
+
outline: 0;
|
|
466
|
+
box-shadow: none;
|
|
467
|
+
}
|
|
468
|
+
:is(.cr-resin,.cr-glass,.cr-resin-haze) :is(.cr-haze,.cr-surface,.cr-well,.cr-content-fill) {
|
|
469
|
+
box-shadow: inset 0 1px 2px var(--cr-shadow-contact),inset 0 -1px 0 var(--cr-rim);
|
|
470
|
+
}
|
|
471
|
+
:is(.cr-resin,.cr-glass,.cr-resin-haze) :is(button,a.cr-button,.cr-button,.cr-control) {
|
|
472
|
+
backdrop-filter: none;
|
|
473
|
+
-webkit-backdrop-filter: none;
|
|
474
|
+
/* backdrop-filter silently creates a stacking context, and these controls
|
|
475
|
+
paint their fill on a ::before at z-index -1 which was relying on it. Drop
|
|
476
|
+
the filter alone and that pseudo-element escapes to the nearest ancestor
|
|
477
|
+
context and paints behind the button's own background instead of above it —
|
|
478
|
+
which erased the selected dock label completely. Isolation restores the
|
|
479
|
+
containment without restoring the second blur. */
|
|
480
|
+
isolation: isolate;
|
|
481
|
+
}
|
|
482
|
+
.cr-indicator {
|
|
483
|
+
position: absolute;
|
|
484
|
+
isolation: isolate;
|
|
485
|
+
display: grid;
|
|
486
|
+
place-items: center;
|
|
487
|
+
inset-block-start: -4px;
|
|
488
|
+
inset-inline-end: -3px;
|
|
489
|
+
width: 20px;
|
|
490
|
+
height: 20px;
|
|
491
|
+
min-width: 20px;
|
|
492
|
+
border-radius: 50%;
|
|
493
|
+
border: 1px solid var(--cr-rim);
|
|
494
|
+
background: transparent;
|
|
495
|
+
backdrop-filter: none;
|
|
496
|
+
-webkit-backdrop-filter: none;
|
|
497
|
+
box-shadow: 0 2px 4px var(--cr-control-edge),0 4px 8px var(--cr-shadow-contact);
|
|
498
|
+
color: var(--cr-text);
|
|
499
|
+
font: 800 12px/1 var(--cr-font);
|
|
500
|
+
z-index: 2;
|
|
501
|
+
pointer-events: none;
|
|
502
|
+
text-decoration: none;
|
|
503
|
+
text-shadow: none;
|
|
504
|
+
}
|
|
505
|
+
.cr-indicator::before {
|
|
506
|
+
content: '';
|
|
507
|
+
position: absolute;
|
|
508
|
+
inset: 1px;
|
|
509
|
+
z-index: -1;
|
|
510
|
+
border-radius: 50%;
|
|
511
|
+
background: var(--cr-haze-fill);
|
|
512
|
+
filter: blur(var(--cr-haze-feather));
|
|
513
|
+
}
|
|
514
|
+
.cr-indicator:is([data-kind=selection],[data-kind=current],[data-kind=busy]) {
|
|
515
|
+
display: none;
|
|
516
|
+
}
|
|
517
|
+
[aria-current]:not([aria-current=false])>.cr-indicator[data-kind=current] {
|
|
518
|
+
display: grid;
|
|
519
|
+
}
|
|
520
|
+
[aria-busy=true]>.cr-indicator[data-kind=busy] {
|
|
521
|
+
display: grid;
|
|
522
|
+
}
|
|
523
|
+
.cr-indicator[data-kind=current]::after {
|
|
524
|
+
content: '●';
|
|
525
|
+
font-size: 9px;
|
|
526
|
+
}
|
|
527
|
+
.cr-indicator[data-kind=busy]::after {
|
|
528
|
+
content: '…';
|
|
529
|
+
font-size: 14px;
|
|
530
|
+
}
|
|
531
|
+
:is([aria-pressed=true],[aria-selected=true],[aria-checked=true])>.cr-indicator[data-kind=selection] {
|
|
532
|
+
display: none
|
|
533
|
+
}
|
|
534
|
+
.cr-indicator[data-kind=selection]::before,.cr-indicator[data-kind=selection]::after {
|
|
535
|
+
content: none;
|
|
536
|
+
display: none;
|
|
537
|
+
}
|
|
538
|
+
span.cr-field-shell {
|
|
539
|
+
padding-inline-end: 40px;
|
|
540
|
+
}
|
|
541
|
+
span.cr-field-shell>.cr-indicator {
|
|
542
|
+
inset-block-start: 50%;
|
|
543
|
+
inset-inline-end: 10px;
|
|
544
|
+
transform: translateY(-50%);
|
|
545
|
+
width: 24px;
|
|
546
|
+
height: 24px;
|
|
547
|
+
}
|
|
548
|
+
span.cr-field-shell>.cr-indicator::after {
|
|
549
|
+
content: '○';
|
|
550
|
+
font-size: 15px;
|
|
551
|
+
}
|
|
552
|
+
span.cr-field-shell:focus-within>.cr-indicator::after {
|
|
553
|
+
content: '●';
|
|
554
|
+
font-size: 9px;
|
|
555
|
+
}
|
|
556
|
+
span.cr-field-shell:has(:is([required],[aria-required=true]))>.cr-indicator::after {
|
|
557
|
+
content: '*';
|
|
558
|
+
font-size: 19px;
|
|
559
|
+
}
|
|
560
|
+
span.cr-field-shell:has([aria-invalid=true])>.cr-indicator::after {
|
|
561
|
+
content: '!';
|
|
562
|
+
font-size: 15px;
|
|
563
|
+
}
|
|
564
|
+
:is(button[aria-pressed],button[aria-selected],button[aria-checked],a.cr-control[aria-current]) {
|
|
565
|
+
text-decoration: none;
|
|
566
|
+
}
|
|
567
|
+
[data-effects=opaque] .cr-indicator {
|
|
568
|
+
background: var(--cr-surface);
|
|
569
|
+
backdrop-filter: none;
|
|
570
|
+
}
|
|
571
|
+
[data-effects=opaque] .cr-indicator::before {
|
|
572
|
+
filter: none;
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
@layer crystal.component {
|
|
577
|
+
@media (prefers-reduced-transparency:reduce) {
|
|
578
|
+
:is(button,a.cr-button,.cr-control,.cr-field-shell,.cr-resin-haze,.cr-status) {
|
|
579
|
+
background: var(--cr-surface);
|
|
580
|
+
backdrop-filter: none;
|
|
581
|
+
-webkit-backdrop-filter: none
|
|
582
|
+
}
|
|
583
|
+
:is(button,a.cr-button,.cr-control,.cr-field-shell,.cr-resin-haze,.cr-status)::after {
|
|
584
|
+
display: none
|
|
585
|
+
}
|
|
586
|
+
span.cr-field-shell::after {
|
|
587
|
+
display: none;
|
|
588
|
+
}
|
|
589
|
+
.cr-indicator {
|
|
590
|
+
background: var(--cr-surface);
|
|
591
|
+
backdrop-filter: none
|
|
592
|
+
}
|
|
593
|
+
.cr-indicator::before {
|
|
594
|
+
filter: none
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
@layer crystal.component {
|
|
600
|
+
@media (forced-colors:active) {
|
|
601
|
+
:is(button,a.cr-button,.cr-control,.cr-field-shell,input) {
|
|
602
|
+
background: Canvas!important;
|
|
603
|
+
color: CanvasText!important;
|
|
604
|
+
border: 1px solid ButtonText;
|
|
605
|
+
box-shadow: none;
|
|
606
|
+
backdrop-filter: none
|
|
607
|
+
}
|
|
608
|
+
:is(button,a.cr-button,.cr-control,.cr-field-shell,.cr-resin-haze,.cr-status)::before,:is(button,a.cr-button,.cr-control,.cr-field-shell,.cr-resin-haze,.cr-status)::after {
|
|
609
|
+
display: none
|
|
610
|
+
}
|
|
611
|
+
span.cr-field-shell {
|
|
612
|
+
border: 1px solid ButtonText
|
|
613
|
+
}
|
|
614
|
+
span.cr-field-shell::after {
|
|
615
|
+
display: none
|
|
616
|
+
}
|
|
617
|
+
.cr-indicator {
|
|
618
|
+
background: Canvas;
|
|
619
|
+
color: CanvasText;
|
|
620
|
+
border: 1px solid ButtonText;
|
|
621
|
+
box-shadow: none;
|
|
622
|
+
backdrop-filter: none
|
|
623
|
+
}
|
|
624
|
+
.cr-indicator::before {
|
|
625
|
+
display: none
|
|
626
|
+
}
|
|
627
|
+
span.cr-field-shell:focus-within {
|
|
628
|
+
outline: 2px solid Highlight;
|
|
629
|
+
box-shadow: none
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
@layer crystal.component {
|
|
635
|
+
@media (max-width:600px) {
|
|
636
|
+
.cr-tag {
|
|
637
|
+
padding: 10px 15px;
|
|
638
|
+
min-height: 40px;
|
|
639
|
+
white-space: nowrap
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
/* ---------------------------------------------------------------------------
|
|
646
|
+
Second adoption pass — 21 September 2026, D-11's third divergence.
|
|
647
|
+
|
|
648
|
+
The first pass lifted the Resin interaction surface and five components the
|
|
649
|
+
preview defined and the library did not, and was verified by rendering the
|
|
650
|
+
site both ways and finding the pixels identical. That proved the lift was
|
|
651
|
+
faithful. It proved nothing about what `controls.css` still overrode once
|
|
652
|
+
the lift had landed, because both sides of that comparison kept the sheet.
|
|
653
|
+
|
|
654
|
+
Measuring the residual — library 2.1.0, the stripped sheet as the only
|
|
655
|
+
variable — found a great deal. Three attempts to classify it by selector
|
|
656
|
+
shape gave three different answers (29, 51, and still leaking), so the
|
|
657
|
+
question was inverted: a rule belongs to the preview only if it names a
|
|
658
|
+
class or id outside Crystal's `cr-` namespace, and everything else is the
|
|
659
|
+
library's. That fails closed, the way discovery-by-list does.
|
|
660
|
+
|
|
661
|
+
The partition is **75 rules and 238 declarations** here, 50 rules left with
|
|
662
|
+
the preview, 2 dropped. This block is generated from `controls.css` by that
|
|
663
|
+
partition rather than transcribed, so the two sides cannot drift.
|
|
664
|
+
|
|
665
|
+
What the library turned out to be missing, beyond geometry: it styled no
|
|
666
|
+
native form control at all — no checkbox, radio, range, file button, select
|
|
667
|
+
option or menu item lived here, only in the preview.
|
|
668
|
+
|
|
669
|
+
Three exceptions, each decided rather than derived:
|
|
670
|
+
|
|
671
|
+
· `:not(.swatch)` is stripped from the sheen selector. `.swatch` is the
|
|
672
|
+
preview's; the sheen is Crystal's. The preview keeps its swatches flush
|
|
673
|
+
with a rule of its own.
|
|
674
|
+
· `.cr-dock-inner` stays with the preview. `components.md` says it shares
|
|
675
|
+
the Stone recipe; `materials.md` says a label on a Resin dock takes its
|
|
676
|
+
own chip. The preview follows one and the library the other, and the
|
|
677
|
+
preview's rule is measurably too broad — it also blanks
|
|
678
|
+
`.cr-dock-inner.cr-stone`, the preview's own "Stone on Resin" specimen.
|
|
679
|
+
That is Meridian's line to draw, and it is filed rather than guessed.
|
|
680
|
+
· `.cr-button.danger`'s neutralisation is dropped from both. It styles
|
|
681
|
+
nothing on the preview, and status colours are never redefined. The danger
|
|
682
|
+
boundary below comes from `components.md`, not from the preview.
|
|
683
|
+
--------------------------------------------------------------------------- */
|
|
684
|
+
@layer crystal.component {
|
|
685
|
+
|
|
686
|
+
/* Destructive actions take the Resin/Haze surface every button has, plus the
|
|
687
|
+
independent danger boundary components.md requires. The reset layer used to
|
|
688
|
+
ask for a danger *fill*; the component layer has silently outranked it since
|
|
689
|
+
the surface was adopted, which left a danger button indistinguishable from
|
|
690
|
+
any other button in the library. The boundary is the documented carrier. */
|
|
691
|
+
.cr-button.danger {
|
|
692
|
+
border-color: var(--cr-danger-ink)
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
/* The primary action's *reading fill* is the primary colour.
|
|
696
|
+
*
|
|
697
|
+
* Meridian, 22 September 2026, twice. First: "the Haze content fill should adopt
|
|
698
|
+
* the primary color, not the rim. The text color will need to be adjusted
|
|
699
|
+
* depending on the primary color." Then, against the first attempt: "the Primary
|
|
700
|
+
* button now has no Haze content fill … return Primary's Haze content fill, and
|
|
701
|
+
* make the color of that content fill the primary color."
|
|
702
|
+
*
|
|
703
|
+
* What was wrong before either of those: the reset layer asked for
|
|
704
|
+
* `background:var(--cr-primary)` on `.cr-button`, and the Resin control rule in
|
|
705
|
+
* this layer has outranked it since the surface was adopted — so the primary
|
|
706
|
+
* colour survived only as the 8px ring of element background left exposed around
|
|
707
|
+
* an inset, white Haze fill, with white `onPrimary` text sitting on that white
|
|
708
|
+
* fill. The colour was in the rim by accident and the label was barely legible.
|
|
709
|
+
*
|
|
710
|
+
* What was wrong with the first attempt: it used `--cr-haze-own-fill`, the
|
|
711
|
+
* palette's content-own surface at Haze's 80%. That is a *soft* tone, and over
|
|
712
|
+
* Crystal's own light atmosphere an 80% soft tone is within a few percent of the
|
|
713
|
+
* Resin shell around it. The fill was there and nobody could see it — which is
|
|
714
|
+
* what Meridian reported, and it is also not "the primary color".
|
|
715
|
+
*
|
|
716
|
+
* So the fill is `--cr-primary` itself, and the ink is `--cr-on-primary`: the
|
|
717
|
+
* palette's own tested pair, which `validate-tokens` already holds across all six
|
|
718
|
+
* palettes and both modes. Measured against the rendered composite it is 4.74 to
|
|
719
|
+
* 10.31, tightest on Ion in light mode.
|
|
720
|
+
*
|
|
721
|
+
* The fill is opaque where Haze's neutral fill is 80%, and that is the one
|
|
722
|
+
* deliberate deviation here rather than an oversight. An 80% fill transmits a
|
|
723
|
+
* fifth of whatever is behind it; white over a light page is still white, so the
|
|
724
|
+
* neutral pad loses nothing, but a mid-tone primary at 80% over the Resin shell
|
|
725
|
+
* composites to a washed-out lilac that sits at the exact luminance where neither
|
|
726
|
+
* a white nor a near-black label clears 4.5 — measured, it is 3.37 to 4.55 with
|
|
727
|
+
* `onPrimary` and 2.95 to 5.06 with `text`, failing in every light palette. A
|
|
728
|
+
* reading ground whose whole job is to make the label independent of the backdrop
|
|
729
|
+
* cannot be the one thing that depends on it.
|
|
730
|
+
*
|
|
731
|
+
* The rim stays the Resin rim. The colour is in the fill; the perimeter is glass,
|
|
732
|
+
* the same glass every other control has.
|
|
733
|
+
*
|
|
734
|
+
* The tint is opt-in, on `.primary`, rather than applying to any button that is
|
|
735
|
+
* not something else. It used to read `:not(.secondary):not(.quiet):not(.danger)`,
|
|
736
|
+
* which was one forgotten modifier away from painting the whole surface, and it
|
|
737
|
+
* named `.secondary` — a variant Crystal withdrew when it was established that
|
|
738
|
+
* the palettes define one action pair and no second one.
|
|
739
|
+
*/
|
|
740
|
+
.cr-button.primary {
|
|
741
|
+
color: var(--cr-on-primary)
|
|
742
|
+
}
|
|
743
|
+
.cr-button.primary::before {
|
|
744
|
+
background: var(--cr-primary)
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
/* A quiet button has no Haze reading fill.
|
|
748
|
+
*
|
|
749
|
+
* Meridian, 22 September 2026: "remove the Haze content fill from the Quiet
|
|
750
|
+
* buttons." With the pad gone, quiet is the only one of the four that is glass
|
|
751
|
+
* all the way through — a Resin shell, its rim, its float shadow and its sheen,
|
|
752
|
+
* and the label directly on the material. That is what makes it quiet, and it is
|
|
753
|
+
* the distinction that was missing when quiet took the base surface an hour
|
|
754
|
+
* earlier: primary is tinted, secondary is the neutral pad, quiet is neither.
|
|
755
|
+
*
|
|
756
|
+
* The consequence is worth stating where it lives rather than being discovered.
|
|
757
|
+
* The pad is what makes a label's contrast independent of whatever is behind the
|
|
758
|
+
* control; without it the label reads against the Resin fill and therefore
|
|
759
|
+
* against the backdrop. On Crystal's own foundation that is a wide margin —
|
|
760
|
+
* measured across all six palettes and both modes, `--cr-text` over the Resin
|
|
761
|
+
* fill over canvas, surface, surface-alt and foundation is 10.88 to 18.28 — but
|
|
762
|
+
* a quiet button placed over artwork has no protected ground, and that is the
|
|
763
|
+
* one composition to avoid.
|
|
764
|
+
*/
|
|
765
|
+
.cr-button.quiet::before {
|
|
766
|
+
display: none
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
:is(button,a.cr-button,.cr-control)::after {
|
|
770
|
+
inset:2px;
|
|
771
|
+
filter:blur(2px);
|
|
772
|
+
box-shadow:none
|
|
773
|
+
}
|
|
774
|
+
:is(button,a.cr-button) {
|
|
775
|
+
min-height:48px
|
|
776
|
+
}
|
|
777
|
+
:is(button,a.cr-button):hover {
|
|
778
|
+
background:var(--cr-resin-fill);
|
|
779
|
+
filter:none
|
|
780
|
+
}
|
|
781
|
+
:is(button[aria-pressed=true],button[aria-selected=true],button[aria-checked=true]) {
|
|
782
|
+
color:var(--cr-on-primary)
|
|
783
|
+
}
|
|
784
|
+
:is(button[aria-pressed=true],button[aria-selected=true],button[aria-checked=true])::before {
|
|
785
|
+
background:var(--cr-primary);
|
|
786
|
+
filter:none
|
|
787
|
+
}
|
|
788
|
+
:is(button[aria-pressed=true],button[aria-selected=true],button[aria-checked=true]) {
|
|
789
|
+
text-decoration:none
|
|
790
|
+
}
|
|
791
|
+
select option {
|
|
792
|
+
background:var(--cr-surface);
|
|
793
|
+
color:var(--cr-text)
|
|
794
|
+
}
|
|
795
|
+
input:is([type=checkbox],[type=radio]) {
|
|
796
|
+
appearance:none;
|
|
797
|
+
width:26px;
|
|
798
|
+
height:26px;
|
|
799
|
+
flex:none;
|
|
800
|
+
vertical-align:middle;
|
|
801
|
+
border:1px solid var(--cr-rim);
|
|
802
|
+
border-radius:9px;
|
|
803
|
+
background:linear-gradient(135deg,var(--cr-control-light),var(--cr-control-color)),var(--cr-resin-fill);
|
|
804
|
+
backdrop-filter:blur(20px);
|
|
805
|
+
box-shadow:inset 0 2px 2px var(--cr-rim),0 2px 3px var(--cr-control-edge),0 5px 10px var(--cr-shadow-contact);
|
|
806
|
+
display:inline-grid;
|
|
807
|
+
place-items:center
|
|
808
|
+
}
|
|
809
|
+
input[type=radio] {
|
|
810
|
+
border-radius:50%
|
|
811
|
+
}
|
|
812
|
+
input:is([type=checkbox],[type=radio])::after {
|
|
813
|
+
content:'';
|
|
814
|
+
box-sizing:border-box;
|
|
815
|
+
width:14px;
|
|
816
|
+
height:14px;
|
|
817
|
+
border:2px solid var(--cr-primary);
|
|
818
|
+
border-radius:4px;
|
|
819
|
+
background:var(--cr-surface)
|
|
820
|
+
}
|
|
821
|
+
input[type=radio]::after {
|
|
822
|
+
border-radius:50%
|
|
823
|
+
}
|
|
824
|
+
input[type=checkbox]:checked::after {
|
|
825
|
+
content:'✓';
|
|
826
|
+
font-size:14px;
|
|
827
|
+
font-weight:800;
|
|
828
|
+
background:var(--cr-primary);
|
|
829
|
+
color:var(--cr-on-primary);
|
|
830
|
+
border:0;
|
|
831
|
+
line-height:18px;
|
|
832
|
+
width:18px;
|
|
833
|
+
height:18px;
|
|
834
|
+
text-align:center
|
|
835
|
+
}
|
|
836
|
+
input[type=radio]:checked::after {
|
|
837
|
+
background:var(--cr-primary);
|
|
838
|
+
box-shadow:inset 0 0 0 3px var(--cr-surface)
|
|
839
|
+
}
|
|
840
|
+
input[type=range] {
|
|
841
|
+
appearance:none;
|
|
842
|
+
background:transparent;
|
|
843
|
+
min-height:32px;
|
|
844
|
+
--cr-range-progress:50%
|
|
845
|
+
}
|
|
846
|
+
input[type=range]::-webkit-slider-runnable-track {
|
|
847
|
+
height:8px;
|
|
848
|
+
border:0;
|
|
849
|
+
border-radius:99px;
|
|
850
|
+
background:linear-gradient(to right,var(--cr-primary) 0 var(--cr-range-progress),var(--cr-primary-soft) var(--cr-range-progress) 100%);
|
|
851
|
+
box-shadow:0 -1px 0 var(--cr-rim),0 2px 4px var(--cr-control-edge)
|
|
852
|
+
}
|
|
853
|
+
input[type=range]::-webkit-slider-thumb {
|
|
854
|
+
appearance:none;
|
|
855
|
+
width:26px;
|
|
856
|
+
height:26px;
|
|
857
|
+
margin-top:-9px;
|
|
858
|
+
border-radius:50%;
|
|
859
|
+
border:2px solid var(--cr-rim);
|
|
860
|
+
background:radial-gradient(circle,var(--cr-primary) 0 3px,var(--cr-surface) 3.5px 7px,transparent 8px),linear-gradient(135deg,var(--cr-control-light),var(--cr-control-color)),var(--cr-resin-fill);
|
|
861
|
+
box-shadow:inset 0 2px 1px var(--cr-rim),0 2px 4px var(--cr-control-edge),0 5px 10px var(--cr-shadow-cast)
|
|
862
|
+
}
|
|
863
|
+
input[type=range]::-moz-range-track {
|
|
864
|
+
height:8px;
|
|
865
|
+
border:0;
|
|
866
|
+
border-radius:99px;
|
|
867
|
+
background:var(--cr-primary-soft);
|
|
868
|
+
box-shadow:0 -1px 0 var(--cr-rim),0 2px 4px var(--cr-control-edge)
|
|
869
|
+
}
|
|
870
|
+
input[type=range]::-moz-range-progress {
|
|
871
|
+
height:8px;
|
|
872
|
+
border-radius:99px;
|
|
873
|
+
background:var(--cr-primary)
|
|
874
|
+
}
|
|
875
|
+
input[type=range]::-moz-range-thumb {
|
|
876
|
+
width:26px;
|
|
877
|
+
height:26px;
|
|
878
|
+
border-radius:50%;
|
|
879
|
+
border:2px solid var(--cr-rim);
|
|
880
|
+
background:radial-gradient(circle,var(--cr-primary) 0 3px,var(--cr-surface) 3.5px 7px,transparent 8px),linear-gradient(135deg,var(--cr-control-light),var(--cr-control-color)),var(--cr-resin-fill);
|
|
881
|
+
box-shadow:inset 0 2px 1px var(--cr-rim),0 2px 4px var(--cr-control-edge),0 5px 10px var(--cr-shadow-cast)
|
|
882
|
+
}
|
|
883
|
+
:root[dir=rtl] body input[type=range]::-webkit-slider-runnable-track {
|
|
884
|
+
background:linear-gradient(to left,var(--cr-primary) 0 var(--cr-range-progress),var(--cr-primary-soft) var(--cr-range-progress) 100%)
|
|
885
|
+
}
|
|
886
|
+
.cr-status {
|
|
887
|
+
padding:10px 14px;
|
|
888
|
+
min-height:36px
|
|
889
|
+
}
|
|
890
|
+
input[type=file]::file-selector-button {
|
|
891
|
+
min-height:44px;
|
|
892
|
+
padding:10px 16px;
|
|
893
|
+
border:1px solid var(--cr-rim);
|
|
894
|
+
border-radius:99px;
|
|
895
|
+
color:var(--cr-text);
|
|
896
|
+
background:linear-gradient(var(--cr-haze-fill),var(--cr-haze-fill)) padding-box,var(--cr-resin-fill);
|
|
897
|
+
box-shadow:inset 1px 1px 2px var(--cr-rim),0 4px 8px var(--cr-shadow-contact);
|
|
898
|
+
margin-inline-end:8px;
|
|
899
|
+
cursor:pointer
|
|
900
|
+
}
|
|
901
|
+
.cr-button {
|
|
902
|
+
padding:15px 24px
|
|
903
|
+
}
|
|
904
|
+
.cr-dock {
|
|
905
|
+
position:relative;
|
|
906
|
+
isolation:isolate;
|
|
907
|
+
background:var(--cr-resin-fill);
|
|
908
|
+
border:1px solid var(--cr-rim);
|
|
909
|
+
border-radius:999px;
|
|
910
|
+
padding:9px;
|
|
911
|
+
gap:4px;
|
|
912
|
+
box-shadow:var(--cr-shadow-float);
|
|
913
|
+
backdrop-filter:blur(var(--cr-resin-blur)) saturate(var(--cr-resin-saturation))
|
|
914
|
+
}
|
|
915
|
+
.cr-dock::before {
|
|
916
|
+
content:'';
|
|
917
|
+
position:absolute;
|
|
918
|
+
inset:var(--cr-haze-inset);
|
|
919
|
+
border-radius:inherit;
|
|
920
|
+
z-index:-1;
|
|
921
|
+
background:var(--cr-haze-fill);
|
|
922
|
+
filter:blur(var(--cr-haze-feather));
|
|
923
|
+
pointer-events:none
|
|
924
|
+
}
|
|
925
|
+
.cr-dock button {
|
|
926
|
+
border:0;
|
|
927
|
+
background:transparent;
|
|
928
|
+
box-shadow:none;
|
|
929
|
+
backdrop-filter:none;
|
|
930
|
+
-webkit-backdrop-filter:none;
|
|
931
|
+
border-radius:999px;
|
|
932
|
+
color:var(--cr-text)
|
|
933
|
+
}
|
|
934
|
+
.cr-dock button::before,
|
|
935
|
+
.cr-dock button::after {
|
|
936
|
+
display:none
|
|
937
|
+
}
|
|
938
|
+
.cr-dock button:is([aria-pressed=true],[aria-selected=true]) {
|
|
939
|
+
background:var(--cr-primary);
|
|
940
|
+
color:var(--cr-on-primary);
|
|
941
|
+
box-shadow:0 3px 7px var(--cr-shadow-contact)
|
|
942
|
+
}
|
|
943
|
+
.cr-dock button {
|
|
944
|
+
min-height:52px;
|
|
945
|
+
padding:13px 18px
|
|
946
|
+
}
|
|
947
|
+
[role=menu] button {
|
|
948
|
+
padding-inline-start:24px
|
|
949
|
+
}
|
|
950
|
+
[data-effects=opaque] .cr-dock {
|
|
951
|
+
background:var(--cr-surface);
|
|
952
|
+
backdrop-filter:none
|
|
953
|
+
}
|
|
954
|
+
span.cr-status {
|
|
955
|
+
border-color:var(--cr-rim);
|
|
956
|
+
border-radius:18px;
|
|
957
|
+
padding:12px 18px
|
|
958
|
+
}
|
|
959
|
+
span.cr-status>span {
|
|
960
|
+
display:inline-grid;
|
|
961
|
+
place-items:center;
|
|
962
|
+
min-width:24px;
|
|
963
|
+
height:24px;
|
|
964
|
+
border-radius:50%;
|
|
965
|
+
background:var(--status-surface);
|
|
966
|
+
color:var(--status-ink);
|
|
967
|
+
font-weight:800
|
|
968
|
+
}
|
|
969
|
+
.cr-dialog {
|
|
970
|
+
border-color:var(--cr-rim)
|
|
971
|
+
}
|
|
972
|
+
:is(button,a,input,select,textarea,summary,[tabindex]):focus-visible,
|
|
973
|
+
.cr-dock button:focus-visible {
|
|
974
|
+
outline:2px solid var(--cr-focus-core);
|
|
975
|
+
outline-offset:3px;
|
|
976
|
+
box-shadow:inset 0 2px 1px var(--cr-rim),var(--cr-focus-ring)
|
|
977
|
+
}
|
|
978
|
+
:is(button[aria-pressed=true],button[aria-selected=true],button[aria-checked=true],[role=tab][aria-selected=true]) {
|
|
979
|
+
font-weight:800
|
|
980
|
+
}
|
|
981
|
+
.cr-table-scroll {
|
|
982
|
+
position:relative;
|
|
983
|
+
isolation:isolate;
|
|
984
|
+
overflow:auto;
|
|
985
|
+
max-width:100%;
|
|
986
|
+
border:1px solid var(--cr-rim);
|
|
987
|
+
border-radius:var(--cr-radius);
|
|
988
|
+
background:var(--cr-resin-fill);
|
|
989
|
+
box-shadow:var(--cr-shadow-content);
|
|
990
|
+
backdrop-filter:blur(var(--cr-resin-blur)) saturate(var(--cr-resin-saturation));
|
|
991
|
+
-webkit-backdrop-filter:blur(var(--cr-resin-blur)) saturate(var(--cr-resin-saturation))
|
|
992
|
+
}
|
|
993
|
+
.cr-table-scroll::before {
|
|
994
|
+
content:'';
|
|
995
|
+
position:absolute;
|
|
996
|
+
inset:6px;
|
|
997
|
+
z-index:-1;
|
|
998
|
+
pointer-events:none;
|
|
999
|
+
border-radius:inherit;
|
|
1000
|
+
background:var(--cr-haze-fill);
|
|
1001
|
+
filter:blur(var(--cr-haze-feather))
|
|
1002
|
+
}
|
|
1003
|
+
.cr-table {
|
|
1004
|
+
width:100%;
|
|
1005
|
+
border-collapse:separate;
|
|
1006
|
+
border-spacing:0;
|
|
1007
|
+
background:transparent;
|
|
1008
|
+
box-shadow:none;
|
|
1009
|
+
border:0
|
|
1010
|
+
}
|
|
1011
|
+
.cr-table :is(th,td) {
|
|
1012
|
+
border:0;
|
|
1013
|
+
border-bottom:1px solid var(--cr-edge);
|
|
1014
|
+
padding:14px 18px;
|
|
1015
|
+
text-align:start;
|
|
1016
|
+
vertical-align:top;
|
|
1017
|
+
background:transparent
|
|
1018
|
+
}
|
|
1019
|
+
.cr-table thead th {
|
|
1020
|
+
position:sticky;
|
|
1021
|
+
top:0;
|
|
1022
|
+
z-index:1;
|
|
1023
|
+
background:var(--cr-primary-soft);
|
|
1024
|
+
color:var(--cr-on-primary-soft);
|
|
1025
|
+
font-weight:800;
|
|
1026
|
+
border-bottom:0
|
|
1027
|
+
}
|
|
1028
|
+
.cr-table thead th:first-child {
|
|
1029
|
+
border-start-start-radius:calc(var(--cr-radius) - 8px)
|
|
1030
|
+
}
|
|
1031
|
+
.cr-table thead th:last-child {
|
|
1032
|
+
border-start-end-radius:calc(var(--cr-radius) - 8px)
|
|
1033
|
+
}
|
|
1034
|
+
.cr-table tbody tr:last-child :is(th,td) {
|
|
1035
|
+
border-bottom:0
|
|
1036
|
+
}
|
|
1037
|
+
.cr-table-properties tbody tr:first-child :is(th,td) {
|
|
1038
|
+
padding-top:18px
|
|
1039
|
+
}
|
|
1040
|
+
.cr-table-properties th[scope=row] {
|
|
1041
|
+
width:11.5rem;
|
|
1042
|
+
font-weight:800;
|
|
1043
|
+
color:var(--cr-text)
|
|
1044
|
+
}
|
|
1045
|
+
.cr-table-properties td {
|
|
1046
|
+
color:var(--cr-muted)
|
|
1047
|
+
}
|
|
1048
|
+
.cr-table tbody tr:hover :is(th,td) {
|
|
1049
|
+
background:var(--cr-label-fill)
|
|
1050
|
+
}
|
|
1051
|
+
.cr-table caption {
|
|
1052
|
+
caption-side:top;
|
|
1053
|
+
text-align:start;
|
|
1054
|
+
padding:14px 18px 6px;
|
|
1055
|
+
font-size:13px;
|
|
1056
|
+
color:var(--cr-muted)
|
|
1057
|
+
}
|
|
1058
|
+
[data-effects=opaque] .cr-table-scroll {
|
|
1059
|
+
background:var(--cr-surface);
|
|
1060
|
+
backdrop-filter:none;
|
|
1061
|
+
-webkit-backdrop-filter:none
|
|
1062
|
+
}
|
|
1063
|
+
[data-effects=opaque] .cr-table-scroll::before {
|
|
1064
|
+
display:none
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
@media (max-width:600px) {
|
|
1068
|
+
.cr-dock {
|
|
1069
|
+
padding:7px
|
|
1070
|
+
}
|
|
1071
|
+
.cr-dock button {
|
|
1072
|
+
padding:10px 9px;
|
|
1073
|
+
font-size:11px;
|
|
1074
|
+
min-height:44px
|
|
1075
|
+
}
|
|
1076
|
+
.cr-table-properties th[scope=row] {
|
|
1077
|
+
width:auto
|
|
1078
|
+
}
|
|
1079
|
+
.cr-table-properties tr {
|
|
1080
|
+
display:grid
|
|
1081
|
+
}
|
|
1082
|
+
.cr-table-properties :is(th,td) {
|
|
1083
|
+
border-bottom:0
|
|
1084
|
+
}
|
|
1085
|
+
.cr-table-properties td {
|
|
1086
|
+
padding-top:0;
|
|
1087
|
+
padding-bottom:14px;
|
|
1088
|
+
border-bottom:1px solid var(--cr-edge)
|
|
1089
|
+
}
|
|
1090
|
+
.cr-table :is(th,td) {
|
|
1091
|
+
padding:11px 13px
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
@media (forced-colors:active) {
|
|
1096
|
+
input:is([type=checkbox],[type=radio]) {
|
|
1097
|
+
appearance:auto
|
|
1098
|
+
}
|
|
1099
|
+
input:is([type=checkbox],[type=radio])::after {
|
|
1100
|
+
display:none
|
|
1101
|
+
}
|
|
1102
|
+
.cr-dock {
|
|
1103
|
+
background:Canvas;
|
|
1104
|
+
border:1px solid ButtonText;
|
|
1105
|
+
box-shadow:none;
|
|
1106
|
+
backdrop-filter:none
|
|
1107
|
+
}
|
|
1108
|
+
.cr-dock::before {
|
|
1109
|
+
display:none
|
|
1110
|
+
}
|
|
1111
|
+
.cr-dock button:is([aria-pressed=true],[aria-selected=true]) {
|
|
1112
|
+
background:Canvas;
|
|
1113
|
+
color:CanvasText;
|
|
1114
|
+
outline:2px solid Highlight;
|
|
1115
|
+
outline-offset:-3px
|
|
1116
|
+
}
|
|
1117
|
+
input[type=range] {
|
|
1118
|
+
appearance:auto
|
|
1119
|
+
}
|
|
1120
|
+
input[type=range]::-webkit-slider-runnable-track {
|
|
1121
|
+
background:CanvasText
|
|
1122
|
+
}
|
|
1123
|
+
input[type=range]::-webkit-slider-thumb {
|
|
1124
|
+
background:ButtonText;
|
|
1125
|
+
border-color:Canvas
|
|
1126
|
+
}
|
|
1127
|
+
span.cr-status>span {
|
|
1128
|
+
background:Canvas;
|
|
1129
|
+
color:CanvasText
|
|
1130
|
+
}
|
|
1131
|
+
:is(button,a,input,select,textarea,summary,[tabindex]):focus-visible,
|
|
1132
|
+
.cr-dock button:focus-visible {
|
|
1133
|
+
outline:2px solid Highlight;
|
|
1134
|
+
box-shadow:none
|
|
1135
|
+
}
|
|
1136
|
+
.cr-table-scroll {
|
|
1137
|
+
background:Canvas;
|
|
1138
|
+
border:1px solid CanvasText;
|
|
1139
|
+
box-shadow:none;
|
|
1140
|
+
backdrop-filter:none
|
|
1141
|
+
}
|
|
1142
|
+
.cr-table-scroll::before {
|
|
1143
|
+
display:none
|
|
1144
|
+
}
|
|
1145
|
+
.cr-table :is(th,td) {
|
|
1146
|
+
border-bottom:1px solid CanvasText
|
|
1147
|
+
}
|
|
1148
|
+
.cr-table thead th {
|
|
1149
|
+
background:Canvas;
|
|
1150
|
+
color:CanvasText;
|
|
1151
|
+
border-bottom:1px solid CanvasText
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
@media (prefers-reduced-transparency:reduce) {
|
|
1156
|
+
.cr-dock {
|
|
1157
|
+
background:var(--cr-surface);
|
|
1158
|
+
backdrop-filter:none
|
|
1159
|
+
}
|
|
1160
|
+
.cr-table-scroll {
|
|
1161
|
+
background:var(--cr-surface);
|
|
1162
|
+
backdrop-filter:none;
|
|
1163
|
+
-webkit-backdrop-filter:none
|
|
1164
|
+
}
|
|
1165
|
+
.cr-table-scroll::before {
|
|
1166
|
+
display:none
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
}
|