@apliteni/apliteni-ui 0.160.0 → 0.162.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.
@@ -3,8 +3,18 @@
3
3
  * (sizes: xs / sm / md / lg, [icon], [disabled], [aria-busy])
4
4
  * ========================================================================== */
5
5
 
6
+ :root {
7
+ /* The md padding and edge. The button and --btn-height-md both read them. */
8
+ --btn-pad-y-md: 9px;
9
+ --btn-edge-width: 1px;
10
+ /* The outer height of an md button: one line of --text-sm, the md padding and
11
+ the edge on each side. A part that takes a button's place uses it, so the
12
+ row keeps its height. */
13
+ --btn-height-md: calc(var(--text-sm) * var(--leading-tight) + 2 * var(--btn-pad-y-md) + 2 * var(--btn-edge-width));
14
+ }
15
+
6
16
  .ui-btn {
7
- --btn-pad-y: 9px;
17
+ --btn-pad-y: var(--btn-pad-y-md);
8
18
  --btn-pad-x: 17px;
9
19
  --btn-font: var(--text-sm);
10
20
 
@@ -18,10 +28,11 @@
18
28
  line-height: var(--leading-tight);
19
29
  border-radius: var(--radius-sm);
20
30
  padding: var(--btn-pad-y) var(--btn-pad-x);
31
+ min-height: var(--btn-height-md);
21
32
  cursor: pointer;
22
33
  /* Light needs a stronger line here: --border on this fill measures 1.047:1.
23
34
  why: docs/foundations.md#elevation */
24
- border: 1px solid var(--control-edge);
35
+ border: var(--btn-edge-width) solid var(--control-edge);
25
36
  background: var(--surface); /* code-bg: inherit — control paint; the containing surface is the ground, for a chip and for a band alike. */
26
37
  color: var(--text);
27
38
  white-space: nowrap;
@@ -86,21 +97,23 @@
86
97
  }
87
98
 
88
99
  .ui-btn--danger { color: var(--text); }
89
- .ui-btn--danger:hover, .ui-btn--danger:focus-visible {
100
+ .ui-btn--danger:hover, .ui-btn--danger:focus-visible, .ui-btn--danger[data-holding] {
90
101
  color: var(--pink);
91
102
  border-color: var(--pink);
92
103
  background: color-mix(in srgb, var(--pink) 10%, transparent); /* code-bg: inherit — control paint; the containing surface is the ground, for a chip and for a band alike. */
93
104
  }
105
+ /* A pointer hold is also a hover, so the held edge outranks the accent hover edge. */
106
+ .ui-btn.ui-btn--danger[data-holding]:hover { border-color: var(--pink); }
94
107
 
95
108
  /* -- Sizes -------------------------------------------------------------- */
96
109
  /* why: docs/components.md#extra-small-buttons */
97
110
  .ui-btn--xs { --btn-pad-y: 4.5px; --btn-pad-x: 8px; --btn-font: var(--text-xs); min-width: 24px; min-height: 24px; }
98
111
  .ui-btn--xs svg { width: 13px; height: 13px; stroke-width: 2.8; }
99
- .ui-btn--sm { --btn-pad-y: 6px; --btn-pad-x: 12px; --btn-font: calc(var(--text-sm) - 0.5px); }
112
+ .ui-btn--sm { --btn-pad-y: 6px; --btn-pad-x: 12px; --btn-font: calc(var(--text-sm) - 0.5px); min-height: 0; }
100
113
  .ui-btn--lg { --btn-pad-y: 13px; --btn-pad-x: 24px; --btn-font: var(--text-md); border-radius: var(--radius-md); }
101
114
 
102
115
  /* Icon-only */
103
- .ui-btn--icon { --btn-pad-y: 9px; padding: 9px; border-radius: var(--radius-sm); }
116
+ .ui-btn--icon { --btn-pad-y: var(--btn-pad-y-md); padding: var(--btn-pad-y-md); border-radius: var(--radius-sm); }
104
117
  .ui-btn--icon.ui-btn--xs { --btn-pad-y: 4.5px; padding: 4.5px; }
105
118
  .ui-btn--icon.ui-btn--sm { --btn-pad-y: 6px; padding: 6px; }
106
119
 
@@ -258,4 +271,65 @@
258
271
  .ui-btn__dots i { animation: none; }
259
272
  }
