@fusion.dev/helix-styles 0.236.0 → 0.237.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/dist/base.css +333 -61
- package/dist/elements.css +16 -4
- package/dist/primitives.css +90 -24
- package/dist/tokens.css +265 -52
- package/dist/tokens.json +177 -46
- package/package.json +1 -1
package/dist/base.css
CHANGED
|
@@ -30,6 +30,7 @@ body {
|
|
|
30
30
|
line-height: var(--helix-leading-heading);
|
|
31
31
|
}
|
|
32
32
|
:where([data-prose] h1) {
|
|
33
|
+
font-family: var(--helix-font-display);
|
|
33
34
|
font-size: var(--helix-text-3xl);
|
|
34
35
|
}
|
|
35
36
|
:where([data-prose] h2) {
|
|
@@ -40,12 +41,13 @@ body {
|
|
|
40
41
|
}
|
|
41
42
|
:where([data-prose] h4) {
|
|
42
43
|
font-size: var(--helix-text-lg);
|
|
44
|
+
letter-spacing: var(--helix-tracking-normal);
|
|
43
45
|
}
|
|
44
|
-
:where([data-prose] h5) {
|
|
46
|
+
:where([data-prose] h5, [data-prose] h6) {
|
|
45
47
|
font-size: var(--helix-text-md);
|
|
46
|
-
|
|
47
|
-
:
|
|
48
|
-
|
|
48
|
+
font-weight: var(--helix-weight-medium);
|
|
49
|
+
letter-spacing: var(--helix-tracking-normal);
|
|
50
|
+
line-height: var(--helix-leading-normal);
|
|
49
51
|
}
|
|
50
52
|
:where(p, figure, blockquote, dl, dd) {
|
|
51
53
|
margin: 0;
|
|
@@ -77,7 +79,7 @@ helix-card > [slot="media"] {
|
|
|
77
79
|
color: var(--helix-color-primary);
|
|
78
80
|
text-decoration: underline;
|
|
79
81
|
text-decoration-color: color-mix(in oklab, currentColor 35%, transparent);
|
|
80
|
-
text-decoration-thickness:
|
|
82
|
+
text-decoration-thickness: var(--helix-border-thin);
|
|
81
83
|
text-underline-offset: 0.25em;
|
|
82
84
|
transition:
|
|
83
85
|
color var(--helix-duration-fast) var(--helix-easing-standard),
|
|
@@ -181,7 +183,7 @@ helix-card > [slot="media"] {
|
|
|
181
183
|
}
|
|
182
184
|
[data-text="code"] {
|
|
183
185
|
font-family: var(--helix-font-mono);
|
|
184
|
-
font-size: var(--helix-text-
|
|
186
|
+
font-size: var(--helix-text-sm);
|
|
185
187
|
font-weight: var(--helix-weight-regular);
|
|
186
188
|
letter-spacing: var(--helix-tracking-normal);
|
|
187
189
|
line-height: var(--helix-leading-normal);
|
|
@@ -247,14 +249,8 @@ helix-text[tone="warning"][emphasis="muted"] {
|
|
|
247
249
|
--_button-ink: color-mix(in oklab, var(--_button-tone) 78%, var(--helix-color-foreground));
|
|
248
250
|
--_button-on-tone: var(--helix-color-background);
|
|
249
251
|
--_button-tone: var(--helix-color-foreground);
|
|
250
|
-
--_button-tone-hover:
|
|
251
|
-
|
|
252
|
-
color-mix(in oklab, var(--helix-color-foreground) 90%, var(--helix-color-background))
|
|
253
|
-
);
|
|
254
|
-
--_button-fill-press: light-dark(
|
|
255
|
-
color-mix(in oklab, var(--helix-color-foreground) 60%, var(--helix-color-background)),
|
|
256
|
-
color-mix(in oklab, var(--helix-color-foreground) 80%, var(--helix-color-background))
|
|
257
|
-
);
|
|
252
|
+
--_button-tone-hover: var(--helix-color-neutral-surface-hover);
|
|
253
|
+
--_button-fill-press: var(--helix-color-neutral-surface-active);
|
|
258
254
|
align-items: center;
|
|
259
255
|
background-color: var(--button-background-color, transparent);
|
|
260
256
|
block-size: var(--button-size, var(--helix-size-control));
|
|
@@ -278,8 +274,16 @@ helix-text[tone="warning"][emphasis="muted"] {
|
|
|
278
274
|
color var(--helix-duration-fast) var(--helix-easing-standard);
|
|
279
275
|
white-space: nowrap;
|
|
280
276
|
}
|
|
277
|
+
:where([data-button]) {
|
|
278
|
+
position: relative;
|
|
279
|
+
}
|
|
280
|
+
[data-button]::after {
|
|
281
|
+
content: "";
|
|
282
|
+
inset: calc((var(--helix-size-target) - 100%) / -2);
|
|
283
|
+
position: absolute;
|
|
284
|
+
}
|
|
281
285
|
[data-button] helix-icon {
|
|
282
|
-
--icon-size: 1.15em;
|
|
286
|
+
--icon-size: round(down, 1.15em, 2px);
|
|
283
287
|
}
|
|
284
288
|
[data-button][data-button-tone="primary"] {
|
|
285
289
|
--_button-edge: var(--helix-color-primary);
|
|
@@ -294,7 +298,7 @@ helix-text[tone="warning"][emphasis="muted"] {
|
|
|
294
298
|
--_button-edge: var(--helix-color-accent);
|
|
295
299
|
--_button-fill: var(--helix-color-accent-surface);
|
|
296
300
|
--_button-fill-hover: var(--helix-color-accent-surface-hover);
|
|
297
|
-
--_button-fill-press:
|
|
301
|
+
--_button-fill-press: var(--helix-color-accent-surface-active);
|
|
298
302
|
--_button-on-tone: var(--helix-color-foreground-on-accent);
|
|
299
303
|
--_button-tone: var(--helix-color-accent);
|
|
300
304
|
--_button-tone-hover: var(--helix-color-accent-hover);
|
|
@@ -303,8 +307,9 @@ helix-text[tone="warning"][emphasis="muted"] {
|
|
|
303
307
|
--_button-edge: var(--helix-color-danger);
|
|
304
308
|
--_button-fill: var(--helix-color-danger-surface);
|
|
305
309
|
--_button-fill-hover: var(--helix-color-danger-surface-hover);
|
|
306
|
-
--_button-fill-press:
|
|
310
|
+
--_button-fill-press: var(--helix-color-danger-surface-active);
|
|
307
311
|
--_button-on-tone: var(--helix-color-foreground-on-status);
|
|
312
|
+
--_button-subtle-dark: 22%;
|
|
308
313
|
--_button-tone: var(--helix-color-danger);
|
|
309
314
|
--_button-tone-hover: color-mix(
|
|
310
315
|
in oklab,
|
|
@@ -316,8 +321,9 @@ helix-text[tone="warning"][emphasis="muted"] {
|
|
|
316
321
|
--_button-edge: var(--helix-color-info);
|
|
317
322
|
--_button-fill: var(--helix-color-info-surface);
|
|
318
323
|
--_button-fill-hover: var(--helix-color-info-surface-hover);
|
|
319
|
-
--_button-fill-press:
|
|
324
|
+
--_button-fill-press: var(--helix-color-info-surface-active);
|
|
320
325
|
--_button-on-tone: var(--helix-color-foreground-on-status);
|
|
326
|
+
--_button-subtle-dark: 22%;
|
|
321
327
|
--_button-tone: var(--helix-color-info);
|
|
322
328
|
--_button-tone-hover: color-mix(
|
|
323
329
|
in oklab,
|
|
@@ -329,8 +335,9 @@ helix-text[tone="warning"][emphasis="muted"] {
|
|
|
329
335
|
--_button-edge: var(--helix-color-success);
|
|
330
336
|
--_button-fill: var(--helix-color-success-surface);
|
|
331
337
|
--_button-fill-hover: var(--helix-color-success-surface-hover);
|
|
332
|
-
--_button-fill-press:
|
|
338
|
+
--_button-fill-press: var(--helix-color-success-surface-active);
|
|
333
339
|
--_button-on-tone: var(--helix-color-foreground-on-status);
|
|
340
|
+
--_button-subtle-dark: 22%;
|
|
334
341
|
--_button-tone: var(--helix-color-success);
|
|
335
342
|
--_button-tone-hover: color-mix(
|
|
336
343
|
in oklab,
|
|
@@ -340,10 +347,11 @@ helix-text[tone="warning"][emphasis="muted"] {
|
|
|
340
347
|
}
|
|
341
348
|
[data-button][data-button-tone="warning"] {
|
|
342
349
|
--_button-edge: var(--helix-color-warning);
|
|
343
|
-
--_button-fill: var(--helix-color-warning-
|
|
344
|
-
--_button-fill-hover: var(--helix-color-warning-
|
|
345
|
-
--_button-fill-press: oklch(from var(--helix-color-warning-
|
|
346
|
-
--_button-on-tone: var(--helix-color-
|
|
350
|
+
--_button-fill: var(--helix-color-warning-solid);
|
|
351
|
+
--_button-fill-hover: oklch(from var(--helix-color-warning-solid) calc(l - 0.03) c h);
|
|
352
|
+
--_button-fill-press: oklch(from var(--helix-color-warning-solid) calc(l - 0.06) c h);
|
|
353
|
+
--_button-on-tone: var(--helix-color-background);
|
|
354
|
+
--_button-subtle-dark: 22%;
|
|
347
355
|
--_button-tone: var(--helix-color-warning);
|
|
348
356
|
--_button-tone-hover: color-mix(
|
|
349
357
|
in oklab,
|
|
@@ -361,7 +369,10 @@ helix-text[tone="warning"][emphasis="muted"] {
|
|
|
361
369
|
[data-button]:not(:disabled):active {
|
|
362
370
|
background-color: var(
|
|
363
371
|
--button-background-color,
|
|
364
|
-
|
|
372
|
+
light-dark(
|
|
373
|
+
color-mix(in oklab, var(--_button-tone) 16%, transparent),
|
|
374
|
+
color-mix(in oklab, var(--_button-tone) 20%, transparent)
|
|
375
|
+
)
|
|
365
376
|
);
|
|
366
377
|
}
|
|
367
378
|
[data-button][data-button-width="full"] {
|
|
@@ -384,7 +395,10 @@ helix-text[tone="warning"][emphasis="muted"] {
|
|
|
384
395
|
[data-button="subtle"] {
|
|
385
396
|
background-color: var(
|
|
386
397
|
--button-background-color,
|
|
387
|
-
|
|
398
|
+
light-dark(
|
|
399
|
+
color-mix(in oklab, var(--_button-tone) 14%, transparent),
|
|
400
|
+
color-mix(in oklab, var(--_button-tone) var(--_button-subtle-dark, 14%), transparent)
|
|
401
|
+
)
|
|
388
402
|
);
|
|
389
403
|
border-color: transparent;
|
|
390
404
|
color: var(--button-foreground-color, var(--_button-ink));
|
|
@@ -392,7 +406,17 @@ helix-text[tone="warning"][emphasis="muted"] {
|
|
|
392
406
|
[data-button="subtle"]:not(:disabled):hover {
|
|
393
407
|
background-color: var(
|
|
394
408
|
--button-background-color-hover,
|
|
395
|
-
var(
|
|
409
|
+
var(
|
|
410
|
+
--button-background-color,
|
|
411
|
+
light-dark(
|
|
412
|
+
color-mix(in oklab, var(--_button-tone) 22%, transparent),
|
|
413
|
+
color-mix(
|
|
414
|
+
in oklab,
|
|
415
|
+
var(--_button-tone) calc(var(--_button-subtle-dark, 14%) + 8%),
|
|
416
|
+
transparent
|
|
417
|
+
)
|
|
418
|
+
)
|
|
419
|
+
)
|
|
396
420
|
);
|
|
397
421
|
border-color: transparent;
|
|
398
422
|
}
|
|
@@ -450,7 +474,13 @@ helix-button-group[orientation="vertical"]:not([layout="spaced"]) > button:not(:
|
|
|
450
474
|
[data-button="ghost"]:not(:disabled):hover {
|
|
451
475
|
background-color: var(
|
|
452
476
|
--button-background-color-hover,
|
|
453
|
-
var(
|
|
477
|
+
var(
|
|
478
|
+
--button-background-color,
|
|
479
|
+
light-dark(
|
|
480
|
+
color-mix(in oklab, var(--_button-tone) 8%, transparent),
|
|
481
|
+
color-mix(in oklab, var(--_button-tone) 12%, transparent)
|
|
482
|
+
)
|
|
483
|
+
)
|
|
454
484
|
);
|
|
455
485
|
border-color: transparent;
|
|
456
486
|
color: var(--button-foreground-color, var(--_button-ink));
|
|
@@ -462,39 +492,175 @@ helix-button-group[orientation="vertical"]:not([layout="spaced"]) > button:not(:
|
|
|
462
492
|
[data-button="subtle"]:not(:disabled):active {
|
|
463
493
|
background-color: var(
|
|
464
494
|
--button-background-color,
|
|
465
|
-
|
|
495
|
+
light-dark(
|
|
496
|
+
color-mix(in oklab, var(--_button-tone) 30%, transparent),
|
|
497
|
+
color-mix(
|
|
498
|
+
in oklab,
|
|
499
|
+
var(--_button-tone) calc(var(--_button-subtle-dark, 14%) + 16%),
|
|
500
|
+
transparent
|
|
501
|
+
)
|
|
502
|
+
)
|
|
466
503
|
);
|
|
467
504
|
}
|
|
468
505
|
[data-button="ghost"]:not(:disabled):active {
|
|
469
506
|
background-color: var(
|
|
470
507
|
--button-background-color,
|
|
471
|
-
|
|
508
|
+
light-dark(
|
|
509
|
+
color-mix(in oklab, var(--_button-tone) 16%, transparent),
|
|
510
|
+
color-mix(in oklab, var(--_button-tone) 20%, transparent)
|
|
511
|
+
)
|
|
472
512
|
);
|
|
473
513
|
}
|
|
514
|
+
@media (forced-colors: active) {[data-button="solid"],
|
|
515
|
+
[data-button="solid"]:not(:disabled):active {
|
|
516
|
+
forced-color-adjust: none;
|
|
517
|
+
background-color: ButtonText;
|
|
518
|
+
border-color: ButtonText;
|
|
519
|
+
color: ButtonFace;
|
|
520
|
+
}
|
|
521
|
+
@media (hover: hover) {
|
|
522
|
+
[data-button="solid"]:not(:disabled):hover {
|
|
523
|
+
forced-color-adjust: none;
|
|
524
|
+
background-color: ButtonText;
|
|
525
|
+
border-color: ButtonText;
|
|
526
|
+
color: ButtonFace;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
[data-button][aria-disabled="true"] {
|
|
530
|
+
border-color: GrayText;
|
|
531
|
+
color: GrayText;
|
|
532
|
+
opacity: 1;
|
|
533
|
+
}
|
|
534
|
+
[data-button="solid"]:disabled,
|
|
535
|
+
[data-button="solid"][aria-disabled="true"] {
|
|
536
|
+
background-color: GrayText;
|
|
537
|
+
border-color: GrayText;
|
|
538
|
+
color: ButtonFace;
|
|
539
|
+
}[data-button="ghost"] {
|
|
540
|
+
border-color: Canvas;
|
|
541
|
+
}
|
|
542
|
+
@media (hover: hover) {
|
|
543
|
+
[data-button="ghost"]:not(:disabled):hover {
|
|
544
|
+
border-color: Canvas;
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
}
|
|
474
548
|
[data-button][aria-disabled="true"] {
|
|
475
549
|
cursor: not-allowed;
|
|
476
550
|
opacity: var(--helix-opacity-disabled);
|
|
477
551
|
}
|
|
478
552
|
[data-density] {
|
|
479
553
|
--helix-size-control-tight: round(calc(var(--helix-size-control) * 0.8), 1px);
|
|
480
|
-
--helix-size-control-loose: calc(var(--helix-size-control) * 1.2);
|
|
481
|
-
--helix-size-icon-tight: calc(var(--helix-size-icon) * 0.8);
|
|
482
|
-
--helix-size-icon-loose: calc(var(--helix-size-icon) * 1.2);
|
|
483
|
-
--helix-size-checkbox-tight: calc(var(--helix-size-checkbox) * 0.8);
|
|
484
|
-
--helix-size-checkbox-loose: calc(var(--helix-size-checkbox) * 1.2);
|
|
554
|
+
--helix-size-control-loose: round(calc(var(--helix-size-control) * 1.2), 1px);
|
|
555
|
+
--helix-size-icon-tight: round(calc(var(--helix-size-icon) * 0.8), 2px);
|
|
556
|
+
--helix-size-icon-loose: round(calc(var(--helix-size-icon) * 1.2), 2px);
|
|
557
|
+
--helix-size-checkbox-tight: round(calc(var(--helix-size-checkbox) * 0.8), 1px);
|
|
558
|
+
--helix-size-checkbox-loose: round(calc(var(--helix-size-checkbox) * 1.2), 1px);
|
|
485
559
|
}
|
|
486
560
|
[data-density] {
|
|
487
|
-
--
|
|
488
|
-
--
|
|
489
|
-
--helix-text-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
561
|
+
--_helix-density-down: min(calc((var(--helix-density, 1) - 1) * 5), 0);
|
|
562
|
+
--_helix-density-up: max(calc((var(--helix-density, 1) - 1) * 5), 0);
|
|
563
|
+
--helix-text-control: round(
|
|
564
|
+
calc(
|
|
565
|
+
var(--helix-text-control-md) +
|
|
566
|
+
var(--_helix-density-down) *
|
|
567
|
+
(var(--helix-text-control-md) - var(--helix-text-control-sm)) +
|
|
568
|
+
var(--_helix-density-up) *
|
|
569
|
+
(var(--helix-text-control-lg) - var(--helix-text-control-md))
|
|
570
|
+
),
|
|
571
|
+
1px
|
|
572
|
+
);
|
|
573
|
+
--helix-space-control: round(
|
|
574
|
+
calc(
|
|
575
|
+
var(--helix-space-md) +
|
|
576
|
+
var(--_helix-density-down) *
|
|
577
|
+
(var(--helix-space-md) - var(--helix-space-sm)) +
|
|
578
|
+
var(--_helix-density-up) *
|
|
579
|
+
(var(--helix-space-lg) - var(--helix-space-md))
|
|
580
|
+
),
|
|
581
|
+
1px
|
|
582
|
+
);
|
|
583
|
+
--helix-text-field: round(
|
|
584
|
+
calc(
|
|
585
|
+
var(--helix-text-md) +
|
|
586
|
+
var(--_helix-density-down) *
|
|
587
|
+
(var(--helix-text-md) - var(--helix-text-sm)) +
|
|
588
|
+
var(--_helix-density-up) *
|
|
589
|
+
(var(--helix-text-md) - var(--helix-text-md))
|
|
590
|
+
),
|
|
591
|
+
1px
|
|
592
|
+
);
|
|
593
|
+
--helix-text-field-label: round(
|
|
594
|
+
calc(
|
|
595
|
+
var(--helix-text-sm) +
|
|
596
|
+
var(--_helix-density-down) *
|
|
597
|
+
(var(--helix-text-sm) - var(--helix-text-xs)) +
|
|
598
|
+
var(--_helix-density-up) *
|
|
599
|
+
(var(--helix-text-sm) - var(--helix-text-sm))
|
|
600
|
+
),
|
|
601
|
+
1px
|
|
602
|
+
);
|
|
603
|
+
--helix-space-field: round(
|
|
604
|
+
calc(
|
|
605
|
+
var(--helix-space-sm) +
|
|
606
|
+
var(--_helix-density-down) *
|
|
607
|
+
(var(--helix-space-sm) - var(--helix-space-xs)) +
|
|
608
|
+
var(--_helix-density-up) *
|
|
609
|
+
(var(--helix-space-md) - var(--helix-space-sm))
|
|
610
|
+
),
|
|
611
|
+
1px
|
|
612
|
+
);
|
|
613
|
+
--helix-space-row-bleed: round(calc(var(--helix-space-xs) * var(--helix-density, 1)), 1px);
|
|
614
|
+
--helix-size-checkbox: round(
|
|
615
|
+
calc(
|
|
616
|
+
var(--helix-size-checkbox-md) +
|
|
617
|
+
var(--_helix-density-down) *
|
|
618
|
+
(var(--helix-size-checkbox-md) - var(--helix-size-checkbox-sm)) +
|
|
619
|
+
var(--_helix-density-up) *
|
|
620
|
+
(var(--helix-size-checkbox-lg) - var(--helix-size-checkbox-md))
|
|
621
|
+
),
|
|
622
|
+
1px
|
|
623
|
+
);
|
|
624
|
+
--helix-size-icon: round(
|
|
625
|
+
calc(
|
|
626
|
+
var(--helix-size-icon-md) +
|
|
627
|
+
var(--_helix-density-down) *
|
|
628
|
+
(var(--helix-size-icon-md) - var(--helix-size-icon-sm)) +
|
|
629
|
+
var(--_helix-density-up) *
|
|
630
|
+
(var(--helix-size-icon-lg) - var(--helix-size-icon-md))
|
|
631
|
+
),
|
|
632
|
+
2px
|
|
633
|
+
);
|
|
634
|
+
--helix-size-control: round(
|
|
635
|
+
calc(
|
|
636
|
+
var(--helix-size-control-md) +
|
|
637
|
+
var(--_helix-density-down) *
|
|
638
|
+
(var(--helix-size-control-md) - var(--helix-size-control-sm)) +
|
|
639
|
+
var(--_helix-density-up) *
|
|
640
|
+
(var(--helix-size-control-lg) - var(--helix-size-control-md))
|
|
641
|
+
),
|
|
642
|
+
1px
|
|
643
|
+
);
|
|
644
|
+
--helix-size-switch: round(
|
|
645
|
+
calc(
|
|
646
|
+
var(--helix-size-switch-md) +
|
|
647
|
+
var(--_helix-density-down) *
|
|
648
|
+
(var(--helix-size-switch-md) - var(--helix-size-switch-sm)) +
|
|
649
|
+
var(--_helix-density-up) *
|
|
650
|
+
(var(--helix-size-switch-lg) - var(--helix-size-switch-md))
|
|
651
|
+
),
|
|
652
|
+
1px
|
|
653
|
+
);
|
|
654
|
+
--helix-size-tag: round(
|
|
655
|
+
calc(
|
|
656
|
+
var(--helix-size-tag-md) +
|
|
657
|
+
var(--_helix-density-down) *
|
|
658
|
+
(var(--helix-size-tag-md) - var(--helix-size-tag-sm)) +
|
|
659
|
+
var(--_helix-density-up) *
|
|
660
|
+
(var(--helix-size-tag-lg) - var(--helix-size-tag-md))
|
|
661
|
+
),
|
|
662
|
+
1px
|
|
663
|
+
);
|
|
498
664
|
}
|
|
499
665
|
[data-density="sm"] {
|
|
500
666
|
--helix-text-control: var(--helix-text-control-sm);
|
|
@@ -535,6 +701,14 @@ helix-button-group[orientation="vertical"]:not([layout="spaced"]) > button:not(:
|
|
|
535
701
|
--helix-size-switch: var(--helix-size-switch-lg);
|
|
536
702
|
--helix-size-tag: var(--helix-size-tag-lg);
|
|
537
703
|
}
|
|
704
|
+
@media (pointer: coarse) {
|
|
705
|
+
[data-density="sm"] {
|
|
706
|
+
--helix-size-icon-tight: max(
|
|
707
|
+
round(calc(var(--helix-size-icon) * 0.8), 2px),
|
|
708
|
+
var(--helix-size-icon-sm)
|
|
709
|
+
);
|
|
710
|
+
}
|
|
711
|
+
}
|
|
538
712
|
helix-toggle::part(item) {
|
|
539
713
|
align-items: center;
|
|
540
714
|
background: none;
|
|
@@ -559,6 +733,11 @@ helix-toggle::part(item) {
|
|
|
559
733
|
background-color var(--helix-duration-fast) var(--helix-easing-standard),
|
|
560
734
|
color var(--helix-duration-fast) var(--helix-easing-standard);
|
|
561
735
|
white-space: nowrap;
|
|
736
|
+
}
|
|
737
|
+
@media (pointer: coarse) {
|
|
738
|
+
helix-toggle::part(item) {
|
|
739
|
+
overflow: visible;
|
|
740
|
+
}
|
|
562
741
|
}@media (hover: hover) {
|
|
563
742
|
helix-toggle:not([disabled])::part(item):hover {
|
|
564
743
|
background-color: color-mix(in oklab, var(--helix-color-foreground) 5%, transparent);
|
|
@@ -614,6 +793,19 @@ helix-toggle[disabled]::part(item) {
|
|
|
614
793
|
:where(helix-navigation[orientation="vertical"]) :where([data-navigation-item], a) {
|
|
615
794
|
justify-content: start;
|
|
616
795
|
}
|
|
796
|
+
:where(helix-navigation[orientation="vertical"]) :where([data-navigation-item], a) {
|
|
797
|
+
align-content: center;
|
|
798
|
+
display: block;
|
|
799
|
+
min-inline-size: 0;
|
|
800
|
+
overflow: hidden;
|
|
801
|
+
text-overflow: ellipsis;
|
|
802
|
+
}
|
|
803
|
+
:where(helix-navigation[orientation="vertical"])
|
|
804
|
+
:where([data-navigation-item], a)
|
|
805
|
+
> :where(helix-icon) {
|
|
806
|
+
margin-inline-end: var(--helix-space-xs);
|
|
807
|
+
vertical-align: round(calc(0.5cap - var(--icon-size, var(--helix-size-icon)) / 2), 1px);
|
|
808
|
+
}
|
|
617
809
|
:where(helix-navigation:not([orientation="vertical"])) :where([data-navigation-item], a) {
|
|
618
810
|
position: relative;
|
|
619
811
|
}
|
|
@@ -630,12 +822,6 @@ helix-toggle[disabled]::part(item) {
|
|
|
630
822
|
}
|
|
631
823
|
:where(helix-navigation[marker="segmented"]) :where([data-navigation-item], a) {
|
|
632
824
|
min-block-size: 0;
|
|
633
|
-
}
|
|
634
|
-
:where(helix-navigation[orientation="vertical"]) :where(li) > :where([data-navigation-item], a) {
|
|
635
|
-
display: flex;
|
|
636
|
-
}
|
|
637
|
-
:where([data-navigation-item], helix-navigation a):active {
|
|
638
|
-
background-color: var(--helix-color-press);
|
|
639
825
|
}@media (hover: hover) {
|
|
640
826
|
:where([data-navigation-item], helix-navigation a):hover {
|
|
641
827
|
background-color: var(
|
|
@@ -645,6 +831,9 @@ helix-toggle[disabled]::part(item) {
|
|
|
645
831
|
color: var(--navigation-item-hover-color, var(--helix-color-foreground));
|
|
646
832
|
}
|
|
647
833
|
}
|
|
834
|
+
:where([data-navigation-item], helix-navigation a):active {
|
|
835
|
+
background-color: var(--helix-color-press);
|
|
836
|
+
}
|
|
648
837
|
:where(helix-outline) :where(ul, ol) {
|
|
649
838
|
list-style: none;
|
|
650
839
|
margin: 0;
|
|
@@ -828,7 +1017,7 @@ helix-toggle[disabled]::part(item) {
|
|
|
828
1017
|
}
|
|
829
1018
|
[data-material="glass"] {
|
|
830
1019
|
backdrop-filter: var(--helix-material-backdrop);
|
|
831
|
-
background-color: var(--helix-material-
|
|
1020
|
+
background-color: var(--helix-material-panel);
|
|
832
1021
|
border: var(--helix-border-thin) solid var(--helix-material-border);
|
|
833
1022
|
}
|
|
834
1023
|
[data-material="frosted"] {
|
|
@@ -842,13 +1031,13 @@ helix-toggle[disabled]::part(item) {
|
|
|
842
1031
|
border-color: transparent;
|
|
843
1032
|
}
|
|
844
1033
|
[data-separation="elevated"] {
|
|
845
|
-
background-color: var(--helix-color-surface);
|
|
1034
|
+
background-color: light-dark(var(--helix-color-surface), var(--helix-color-surface-overlay));
|
|
846
1035
|
border-color: transparent;
|
|
847
1036
|
border-radius: var(--helix-radii-sm);
|
|
848
1037
|
box-shadow: var(--helix-shadow-md);
|
|
849
1038
|
}
|
|
850
1039
|
[data-separation="filled"] {
|
|
851
|
-
background-color: var(--helix-color-surface);
|
|
1040
|
+
background-color: var(--helix-color-surface-filled);
|
|
852
1041
|
border-radius: var(--helix-radii-sm);
|
|
853
1042
|
color: var(--helix-color-foreground);
|
|
854
1043
|
}
|
|
@@ -861,6 +1050,37 @@ helix-toggle[disabled]::part(item) {
|
|
|
861
1050
|
border-color: transparent;
|
|
862
1051
|
box-shadow: none;
|
|
863
1052
|
}
|
|
1053
|
+
[data-surface="sunken"] {
|
|
1054
|
+
background-color: var(--helix-color-surface-sunken);
|
|
1055
|
+
--helix-color-border: light-dark(
|
|
1056
|
+
color-mix(in oklab, var(--helix-color-foreground) 7%, var(--helix-color-surface-sunken)),
|
|
1057
|
+
color-mix(in oklab, var(--helix-color-foreground) 12%, var(--helix-color-surface-sunken))
|
|
1058
|
+
);
|
|
1059
|
+
--_helix-sunken-surface: var(--helix-color-surface);
|
|
1060
|
+
--_helix-sunken-raised: var(--helix-color-surface-raised);
|
|
1061
|
+
--_helix-sunken-overlay: var(--helix-color-surface-overlay);
|
|
1062
|
+
}
|
|
1063
|
+
:where([data-surface="sunken"] > *) {
|
|
1064
|
+
--helix-color-surface: light-dark(var(--_helix-sunken-surface), var(--_helix-sunken-raised));
|
|
1065
|
+
--helix-color-surface-raised: light-dark(
|
|
1066
|
+
var(--_helix-sunken-raised),
|
|
1067
|
+
color-mix(in oklab, var(--helix-color-foreground) 5%, var(--_helix-sunken-overlay))
|
|
1068
|
+
);
|
|
1069
|
+
--helix-color-surface-overlay: light-dark(
|
|
1070
|
+
var(--_helix-sunken-overlay),
|
|
1071
|
+
color-mix(in oklab, var(--helix-color-foreground) 8%, var(--_helix-sunken-overlay))
|
|
1072
|
+
);
|
|
1073
|
+
--helix-color-surface-filled: light-dark(
|
|
1074
|
+
color-mix(in oklab, var(--helix-color-foreground) 5%, transparent),
|
|
1075
|
+
color-mix(in oklab, var(--helix-color-foreground) 6%, transparent)
|
|
1076
|
+
);
|
|
1077
|
+
}
|
|
1078
|
+
:where(helix-dialog, helix-drawer, helix-popover) {
|
|
1079
|
+
--helix-color-surface-filled: light-dark(
|
|
1080
|
+
color-mix(in oklab, var(--helix-color-foreground) 5%, transparent),
|
|
1081
|
+
color-mix(in oklab, var(--helix-color-foreground) 6%, transparent)
|
|
1082
|
+
);
|
|
1083
|
+
}
|
|
864
1084
|
:where([data-card]) {
|
|
865
1085
|
border-radius: var(--card-radius, var(--helix-radii-md));
|
|
866
1086
|
color: inherit;
|
|
@@ -871,8 +1091,11 @@ helix-toggle[disabled]::part(item) {
|
|
|
871
1091
|
transition: outline-color var(--helix-duration-fast) var(--helix-easing-standard);
|
|
872
1092
|
}@media (hover: hover) {
|
|
873
1093
|
:where([data-card]):hover {
|
|
874
|
-
--card-border-color: var(--helix-color-
|
|
875
|
-
|
|
1094
|
+
--card-border-color: var(--helix-color-border-hover);
|
|
1095
|
+
}
|
|
1096
|
+
}@media (hover: hover) {
|
|
1097
|
+
:where([data-card]:not(:has(> helix-card))):hover {
|
|
1098
|
+
outline-color: var(--helix-color-border-hover);
|
|
876
1099
|
}
|
|
877
1100
|
}
|
|
878
1101
|
:where([data-card])[aria-current] {
|
|
@@ -888,6 +1111,27 @@ helix-toast:not([data-color-mode]) {
|
|
|
888
1111
|
:where([data-prose] blockquote, [data-prose] helix-callout) {
|
|
889
1112
|
margin-block: var(--helix-space-none) var(--helix-space-sm);
|
|
890
1113
|
}
|
|
1114
|
+
:where([data-prose] p, [data-prose] ul, [data-prose] ol, [data-prose] blockquote) {
|
|
1115
|
+
max-inline-size: 50ch;
|
|
1116
|
+
}
|
|
1117
|
+
:where([data-prose="reading"]) {
|
|
1118
|
+
font-size: var(--helix-text-lg);
|
|
1119
|
+
line-height: var(--helix-leading-normal);
|
|
1120
|
+
}
|
|
1121
|
+
:where([data-prose="reading"])
|
|
1122
|
+
:where(p, ul, ol, pre, table, blockquote, helix-code-block, helix-table, helix-callout) {
|
|
1123
|
+
margin-block: var(--helix-space-none) var(--helix-space-md);
|
|
1124
|
+
}
|
|
1125
|
+
:where([data-prose="reading"]) :where(p, ul, ol, blockquote) {
|
|
1126
|
+
max-inline-size: 34em;
|
|
1127
|
+
}
|
|
1128
|
+
:where([data-prose="reading"]) :where(table, helix-table) {
|
|
1129
|
+
--helix-text-control: calc((var(--helix-text-md) + var(--helix-text-lg)) / 2);
|
|
1130
|
+
font-size: var(--helix-text-control);
|
|
1131
|
+
}
|
|
1132
|
+
:where([data-prose="reading"]) :where(h5, h6) {
|
|
1133
|
+
font-size: 1em;
|
|
1134
|
+
}
|
|
891
1135
|
:where([data-prose] > :last-child),
|
|
892
1136
|
:where([data-prose] :is(blockquote, helix-callout, li, td, th) > :last-child) {
|
|
893
1137
|
margin-block-end: var(--helix-space-none);
|
|
@@ -944,6 +1188,9 @@ helix-toast:not([data-color-mode]) {
|
|
|
944
1188
|
max-inline-size: 100%;
|
|
945
1189
|
overflow-x: auto;
|
|
946
1190
|
}
|
|
1191
|
+
:where([data-prose="reading"] [data-table]:not(:last-child)) {
|
|
1192
|
+
margin-block-end: var(--helix-space-md);
|
|
1193
|
+
}
|
|
947
1194
|
:where([data-prose] [data-table] > table) {
|
|
948
1195
|
display: table;
|
|
949
1196
|
inline-size: 100%;
|
|
@@ -989,6 +1236,14 @@ helix-toast:not([data-color-mode]) {
|
|
|
989
1236
|
margin-inline: calc(var(--helix-space-md) * -1) var(--helix-space-2xs);
|
|
990
1237
|
vertical-align: middle;
|
|
991
1238
|
}
|
|
1239
|
+
:where([data-prose] code, [data-prose] samp, [data-prose] pre) {
|
|
1240
|
+
font-size: calc(var(--helix-text-sm) / var(--helix-text-md) * 1em);
|
|
1241
|
+
font-variant-ligatures: none;
|
|
1242
|
+
}
|
|
1243
|
+
:where([data-prose]) :where(:not(pre) > code) {
|
|
1244
|
+
display: inline-block;
|
|
1245
|
+
max-inline-size: 100%;
|
|
1246
|
+
}
|
|
992
1247
|
:where([data-prose] pre) {
|
|
993
1248
|
background-color: var(--helix-color-surface-sunken);
|
|
994
1249
|
border-radius: var(--helix-radii-sm);
|
|
@@ -1000,11 +1255,26 @@ helix-toast:not([data-color-mode]) {
|
|
|
1000
1255
|
font-size: inherit;
|
|
1001
1256
|
padding: var(--helix-space-none);
|
|
1002
1257
|
}
|
|
1258
|
+
:where([data-prose="reading"]) {
|
|
1259
|
+
--code-block-font-size: calc(
|
|
1260
|
+
var(--helix-text-sm) /
|
|
1261
|
+
var(--helix-text-md) *
|
|
1262
|
+
(var(--helix-text-md) + var(--helix-text-lg)) /
|
|
1263
|
+
2
|
|
1264
|
+
);
|
|
1265
|
+
}
|
|
1266
|
+
:where([data-prose="reading"]) :where(p, li, blockquote, table, helix-table) {
|
|
1267
|
+
--code-size: var(--code-block-font-size);
|
|
1268
|
+
}
|
|
1269
|
+
:where([data-prose="reading"]) :where(p, li, blockquote, table) :where(code, samp),
|
|
1270
|
+
:where([data-prose="reading"]) :where(pre) {
|
|
1271
|
+
font-size: var(--code-block-font-size);
|
|
1272
|
+
}
|
|
1003
1273
|
:where(helix-chat-message[data-prose], helix-chat-message [data-prose]) :where(table, pre),
|
|
1004
1274
|
:where(helix-chat-message) :where(helix-table) {
|
|
1005
1275
|
background-color: var(--helix-color-surface-sunken);
|
|
1006
1276
|
border: var(--helix-border-thin) solid var(--helix-color-border);
|
|
1007
|
-
border-radius: var(--helix-radii-
|
|
1277
|
+
border-radius: var(--helix-radii-sm);
|
|
1008
1278
|
}
|
|
1009
1279
|
:where(helix-chat-message[data-prose], helix-chat-message [data-prose]) :where(table),
|
|
1010
1280
|
:where(helix-chat-message) :where(helix-table) {
|
|
@@ -1137,10 +1407,12 @@ helix-toast:not([data-color-mode]) {
|
|
|
1137
1407
|
}
|
|
1138
1408
|
}
|
|
1139
1409
|
::highlight(helix-filter-match) {
|
|
1140
|
-
background-color:
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1410
|
+
background-color: transparent;
|
|
1411
|
+
color: var(--helix-color-foreground);
|
|
1412
|
+
text-decoration-color: var(--helix-color-primary);
|
|
1413
|
+
text-decoration-line: underline;
|
|
1414
|
+
text-decoration-thickness: var(--helix-border-thick);
|
|
1415
|
+
text-underline-offset: 0.2em;
|
|
1144
1416
|
}
|
|
1145
1417
|
::highlight(helix-find-match) {
|
|
1146
1418
|
background-color: light-dark(
|
package/dist/elements.css
CHANGED
|
@@ -425,7 +425,11 @@ helix-data-table:not(:defined):is([selectable], [reorderable-rows]:not([child-fi
|
|
|
425
425
|
}
|
|
426
426
|
helix-data-table:not(:defined)[selectable][reorderable-rows]:not([child-field]) {
|
|
427
427
|
--_data-table-lead: calc(1em + 2 * var(--data-table-padding-inline, var(--helix-space-sm)))
|
|
428
|
-
calc(
|
|
428
|
+
calc(
|
|
429
|
+
var(--checkbox-size, var(--helix-size-checkbox)) +
|
|
430
|
+
var(--data-table-padding-inline, var(--helix-space-none)) +
|
|
431
|
+
var(--data-table-padding-inline, var(--helix-space-md))
|
|
432
|
+
);
|
|
429
433
|
}
|
|
430
434
|
helix-data-table:not(:defined):has(> helix-table-row):is([selectable], [reorderable-rows]:not([child-field]))::before,
|
|
431
435
|
helix-data-table:is([selectable], [reorderable-rows]:not([child-field])) > helix-table-row:not([hidden])::before {
|
|
@@ -441,12 +445,15 @@ helix-data-table:where([selectable], [reorderable-rows]:not([child-field])) > he
|
|
|
441
445
|
block-size: 1em;
|
|
442
446
|
box-sizing: content-box;
|
|
443
447
|
inline-size: 1em;
|
|
444
|
-
padding-block: var(--data-table-padding-block, var(--helix-space-
|
|
448
|
+
padding-block: var(--data-table-padding-block, calc(var(--helix-space-control) * 0.5));
|
|
445
449
|
padding-inline: var(--data-table-padding-inline, var(--helix-space-sm));
|
|
446
450
|
}
|
|
447
451
|
helix-data-table[selectable] > helix-table-row:not([hidden])::before {
|
|
448
452
|
block-size: var(--checkbox-size, var(--helix-size-checkbox));
|
|
449
453
|
inline-size: var(--checkbox-size, var(--helix-size-checkbox));
|
|
454
|
+
padding-block: var(--helix-space-none);
|
|
455
|
+
padding-inline-end: var(--data-table-padding-inline, var(--helix-space-md));
|
|
456
|
+
padding-inline-start: var(--data-table-padding-inline, var(--helix-space-none));
|
|
450
457
|
}
|
|
451
458
|
helix-data-table:not(:defined):has(> helix-table-row)[selectable][reorderable-rows]:not([child-field])::before,
|
|
452
459
|
helix-data-table[selectable][reorderable-rows]:not([child-field]) > helix-table-row:not([hidden])::before {
|
|
@@ -527,6 +534,10 @@ helix-table:not(:defined) > helix-table-column:last-of-type,
|
|
|
527
534
|
helix-table:not(:defined) > helix-table-row > helix-table-cell:last-child {
|
|
528
535
|
padding-inline-end: var(--helix-space-none);
|
|
529
536
|
}
|
|
537
|
+
helix-table:not(:defined) > helix-table-row:last-of-type > helix-table-cell,
|
|
538
|
+
helix-table:not(:defined) > helix-table-row:last-of-type::before {
|
|
539
|
+
border-block-end-color: transparent;
|
|
540
|
+
}
|
|
530
541
|
helix-table:not(:defined) > helix-table-row > helix-table-cell[header] {
|
|
531
542
|
font-weight: var(--helix-weight-medium);
|
|
532
543
|
}
|
|
@@ -584,16 +595,17 @@ helix-data-table > helix-table-row > helix-table-cell {
|
|
|
584
595
|
border-block-end: var(--helix-border-thin) solid
|
|
585
596
|
var(--data-table-rule-color, var(--helix-color-border));
|
|
586
597
|
box-sizing: border-box;
|
|
598
|
+
align-content: center;
|
|
587
599
|
color: var(--data-table-color, var(--helix-color-foreground));
|
|
588
600
|
display: block;
|
|
589
601
|
font-family: var(--helix-font-sans);
|
|
590
602
|
font-size: var(--data-table-text, var(--helix-text-control));
|
|
591
603
|
font-variant-numeric: tabular-nums;
|
|
592
604
|
font-weight: inherit;
|
|
593
|
-
min-block-size:
|
|
605
|
+
min-block-size: var(--helix-size-control);
|
|
594
606
|
min-inline-size: auto;
|
|
595
607
|
overflow-wrap: normal;
|
|
596
|
-
padding-block: var(--data-table-padding-block, var(--helix-space-
|
|
608
|
+
padding-block: var(--data-table-padding-block, calc(var(--helix-space-control) * 0.5));
|
|
597
609
|
padding-inline: var(--data-table-padding-inline, var(--helix-space-none) var(--helix-space-md));
|
|
598
610
|
}
|
|
599
611
|
helix-data-table > helix-table-row > helix-table-cell:last-child {
|