@apliteni/apliteni-ui 0.180.0 → 0.181.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.
@@ -179,8 +179,17 @@
179
179
  /* The Theme choice needs 195px and the narrowest settings row gives it 160. Its pills
180
180
  give up inline padding as the viewport narrows. Other choices keep their tap width. */
181
181
  @media (max-width: 560px) {
182
+ .ui-card__row--tight-choice > .ui-seg:not(.ui-seg--sm):not(.ui-seg--underline) {
183
+ --ui-row-choice-pad: clamp(var(--space-1), calc(var(--space-3) - (360px - 100vw) * 0.3), var(--space-3));
184
+ }
182
185
  .ui-card__row--tight-choice > .ui-seg:not(.ui-seg--sm):not(.ui-seg--underline) button {
183
- padding-inline: clamp(var(--space-1), calc(var(--space-3) - (360px - 100vw) * 0.3), var(--space-3));
186
+ padding-inline: var(--ui-row-choice-pad);
187
+ }
188
+ /* A stacked choice draws no track on the card, so its first label goes back to the
189
+ row's text edge: the track's padding plus the first pill's. The pill hangs into the
190
+ card's padding. why: guidelines/spacing.md#put-text-on-the-column-edge */
191
+ .ui-card__row > .ui-seg:not(.ui-seg--underline) {
192
+ margin-inline-start: calc(-1 * (var(--space-1) + var(--ui-row-choice-pad, var(--space-3))));
184
193
  }
185
194
  }
186
195
  .ui-card__row + .ui-card__row { border-top: 1px solid var(--border); }
@@ -405,6 +405,19 @@
405
405
  @container not scroll-state(scrollable: x) {
406
406
  .ui-table--pinned :is(.ui-table__identity, .ui-table__selection) { border-right-color: transparent; }
407
407
  }
408
+ /* Once the frame is scrolled, the next column's text keeps its cell padding from the
409
+ divider: the pinned cell lays its own ground over that padding, so the text that moves
410
+ under the pin stops short of the line. A frame at rest paints nothing more. The gap is
411
+ the next cell's padding, set beside each padding rule below. Below 720px the cell cuts
412
+ what overflows it, so its cut reaches past the divider to hold the widest band, 12px and
413
+ the 1px line. A plain step, because Chromium computes a calc() here as 0px. why: #845 */
414
+ @container scroll-state(scrollable: left) {
415
+ .ui-table--pinned .ui-table__identity { overflow-clip-margin: var(--space-4); }
416
+ .ui-table--pinned .ui-table__identity::after {
417
+ content: ''; position: absolute; top: 0; bottom: 0; left: calc(100% + 1px);
418
+ width: var(--ui-table-pin-gap, var(--space-3)); background: inherit; pointer-events: none;
419
+ }
420
+ }
408
421
  .ui-value, .ui-delta { white-space: nowrap; font-variant-numeric: tabular-nums; }
409
422
  .ui-value__unit { margin-left: var(--space-1); font-size: var(--text-xs); color: var(--text); }
410
423
  .ui-delta--success { color: var(--chip-success-ink); }
@@ -545,6 +558,10 @@ a.ui-identity:hover { text-decoration: underline; }
545
558
  .ui-table--pinned:not(.ui-table--dense):not(.ui-table--compact) .ui-table__identity + :is(th, td) { padding-left: var(--space-2); }
546
559
  .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense):is(.ui-table--pinned) .ui-table__identity { padding-right: calc(var(--cell-gap) / 2); }
547
560
  .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense):is(.ui-table--pinned) .ui-table__identity + :is(th, td) { padding-left: calc(var(--cell-gap) / 2); }
561
+ /* The scrolled frame's gap after the divider, the same as the padding above. A dense or
562
+ compact cell pads by --space-3, the gap's fallback. */
563
+ .ui-table--pinned:not(.ui-table--dense):not(.ui-table--compact) .ui-table__identity { --ui-table-pin-gap: var(--space-2); }
564
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense):is(.ui-table--pinned) .ui-table__identity { --ui-table-pin-gap: calc(var(--cell-gap) / 2); }
548
565
  /* A link that fills a pinned cell carries the cell's padding, so it gives up the same half. */
549
566
  .ui-table--pinned:not(.ui-table--dense):not(.ui-table--compact) td.ui-table__identity.ui-table__linked > :is(a:not([class]), a.ui-identity):only-child { padding-right: var(--space-2); }
550
567
  .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense):is(.ui-table--pinned) td.ui-table__identity.ui-table__linked > :is(a:not([class]), a.ui-identity):only-child { padding-right: calc(var(--cell-gap) / 2); }
@@ -115,7 +115,9 @@
115
115
  /* ============================================================================
116
116
  * DARK THEME (default) — deck palette from viz/index.html
117
117
  * ========================================================================== */
118
+ /* A ThemeChoice scene draws this theme inside a page of either theme. */
118
119
  :root,
120
+ .ui-theme-choice__scene--dark,
119
121
  :root[data-theme="dark"] {
120
122
  color-scheme: dark;
121
123
 
@@ -369,6 +371,7 @@
369
371
  * A document sheet (.ui-card__page) takes this palette in both themes: the document
370
372
  * is paper, so it stays white with dark ink on a dark stage too. Decided on #736.
371
373
  * ========================================================================== */
374
+ .ui-theme-choice__scene--light,
372
375
  .ui-card__page,
373
376
  :root[data-theme="light"] {
374
377
  color-scheme: light;