260
273
 
274
+ /* -- Hold to confirm ---------------------------------------------------- */
275
+ /* why: docs/components.md#hold-to-confirm */
276
+ .ui-btn[data-hold] {
277
+ touch-action: none;
278
+ user-select: none;
279
+ -webkit-user-select: none;
280
+ -webkit-touch-callout: none;
281
+ }
282
+ /* The fill is the press, so the button itself does not also sink. */
283
+ .ui-btn[data-hold]:active { transform: none; }
284
+ /* A copy of the content in the filled paint, cut from the start edge by --hold. */
285
+ .ui-btn__hold-fill {
286
+ position: absolute;
287
+ inset: 0;
288
+ display: flex;
289
+ align-items: center;
290
+ justify-content: center;
291
+ gap: inherit;
292
+ padding: inherit;
293
+ border-radius: inherit;
294
+ pointer-events: none;
295
+ clip-path: inset(0 calc(100% - var(--hold, 0) * 100%) 0 0);
296
+ transition: clip-path var(--dur-med) var(--ease-out);
297
+ }
298
+ [dir="rtl"] .ui-btn__hold-fill { clip-path: inset(0 0 0 calc(100% - var(--hold, 0) * 100%)); }
299
+ /* While held, the script moves the fill each frame or each step. */
300
+ .ui-btn[data-holding] .ui-btn__hold-fill { transition: none; }
301
+ .ui-btn--primary[data-holding] {
302
+ background: color-mix(in srgb, var(--accent) 14%, var(--surface)); /* code-bg: inherit — control paint; the containing surface is the ground, for a chip and for a band alike. */
303
+ border-color: var(--accent);
304
+ color: var(--strong);
305
+ filter: none;
306
+ }
307
+ /* In light --accent is --accent-strong, so the filled primary is its resting paint. */
308
+ .ui-btn--primary .ui-btn__hold-fill {
309
+ background: var(--accent); /* code-bg: inherit — control paint; the containing surface is the ground, for a chip and for a band alike. */
310
+ color: var(--accent-contrast);
311
+ }
312
+ /* White ink falls below the text floor on the lighter dark-theme accents. */
313
+ /* Dark is also the theme with no data-theme at all. */
314
+ :where(:root:not([data-theme="light"])) .ui-btn--primary .ui-btn__hold-fill { color: var(--signal-contrast); }
315
+ /* Quiet at rest: the pink fill shows only while the reader hovers, focuses, holds or lets it drain. */
316
+ .ui-btn--danger:is(:hover, :focus-visible, [data-holding], [data-hold-drain]) .ui-btn__hold-fill {
317
+ background: var(--pink); /* code-bg: inherit — control paint; the containing surface is the ground, for a chip and for a band alike. */
318
+ color: var(--danger-contrast);
319
+ }
320
+ /* Over the button, so a row of buttons keeps its height and the button does not move. */
321
+ .ui-btn__hold-hint {
322
+ position: absolute;
323
+ bottom: calc(100% + var(--space-2));
324
+ left: 50%;
325
+ translate: -50% 0;
326
+ font-size: var(--text-sm);
327
+ font-weight: var(--weight-normal);
328
+ line-height: var(--leading-tight);
329
+ color: var(--text);
330
+ pointer-events: none;
331
+ visibility: hidden;
332
+ }
333
+ .ui-btn[data-hold-hint] .ui-btn__hold-hint { visibility: visible; }
334
+
261
335
  @keyframes ui-spin { to { transform: rotate(360deg); } }
@@ -337,37 +337,24 @@
337
337
  /* A hover table holds --space-2 inside the fill at each end, and dense and compact too. why: #773 */
338
338
  :where(.ui-table--hover:not(.ui-table--zebra)):is(.ui-table--dense, .ui-table--compact) :is(th, td):first-child { padding-left: var(--space-2); }
339
339
  :where(.ui-table--hover:not(.ui-table--zebra)):is(.ui-table--dense, .ui-table--compact) :is(th, td):last-child { padding-right: var(--space-2); }
340
- /* Columns past the box's edge, said in paint. Two shades, one per side, under two
341
- cover layers that ride the content: `local` moves a cover with the scroll, so
342
- reaching an end slides that cover over its shade. A cover is solid for its first
343
- half, so at 24px it hides a 12px shade outright — which is why the two sizes are
344
- not one. why: guidelines/dense-tables.md */
340
+ /* A wide table scrolls sideways in its frame. The frame paints no shade at its edges. #770 */
345
341
  .ui-table-scroll {
346
342
  overflow: auto; max-height: var(--ui-table-height, 70vh);
347
343
  /* A transparent border, not padding: positioned cells cover an outline on the scrollport's
348
344
  padding. The side and bottom bands draw in the border at the visible edge at every scroll
349
345
  position. why: docs/foundations.md#the-focus-ring */
350
- border: 0 solid transparent; border-inline-width: var(--space-1); border-bottom-width: var(--space-1); background-origin: border-box;
346
+ border: 0 solid transparent; border-inline-width: var(--space-1); border-bottom-width: var(--space-1);
351
347
  background-color: var(--table-bg);
352
- background-image:
353
- linear-gradient(to right, var(--table-bg) 50%, transparent),
354
- linear-gradient(to left, var(--table-bg) 50%, transparent),
355
- radial-gradient(farthest-side at 0 50%, var(--table-edge), transparent),
356
- radial-gradient(farthest-side at 100% 50%, var(--table-edge), transparent);
357
- background-position: 0 0, 100% 0, 0 0, 100% 0;
358
- background-size: var(--space-6) 100%, var(--space-6) 100%, var(--space-3) 100%, var(--space-3) 100%;
359
- background-repeat: no-repeat;
360
- background-attachment: local, local, scroll, scroll;
361
- }
362
- /* The edge darkens on a light ground and lightens on a dark one: ink has nowhere to
363
- go on a near-black page, which is why --elev-drop splits its spend and a raised
364
- dark surface takes a light --elev-edge. */
365
- .ui-table-scroll { --table-edge: color-mix(in srgb, var(--sheen) 12%, transparent); }
366
- :root[data-theme="light"] .ui-table-scroll { --table-edge: color-mix(in srgb, var(--shadow-ink) 13%, transparent); }
367
- /* The surface belongs to the box that scrolls, so the shades land under the cells
368
- rather than behind them; the row fills repeat that same surface and step aside.
369
- The sticky header and pinned column keep their paint: they hide what scrolls
370
- beneath them. A target row keeps its wash. */
348
+ /* The containing block of an absolute child, such as a screen-reader label, so the
349
+ frame clips it and it cannot widen the page. #770 */
350
+ position: relative;
351
+ /* A grid track with a zero floor, so a wide table cannot widen the frame's card. */
352
+ display: grid;
353
+ grid-template-columns: minmax(0, 1fr);
354
+ }
355
+ /* The surface belongs to the box that scrolls, and the row fills repeat that same surface.
356
+ The sticky header and pinned column keep their paint: they hide what scrolls beneath
357
+ them. A target row keeps its wash. */
371
358
  .ui-table-scroll > .ui-table,
372
359
  .ui-table-scroll > .ui-table tbody :where(tr:not(.is-target)) > td:not(.ui-table__identity, .ui-table__selection) { background-color: transparent; }
373
360
  .ui-table-scroll > .ui-table--hover tbody tr:hover:not(.is-target) > :is(td, th) {
@@ -398,45 +385,6 @@
398
385
  rule. The resting rule keeps it, so an engine that cannot answer the query is unchanged;
399
386
  scroll-state makes a query container, not a size one. why: guidelines/dense-tables.md */
400
387
  .ui-table-scroll { container-type: scroll-state; }
401
- /* A shared grid cell puts the edge shade over the opaque sticky header, on both
402
- sides: the radial-gradient shades below answer only the table's own background
403
- and fall to nothing where the sticky header paints over them, so an engine that
404
- can ask whether the scrollport still has room sticks a shade of its own above
405
- it instead and the base radial pair is sized to 0 here. #434 review round 2 */
406
- @supports (container-type: scroll-state) {
407
- .ui-table-scroll {
408
- display: grid;
409
- grid-template-columns: minmax(0, 1fr);
410
- background-size: var(--space-6) 100%, var(--space-6) 100%, 0 100%, 0 100%;
411
- }
412
- .ui-table-scroll > .ui-table { grid-area: 1 / 1; }
413
- .ui-table-scroll::before,
414
- .ui-table-scroll::after {
415
- content: '';
416
- grid-area: 1 / 1;
417
- position: sticky;
418
- top: 0;
419
- width: var(--space-3);
420
- z-index: calc(var(--z-sticky) + 2);
421
- pointer-events: none;
422
- }
423
- .ui-table-scroll::before { left: 0; right: calc(100% - var(--space-3)); justify-self: start; }
424
- .ui-table-scroll::after { left: calc(100% - var(--space-3)); right: 0; justify-self: end; }
425
- @container scroll-state(scrollable: left) {
426
- .ui-table-scroll::before { background: linear-gradient(to right, var(--table-edge), transparent); }
427
- /* A pinned column stays, so the shade falls on its right side, over the columns that
428
- scroll under it. The spread carries the shadow past each row's ends, and the clip cuts
429
- it there and on the left, so the rows join as one even band. why: #736 */
430
- .ui-table-scroll:has(> .ui-table--pinned)::before { background: none; }
431
- .ui-table--pinned .ui-table__identity {
432
- box-shadow: calc(-1 * var(--space-2)) 0 var(--space-3) var(--space-3) var(--table-edge);
433
- clip-path: inset(0 calc(-1 * var(--space-6)) 0 0);
434
- }
435
- }
436
- @container scroll-state(scrollable: right) {
437
- .ui-table-scroll::after { background: linear-gradient(to left, var(--table-edge), transparent); }
438
- }
439
- }
440
388
  @container not scroll-state(scrollable: x) {
441
389
  .ui-table--pinned :is(.ui-table__identity, .ui-table__selection) { border-right-color: transparent; }
442
390
  }
@@ -544,3 +492,106 @@ a.ui-identity:hover { text-decoration: underline; }
544
492
  --dense, --compact and __title. The floor keeps a note a readable paragraph when the table
545
493
  is wider than its frame, so the frame scrolls instead of the note collapsing to one word. */
546
494
  .ui-table td.ui-table__long { white-space: normal; min-width: var(--panel-sm); }
495
+
496
+
497
+ /* ============================================================================
498
+ * The row table: a hover table that is neither dense nor zebra. #770
499
+ * Body rows have no lines, and the head keeps its rule. A row's fill is square. Rows
500
+ * are 48px, `--compact` 36px and `--comfortable` 56px. In a card, the table meets the
501
+ * card's edges and its end cells keep the card's text edge.
502
+ * ========================================================================== */
503
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) {
504
+ --cell-gap: var(--space-4);
505
+ --cell-edge: var(--space-3);
506
+ padding: 0;
507
+ }
508
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) :is(th, td) {
509
+ line-height: var(--leading-snug);
510
+ padding-inline: 0 var(--cell-gap);
511
+ }
512
+ /* A pinned selection cell keeps its fixed, centred track. */
513
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) :is(th, td):first-child:not(:where(.ui-table--pinned) .ui-table__selection) { padding-left: var(--cell-edge); }
514
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) :is(th, td):last-child { padding-right: var(--cell-edge); }
515
+ /* 16px, so the box's 44px phone tap layer stops at the cell's edge and leaves the next cell's control whole. */
516
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense):not(.ui-table--pinned) .ui-table__selection { padding-right: var(--space-4); }
517
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) thead th { padding-block: var(--space-3); }
518
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) tbody > tr > :is(td, th) { border-bottom: 0; }
519
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) :is(tbody, tfoot) :is(td, th):not(.ui-table__act) {
520
+ height: var(--space-12);
521
+ padding-block: var(--space-2);
522
+ }
523
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense).ui-table--compact { --cell-gap: var(--space-3); }
524
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense).ui-table--compact thead th { padding-block: var(--space-2); }
525
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense).ui-table--compact :is(tbody, tfoot) :is(td, th):not(.ui-table__act) { height: calc(var(--space-8) + var(--space-1)); }
526
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense).ui-table--comfortable { --cell-gap: var(--space-5); }
527
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense).ui-table--comfortable :is(tbody, tfoot) :is(td, th):not(.ui-table__act) {
528
+ height: calc(var(--space-12) + var(--space-2));
529
+ padding-block: var(--space-3);
530
+ }
531
+ /* A filled cell link carries the padding its cell gave up. */
532
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) td.ui-table__linked:has(> :is(a:not([class]), a.ui-identity):only-child) { padding: 0; }
533
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) td.ui-table__linked > :is(a:not([class]), a.ui-identity):only-child { padding: var(--space-2) var(--cell-gap) var(--space-2) 0; }
534
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense).ui-table--comfortable td.ui-table__linked > :is(a:not([class]), a.ui-identity):only-child { padding-block: var(--space-3); }
535
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) td.ui-table__linked:first-child > :is(a:not([class]), a.ui-identity):only-child { padding-left: var(--cell-edge); }
536
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) td.ui-table__linked:last-child > :is(a:not([class]), a.ui-identity):only-child { padding-right: var(--cell-edge); }
537
+
538
+ /* The row's name, in the first column after the selection, is the row's strongest ink. */
539
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) tbody tr:not(.is-dead) > :is(td, th):is(:first-child, .ui-table__selection + *) {
540
+ color: var(--strong);
541
+ font-weight: var(--weight-medium);
542
+ }
543
+ /* A second line under a cell's value, such as an email under a name. It is a value, so
544
+ it keeps full ink. Its size and weight set it below the name. */
545
+ .ui-table__sub { display: block; font-size: var(--text-sm); font-weight: var(--weight-normal); color: var(--text); }
546
+
547
+ /* Row states. Hover is a quiet neutral fill. A selected row takes an accent wash, one step
548
+ stronger under the pointer. Each fill is opaque and square, so a pinned cell still covers
549
+ the columns that scroll under it. A target row keeps its own wash. The selected wash
550
+ is 9%: at 8% an inline code chip on the dark page loses its 1.1:1 step. */
551
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) tbody tr:hover > :is(td, th) { border-radius: 0; }
552
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) tbody tr:hover:not(.is-target) > :is(td, th) { background: var(--surface-3); }
553
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) tbody tr:not(.is-target):has(> .ui-table__selection :checked) > :is(td, th) { background: color-mix(in srgb, var(--accent) 9%, var(--table-bg)); }
554
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) tbody tr:not(.is-target):has(> .ui-table__selection :checked):hover > :is(td, th) { background: color-mix(in srgb, var(--accent) 12%, var(--table-bg)); }
555
+
556
+ /* Icon row actions: 32px buttons in a cell as wide as its buttons, so a row keeps its
557
+ height. The glyph, not the button, meets the end cell's edge. */
558
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) td.ui-table__act { padding-block: 0; padding-right: calc(var(--cell-edge) - var(--space-2)); }
559
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) td.ui-table__act:has(.ui-btn--icon) { width: 1%; }
560
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) td.ui-table__act .ui-btn--icon { box-sizing: border-box; width: var(--space-8); height: var(--space-8); padding: 0; justify-content: center; }
561
+
562
+ /* In a card the table, or its frame, reaches the card's edges, so a row's fill does too. */
563
+ .ui-card > :is(.ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense), .ui-table-scroll:has(> .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense))) {
564
+ width: calc(100% + 2 * var(--space-6));
565
+ max-width: none;
566
+ margin-inline: calc(-1 * var(--space-6));
567
+ }
568
+ .ui-card > :is(.ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense), .ui-table-scroll:has(> .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense))):first-child { margin-top: calc(-1 * var(--space-6)); }
569
+ .ui-card > :is(.ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense), .ui-table-scroll:has(> .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense))):last-child { margin-bottom: calc(-1 * var(--space-6)); }
570
+ .ui-card--pad-sm > :is(.ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense), .ui-table-scroll:has(> .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense))):first-child { margin-top: calc(-1 * var(--space-5)); }
571
+ .ui-card--pad-sm > :is(.ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense), .ui-table-scroll:has(> .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense))):last-child { margin-bottom: calc(-1 * var(--space-5)); }
572
+ .ui-card--fit > :is(.ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense), .ui-table-scroll:has(> .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense))) { width: auto; max-width: calc(100% + 2 * var(--space-6)); }
573
+ /* The frame keeps its side bands and takes a top band, because the sticky header covers a
574
+ ring drawn anywhere else. The frame clips its cells to the inner curve of the bands, so
575
+ the header follows the ring at the top corners. The header gives the top band back from
576
+ its padding. The frame drops the bottom band, so the card's padding is the only room
577
+ below the table. */
578
+ .ui-card > .ui-table-scroll:has(> .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense)) { border-top-width: var(--space-1); border-bottom-width: 0; }
579
+ .ui-card > .ui-table-scroll > .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) thead th { padding-top: calc(var(--space-3) - var(--space-1)); }
580
+ .ui-card > .ui-table-scroll > .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense).ui-table--compact thead th { padding-top: calc(var(--space-2) - var(--space-1)); }
581
+ /* The frame's corners follow the card's, so a fill in the first or last row does too. */
582
+ .ui-card > .ui-table-scroll:has(> .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense)):first-child { border-start-start-radius: inherit; border-start-end-radius: inherit; }
583
+ .ui-card > .ui-table-scroll:has(> .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense)):last-child { border-end-start-radius: inherit; border-end-end-radius: inherit; }
584
+ .ui-card > .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) { --cell-edge: var(--space-6); }
585
+ /* In a frame, the side band holds space-1 of the card's text edge. */
586
+ .ui-card > .ui-table-scroll > .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) { --cell-edge: calc(var(--space-6) - var(--space-1)); }
587
+
588
+ /* On a phone the cells pad by space-3 across and a card's end cells by space-4. A wide
589
+ table scrolls under a finger, so the frame shows no scrollbar. 560px is the kit's phone
590
+ breakpoint. */
591
+ @media (max-width: 560px) {
592
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense):is(*, .ui-table--comfortable) { --cell-gap: var(--space-3); }
593
+ .ui-card > .ui-table-scroll > .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) { --cell-edge: calc(var(--space-4) - var(--space-1)); }
594
+ .ui-card > .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) { --cell-edge: var(--space-4); }
595
+ .ui-table-scroll { scrollbar-width: none; }
596
+ .ui-table-scroll::-webkit-scrollbar { display: none; }
597
+ }
@@ -59,6 +59,11 @@
59
59
 
60
60
  .ui-tip.is-open { opacity: 1; visibility: visible; }
61
61
 
62
+ /* A closed readout has no box: a hidden box still widens the scroller that holds
63
+ it. The open readout fades in from its starting style. */
64
+ .ui-tip:not(.is-open) { display: none; }
65
+ @starting-style { .ui-tip.is-open { opacity: 0; } }
66
+
62
67
  .ui-tip__label { color: var(--text); }
63
68
  .ui-tip__value {
64
69
  font-size: var(--text-sm);
@@ -649,6 +649,11 @@
649
649
  .ui-table-scroll > .ui-table--hover tbody tr:hover:not(.is-target) > :is(td, th) {
650
650
  --code-bg: var(--surface);
651
651
  }
652
+ /* The row table hovers on --surface-3, and a chip there keeps the card surface. A selected
653
+ * row mixes the accent into the table ground, so a chip there keeps that plain ground. */
654
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) tbody tr:hover:not(.is-target) > :is(td, th) { --code-bg: var(--surface); }
655
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) tbody tr:not(.is-target):has(> .ui-table__selection :checked) > :is(td, th),
656
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) tbody tr:not(.is-target):has(> .ui-table__selection :checked):hover > :is(td, th) { --code-bg: var(--table-bg); }
652
657
  .ui-card--accent,
653
658
  .ui-card--live,
654
659
  .ui-snippet--reveal { --code-bg: var(--surface); }