@apliteni/apliteni-ui 0.179.0 → 0.179.2
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/README.md +1 -1
- package/docs/components.md +1188 -1467
- package/docs/foundations.md +35 -45
- package/guidelines/INDEX.md +1 -1
- package/guidelines/the-page.md +5 -5
- package/package.json +1 -1
- package/react/README.md +2 -2
- package/react/dist/index.d.ts +2 -2
- package/src/html.js +1 -1
- package/src/index.d.ts +6 -6
- package/src/logic/accents.js +1 -1
- package/src/logic/account-nav.js +1 -1
- package/src/logic/chart.js +1 -1
- package/src/logic/dropdown-placement.js +11 -11
- package/src/logic/filter-bar.js +4 -4
- package/src/styles/back.css +2 -2
- package/src/styles/button.css +2 -2
- package/src/styles/card.css +1 -1
- package/src/styles/chart.css +2 -2
- package/src/styles/command-palette.css +2 -2
- package/src/styles/drawer.css +2 -2
- package/src/styles/dropdown.css +27 -27
- package/src/styles/file-drop.css +1 -1
- package/src/styles/filter-bar.css +7 -7
- package/src/styles/input.css +1 -1
- package/src/styles/layout.css +28 -28
- package/src/styles/loading.css +1 -1
- package/src/styles/nav.css +4 -4
- package/src/styles/segmented.css +3 -3
- package/src/styles/table.css +3 -3
- package/src/styles/tooltip.css +1 -1
- package/src/styles/topbar.css +7 -7
- package/src/tokens/tokens.css +1 -1
package/src/styles/dropdown.css
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
the last thing the body holds, so the body ends where the panel ends; this 1px spot
|
|
12
12
|
lets it scroll that far. It stays through the fade and until the reader has scrolled
|
|
13
13
|
out of it, so closing does not move the field, and it paints nothing.
|
|
14
|
-
why: docs/components.md#
|
|
14
|
+
why: docs/components.md#dropdown */
|
|
15
15
|
.ui-dropdown[style*="--ui-dropdown-reach"]::after {
|
|
16
16
|
content: "";
|
|
17
17
|
position: absolute;
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
/* The kit's invalid edge, on a Dropdown or a DatePicker that a Field marks invalid, also
|
|
54
54
|
under the pointer. The hover selector ties live hover at (0,4,0) and comes later, and the
|
|
55
55
|
off rules below tie it and come later still, so an off trigger keeps the off edge. #835
|
|
56
|
-
why: docs/components.md#
|
|
56
|
+
why: docs/components.md#fields */
|
|
57
57
|
.ui-dropdown__trigger[aria-invalid="true"],
|
|
58
58
|
.ui-dropdown__trigger[aria-invalid="true"]:hover:not(:focus-visible) { border-color: var(--pink); }
|
|
59
59
|
/* As a select: under the ring the edge keeps its width and goes transparent, so focus has
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
/* Chevron — border caret that flips when the container is .open. Its ink is an L
|
|
89
89
|
on a rotated square, so centring the BOX leaves the mark off centre; --caret-off
|
|
90
90
|
is that gap, derived rather than typed.
|
|
91
|
-
why: docs/components.md#
|
|
91
|
+
why: docs/components.md#dropdown */
|
|
92
92
|
.ui-dropdown__chevron {
|
|
93
93
|
--caret: 8px;
|
|
94
94
|
--caret-ink: 1.6px;
|
|
@@ -113,24 +113,24 @@
|
|
|
113
113
|
.ui-dropdown__panel {
|
|
114
114
|
/* One number for the trigger-to-panel offset, read by both edges here and by
|
|
115
115
|
the portal's JS, so an upward panel cannot drift from a downward one.
|
|
116
|
-
why: docs/components.md#
|
|
116
|
+
why: docs/components.md#dropdown */
|
|
117
117
|
--ui-dropdown-gap: 9px;
|
|
118
118
|
/* The least a panel keeps between itself and the edge of the view it is laid out
|
|
119
119
|
in. The wiring reads it off the panel and moves the panel along the inline axis
|
|
120
120
|
when the edge `align` asked for does not fit; a page wanting a panel flush with
|
|
121
121
|
the screen's edge sets it to 0.
|
|
122
|
-
why: docs/components.md#
|
|
122
|
+
why: docs/components.md#dropdown */
|
|
123
123
|
--ui-dropdown-edge: 8px;
|
|
124
124
|
/* What a panel that opens down inside a Modal or Drawer body keeps between its end
|
|
125
125
|
and the body's end. The drop shadow fades out over 43px in light and 15px in dark,
|
|
126
126
|
measured from pixels; the body clips whatever is left of it. 48px is the 8px
|
|
127
|
-
step above the light figure. why: docs/components.md#
|
|
127
|
+
step above the light figure. why: docs/components.md#dropdown */
|
|
128
128
|
--ui-dropdown-shade: 48px;
|
|
129
129
|
/* The least height a capped panel keeps before it would rather spend the edge
|
|
130
130
|
inset above than shrink further — three rows or so. Below it the panel
|
|
131
131
|
still ends at or before the edge; it never spends room past the edge to
|
|
132
132
|
reach this floor, because that room does not exist. #489
|
|
133
|
-
why: docs/components.md#
|
|
133
|
+
why: docs/components.md#dropdown */
|
|
134
134
|
--ui-dropdown-min: 120px;
|
|
135
135
|
/* The tallest a panel grows before it scrolls inside itself. It is the figure the
|
|
136
136
|
reference systems settle on, 256 to 300px, and the one `scroll` and the search
|
|
@@ -139,11 +139,11 @@
|
|
|
139
139
|
shows 7 whole rows and half of the eighth in a plain list, 4 and a half with a
|
|
140
140
|
description line, 5 and a half under a search field and 3 and a half with both.
|
|
141
141
|
A consumer asks for another cap with `scroll: <n>`.
|
|
142
|
-
why: docs/components.md#
|
|
142
|
+
why: docs/components.md#dropdown */
|
|
143
143
|
--ui-dropdown-max: 300px;
|
|
144
144
|
/* Named for the same reason the offset is: a block pinned to an edge has to
|
|
145
145
|
bleed back through it, and #306 is a page copying the number by hand.
|
|
146
|
-
why: docs/components.md#
|
|
146
|
+
why: docs/components.md#dropdown */
|
|
147
147
|
--ui-dropdown-pad: 6px;
|
|
148
148
|
/* The panel states its own role rather than inheriting one, because `portal:
|
|
149
149
|
true` moves it onto <body> and an inherited face is then decided by where
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
240. The wiring writes the property off the LAYOUT viewport; the fallback is
|
|
166
166
|
for a page whose JS has not run, and is a classic scrollbar's width too
|
|
167
167
|
generous, because `100vw` counts a scrollbar the panel's own box does not.
|
|
168
|
-
why: docs/components.md#
|
|
168
|
+
why: docs/components.md#dropdown */
|
|
169
169
|
max-width: var(--ui-dropdown-ceiling, calc(100vw - 2 * var(--ui-dropdown-edge)));
|
|
170
170
|
/* And this is what holds an IN-PLACE one, whose room is its trigger's block: a
|
|
171
171
|
shrink-to-fit box is its min-content wide at the least, and one 70-character
|
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
means nothing has measured yet, which is a server-rendered page before
|
|
198
198
|
hydration — so the fallback promises the same thing at a coarser grain, the
|
|
199
199
|
viewport less the edge inset at each end.
|
|
200
|
-
why: docs/components.md#
|
|
200
|
+
why: docs/components.md#dropdown */
|
|
201
201
|
max-height: min(
|
|
202
202
|
var(--ui-dropdown-cap, var(--ui-dropdown-max)),
|
|
203
203
|
var(--ui-dropdown-fit, 100dvh),
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
visibility: hidden;
|
|
212
212
|
/* Drawn for the whole of the fade out, so the rows do not vanish mid-fade — and a
|
|
213
213
|
box that is drawn is a box that is hit. The open rules take this back.
|
|
214
|
-
why: docs/components.md#
|
|
214
|
+
why: docs/components.md#dropdown */
|
|
215
215
|
pointer-events: none;
|
|
216
216
|
transform: translateY(-6px);
|
|
217
217
|
transition:
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
/* On a phone, the panel keeps the page's 16px margin at the shell fold, or the wider
|
|
231
231
|
safe-area inset, the gap the phone account window keeps. Registered as a length so
|
|
232
232
|
the wiring reads one number, not the max() expression. #808
|
|
233
|
-
why: docs/components.md#
|
|
233
|
+
why: docs/components.md#dropdown */
|
|
234
234
|
@property --ui-dropdown-edge { syntax: "<length>"; inherits: true; initial-value: 8px; }
|
|
235
235
|
@media (max-width: 720px) {
|
|
236
236
|
.ui-dropdown__panel { --ui-dropdown-edge: max(var(--space-4), env(safe-area-inset-left), env(safe-area-inset-right)); }
|
|
@@ -247,19 +247,19 @@
|
|
|
247
247
|
/* The wiring lifts a panel out of a Modal or Drawer body too short to hold the field's
|
|
248
248
|
label and trigger, the floor and the 8px edge under it. Fixed, it opens over the
|
|
249
249
|
body the way a portalled panel does, and the wiring writes its edges from the
|
|
250
|
-
trigger's. The value is the side it opens on. why: docs/components.md#
|
|
250
|
+
trigger's. The value is the side it opens on. why: docs/components.md#dropdown */
|
|
251
251
|
.ui-dropdown__panel[data-dd-lifted] { position: fixed; }
|
|
252
252
|
.ui-dropdown__panel[data-dd-lifted="up"] { transform: translateY(6px); }
|
|
253
253
|
|
|
254
254
|
/* A search list that carries the consumer's own cap keeps it, and the panel is that cap
|
|
255
255
|
and the search field over it. The wiring writes the sum as --ui-dropdown-fit; this
|
|
256
|
-
lifts the standard cap out of its way. why: docs/components.md#
|
|
256
|
+
lifts the standard cap out of its way. why: docs/components.md#dropdown */
|
|
257
257
|
.ui-dropdown__panel--search:has(> .ui-dropdown__list[style*="--ui-dropdown-cap"]) { --ui-dropdown-max: 100dvh; }
|
|
258
258
|
|
|
259
259
|
/* A shut panel is still laid out, and a box that is laid out counts towards the
|
|
260
260
|
scroll of the body or page it sits in. The wiring collapses it once its fade is
|
|
261
261
|
over and gives the box back before the next open measures it. The width stays, so
|
|
262
|
-
the horizontal fit reads the same number. why: docs/components.md#
|
|
262
|
+
the horizontal fit reads the same number. why: docs/components.md#dropdown */
|
|
263
263
|
.ui-dropdown__panel[data-dd-shut] {
|
|
264
264
|
max-height: 0;
|
|
265
265
|
padding-block: 0;
|
|
@@ -281,7 +281,7 @@
|
|
|
281
281
|
them, and a consumer who set `bottom` and left our `top` standing got a
|
|
282
282
|
fourteen-pixel panel. The entry travel is mirrored too, so the panel arrives
|
|
283
283
|
from the trigger whichever way it opens.
|
|
284
|
-
why: docs/components.md#
|
|
284
|
+
why: docs/components.md#dropdown */
|
|
285
285
|
.ui-dropdown__panel.is-up {
|
|
286
286
|
top: auto;
|
|
287
287
|
bottom: calc(100% + var(--ui-dropdown-gap));
|
|
@@ -292,7 +292,7 @@
|
|
|
292
292
|
/* Open, the panel is visible AT ONCE: `visibility` is off the list, so it is not
|
|
293
293
|
held at `hidden` for the frame a key opens the panel in — the frame the focus
|
|
294
294
|
call happens in. Closing still fades on every property it always did.
|
|
295
|
-
why: docs/components.md#
|
|
295
|
+
why: docs/components.md#dropdown */
|
|
296
296
|
.ui-dropdown.open .ui-dropdown__panel,
|
|
297
297
|
.ui-dropdown__panel--portal.is-open { transition-property: opacity, transform; }
|
|
298
298
|
|
|
@@ -300,7 +300,7 @@
|
|
|
300
300
|
property of its own still transitions the inherited `visibility`, so it is hidden in
|
|
301
301
|
the frame openDropdown() focuses into it — #519. Keyed on the data hook, because the
|
|
302
302
|
topbar's two menus open on the same wiring and keep their own CSS.
|
|
303
|
-
why: docs/components.md#
|
|
303
|
+
why: docs/components.md#dropdown */
|
|
304
304
|
@media (prefers-reduced-motion: reduce) {
|
|
305
305
|
.open > [data-dropdown-panel] *,
|
|
306
306
|
[data-dropdown-panel].is-open * { transition: none !important; }
|
|
@@ -311,7 +311,7 @@
|
|
|
311
311
|
selector above stops matching the moment it leaves the trigger's subtree, so
|
|
312
312
|
its open state is a class of its own; the wiring writes the viewport
|
|
313
313
|
coordinates inline, and these `auto`s are what it writes over.
|
|
314
|
-
why: docs/components.md#
|
|
314
|
+
why: docs/components.md#dropdown */
|
|
315
315
|
.ui-dropdown__panel--portal {
|
|
316
316
|
position: fixed;
|
|
317
317
|
top: auto; right: auto; bottom: auto; left: auto;
|
|
@@ -322,7 +322,7 @@
|
|
|
322
322
|
<a href> or a <button>: `is-selected` and __tick below mean a row gets
|
|
323
323
|
chosen, and choosing is a button's job. So the tag's own styling is reset
|
|
324
324
|
here, the way .ui-nav__item resets it, and the three render identically.
|
|
325
|
-
why: docs/components.md#
|
|
325
|
+
why: docs/components.md#dropdown */
|
|
326
326
|
.ui-dropdown__item {
|
|
327
327
|
display: flex;
|
|
328
328
|
gap: 11px;
|
|
@@ -375,7 +375,7 @@
|
|
|
375
375
|
/* A row that opens a submenu (#736): the current value at the trailing edge in body ink,
|
|
376
376
|
then a chevron. The submenu is a second panel beside this one, or, in a panel marked
|
|
377
377
|
is-sub, the only rows showing.
|
|
378
|
-
why: docs/components.md#
|
|
378
|
+
why: docs/components.md#dropdown */
|
|
379
379
|
.ui-dropdown__aside { margin-left: auto; flex: none; font-size: var(--text-xs); color: var(--text); }
|
|
380
380
|
.ui-dropdown__more { margin-left: auto; display: inline-flex; flex: none; /* muted-ink: glyph — submenu chevron */ color: var(--muted); }
|
|
381
381
|
.ui-dropdown__aside + .ui-dropdown__more { margin-left: 0; }
|
|
@@ -422,7 +422,7 @@
|
|
|
422
422
|
.ui-dropdown__item.is-disabled .ui-dropdown__desc { color: inherit; }
|
|
423
423
|
/* Body ink at rest, --pink on the way to being pressed. Both states, not hover alone:
|
|
424
424
|
the ring says where the reader is, not that this row ends something.
|
|
425
|
-
why: docs/components.md#
|
|
425
|
+
why: docs/components.md#dropdown */
|
|
426
426
|
.ui-dropdown__item.is-danger .ui-dropdown__label { color: var(--text); }
|
|
427
427
|
.ui-dropdown__item.is-danger:hover .ui-dropdown__label,
|
|
428
428
|
.ui-dropdown__item.is-danger:focus-visible .ui-dropdown__label { color: var(--pink); }
|
|
@@ -447,7 +447,7 @@
|
|
|
447
447
|
|
|
448
448
|
/* Optional pinned head/foot blocks — symmetrical: one inner padding, and each
|
|
449
449
|
bleeding to the edge it sits on, lining the edge it faces.
|
|
450
|
-
why: docs/components.md#
|
|
450
|
+
why: docs/components.md#dropdown */
|
|
451
451
|
.ui-dropdown__panel > .ui-dropdown__head,
|
|
452
452
|
.ui-dropdown__panel > .ui-dropdown__foot {
|
|
453
453
|
padding: 11px 13px;
|
|
@@ -467,7 +467,7 @@
|
|
|
467
467
|
reader types. The rows move into a list of their own, so the field stays put
|
|
468
468
|
while the list scrolls. Every rule below keys on a class only the search
|
|
469
469
|
variant emits, so the plain dropdown renders as it did.
|
|
470
|
-
why: docs/components.md#
|
|
470
|
+
why: docs/components.md#dropdown */
|
|
471
471
|
/* A column, so the panel's own avail-based max-height (above) lands on the rows
|
|
472
472
|
and not on the field: the field and the empty-state block keep their content
|
|
473
473
|
height, and the list — the child that can overflow — gives up the room they
|
|
@@ -563,7 +563,7 @@
|
|
|
563
563
|
.ui-field > .ui-dropdown > .ui-dropdown__panel { inline-size: 100%; min-width: 0; }
|
|
564
564
|
/* In a form the trigger takes the text input's block padding and type, so the two
|
|
565
565
|
stand at one height. It keeps the pill, and the input has the field corner. #812, #836
|
|
566
|
-
why: docs/components.md#
|
|
566
|
+
why: docs/components.md#fields */
|
|
567
567
|
@property --ui-dropdown-line { syntax: "<length>"; inherits: true; initial-value: 0px; }
|
|
568
568
|
.ui-field > .ui-dropdown > .ui-dropdown__trigger {
|
|
569
569
|
padding: var(--space-3) var(--space-4);
|
|
@@ -584,7 +584,7 @@
|
|
|
584
584
|
}
|
|
585
585
|
/* The chosen value takes the text input's regular weight and normal spacing. No colour:
|
|
586
586
|
the value keeps --strong, a disabled value its off ink and a placeholder its muted ink.
|
|
587
|
-
rev_67189e20ee1f/d5 why: docs/components.md#
|
|
587
|
+
rev_67189e20ee1f/d5 why: docs/components.md#fields */
|
|
588
588
|
.ui-field > .ui-dropdown > .ui-dropdown__trigger > .ui-dropdown__value { font-weight: var(--weight-normal); letter-spacing: normal; }
|
|
589
589
|
/* The mark stands as far from the left edge as from the top and bottom edges. */
|
|
590
590
|
.ui-field > .ui-dropdown > .ui-dropdown__trigger > .ui-avatar {
|
package/src/styles/file-drop.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* File drop — .ui-drop. One row at rest; the field-sized box stays with .ui-file.
|
|
2
|
-
* why: docs/components.md#
|
|
2
|
+
* why: docs/components.md#file-drop */
|
|
3
3
|
.ui-drop { position: relative; }
|
|
4
4
|
|
|
5
5
|
/* The row is a size container, so its content gives it no width. In a parent
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
|
|
40
40
|
/* Shut, a panel is the trigger's width, never the 240px floor a standalone
|
|
41
41
|
dropdown gets: it is laid out while hidden, so a wider one widened the page
|
|
42
|
-
(#467). why: docs/components.md#
|
|
42
|
+
(#467). why: docs/components.md#filter-bar */
|
|
43
43
|
.ui-filter-bar .ui-dropdown__panel { min-width: 100%; max-width: 100%; overflow-wrap: anywhere; }
|
|
44
44
|
/* Clear is a quiet text button: no edge in any state, and no fill but the pointer's wash below.
|
|
45
|
-
why: docs/components.md#
|
|
45
|
+
why: docs/components.md#filter-bar */
|
|
46
46
|
[data-filter-clear] button { background: transparent; }
|
|
47
47
|
.ui-filter-bar [data-filter-clear] button:disabled,
|
|
48
48
|
.ui-filter-bar [data-filter-clear] button[aria-disabled="true"],
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
filterPanelFit(); `is-closing` holds that geometry through the fade. A chip's menu
|
|
70
70
|
reaches for the kit's menu floor; the add control's catalogue asks for a panel's
|
|
71
71
|
width instead, because a search field over it reads "Searc" at 240. #549, #496
|
|
72
|
-
why: docs/components.md#
|
|
72
|
+
why: docs/components.md#filter-bar */
|
|
73
73
|
.ui-filter-bar [data-filter-add] .ui-dropdown__panel { --ui-filter-panel-ask: var(--panel-sm); }
|
|
74
74
|
.ui-filter-bar__chip .ui-dropdown.open .ui-dropdown__panel,
|
|
75
75
|
.ui-filter-bar__chip .ui-dropdown__panel.is-closing,
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
open menu too and left 9.8px of the check in a 240px menu — a chevron, not a
|
|
97
97
|
tick. Open the menu is at the floor with room for the mark, and `is-closing`
|
|
98
98
|
holds the open geometry through the fade, so it is open for this as well. #550
|
|
99
|
-
why: docs/components.md#
|
|
99
|
+
why: docs/components.md#filter-bar */
|
|
100
100
|
.ui-filter-bar__chip .ui-dropdown:not(.open) .ui-dropdown__panel:not(.is-closing) .ui-dropdown__tick {
|
|
101
101
|
flex-shrink: 1;
|
|
102
102
|
min-width: 0;
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
tab you are on, and keeps the kit's 16px check. The wash is a 1.2:1 tint, so the
|
|
108
108
|
check is what identifies the state under WCAG 1.4.1; Apple, Material, Carbon,
|
|
109
109
|
Primer and Radix all tick a chosen menu row. #549
|
|
110
|
-
why: docs/components.md#
|
|
110
|
+
why: docs/components.md#filter-bar */
|
|
111
111
|
.ui-filter-bar .ui-dropdown__item.is-selected { background: var(--glow-purple); /* code-bg: inherit — a translucent wash moves the ground, not the chip on it. */ }
|
|
112
112
|
/* A chip's menu lists the values the chip prints, so its rows take the body weight and
|
|
113
113
|
not the kit's semibold menu label. #757 */
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
hover deepens it: 9% more accent, the step .ui-table--zebra gives a hovered row.
|
|
127
127
|
The arrow keys need nothing here: ddSetActive() writes no .is-active without a search
|
|
128
128
|
field and filterBar() builds none, so an arrow key moves real focus instead. #578
|
|
129
|
-
why: docs/components.md#
|
|
129
|
+
why: docs/components.md#filter-bar */
|
|
130
130
|
.ui-filter-bar .ui-dropdown__item.is-selected:hover { background: color-mix(in srgb, var(--glow-purple), var(--accent) 9%); /* code-bg: inherit — a translucent wash moves the ground, not the chip on it. */ }
|
|
131
131
|
|
|
132
132
|
/* A chip's height — a remove mark's line box, padding and border — named so every chip,
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
chip alone leaves the text high: the chip is a fieldset. On a touch screen the row is a
|
|
141
141
|
chip's height, 40px, and a small button or segmented control on any of its lines takes
|
|
142
142
|
it too. #822, rev_1bef7d7c3b22/d5
|
|
143
|
-
why: docs/components.md#
|
|
143
|
+
why: docs/components.md#toolbar */
|
|
144
144
|
@media not (pointer: coarse) {
|
|
145
145
|
.ui-toolbar:has(> .ui-input-group > .ui-input--sm),
|
|
146
146
|
.ui-toolbar:has(> .ui-input-group > .ui-input--sm) .ui-filter-bar { --ui-filter-row-h: var(--btn-height-sm); }
|
package/src/styles/input.css
CHANGED
|
@@ -344,7 +344,7 @@
|
|
|
344
344
|
screen it keeps 16px text, because iOS zooms into a field under 16px, and stands 40px,
|
|
345
345
|
a chip's height. rev_1bef7d7c3b22/d5, #832 The group's
|
|
346
346
|
42px left padding outranks the side padding here, so the glyph keeps its place. #822
|
|
347
|
-
why: docs/components.md#
|
|
347
|
+
why: docs/components.md#search-field */
|
|
348
348
|
@media not (pointer: coarse) {
|
|
349
349
|
.ui-input--sm {
|
|
350
350
|
font-size: var(--text-sm);
|
package/src/styles/layout.css
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
font-family: var(--font-sans);
|
|
19
19
|
/* The rail's width, and the one property the fold moves: the nav's own column
|
|
20
20
|
plus the inset either side plus the rule, so the shell has no geometry of its
|
|
21
|
-
own to drift from the rows inside it. why: docs/components.md#
|
|
21
|
+
own to drift from the rows inside it. why: docs/components.md#page-shell */
|
|
22
22
|
--ui-rail-rule: 1px;
|
|
23
23
|
--ui-rail-w: calc(var(--ui-nav-col) + 2 * var(--space-4) + var(--ui-rail-rule));
|
|
24
24
|
}
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
width: var(--ui-rail-w);
|
|
50
50
|
/* hidden across, auto down: the fold clips what leaves the screen rather than
|
|
51
51
|
laying it out again. Two longhands, not the shorthand — the gates' CSS engine
|
|
52
|
-
does not read the pair. why: docs/components.md#
|
|
52
|
+
does not read the pair. why: docs/components.md#page-shell */
|
|
53
53
|
overflow-x: hidden;
|
|
54
54
|
overflow-y: auto;
|
|
55
55
|
transition: width var(--dur-med) var(--ease);
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
nav declares its own; these are the two that are not the nav. Scoped to the rail,
|
|
59
59
|
because the topbar layout draws the reader's block in its band instead and a column
|
|
60
60
|
the rail's width is no measurement for a box on a 52px line.
|
|
61
|
-
why: docs/components.md#
|
|
61
|
+
why: docs/components.md#page-shell */
|
|
62
62
|
.ui-app__rail > .ui-app__head,
|
|
63
63
|
.ui-app__rail > .ui-app__user { width: var(--ui-nav-col); flex: none; }
|
|
64
64
|
/* The rail is itself --surface, so nav.css's plate has no step here: 1.000:1, with a
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
text-decoration: none;
|
|
77
77
|
/* The lockup leaves on the words' clock, `visibility` with it so the link leaves
|
|
78
78
|
the tab order — `linear`, as every discrete property in the kit is.
|
|
79
|
-
why: docs/components.md#
|
|
79
|
+
why: docs/components.md#page-shell */
|
|
80
80
|
transition: opacity var(--dur-fast) var(--ease), visibility var(--dur-fast) linear;
|
|
81
81
|
/* display: brand — the rail's lockup is the same mark topbar.css sets, and the
|
|
82
82
|
two have to be the same face or the shell reads as two products. */
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
|
|
93
93
|
/* The head band: the product's mark, and the rail's own control at the far end of
|
|
94
94
|
the same line. `min-width: 0` so a long word shrinks the lockup rather than pushing
|
|
95
|
-
the control off the band. why: docs/components.md#
|
|
95
|
+
the control off the band. why: docs/components.md#page-shell */
|
|
96
96
|
.ui-app__head {
|
|
97
97
|
display: flex;
|
|
98
98
|
align-items: center;
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
/* The avatar is the reader block's own glyph, so half the difference between the
|
|
143
143
|
glyph column and itself is the inset that centres it on the line every glyph above
|
|
144
144
|
it stands on. The arithmetic and not the 5.5 it comes to: both numbers are declared
|
|
145
|
-
elsewhere. why: docs/components.md#
|
|
145
|
+
elsewhere. why: docs/components.md#page-shell */
|
|
146
146
|
.ui-app { --ui-app-av: 30px; }
|
|
147
147
|
.ui-app__av {
|
|
148
148
|
width: var(--ui-app-av); height: var(--ui-app-av); flex: none;
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
/* -- the reader's menu ---------------------------------------------------- */
|
|
161
161
|
/* The account block is a dropdown() trigger, so it takes the rail's own row skin
|
|
162
162
|
rather than the dropdown's pill — in place it is the last row of the rail. The
|
|
163
|
-
dropdown's own ring is left standing. why: docs/components.md#
|
|
163
|
+
dropdown's own ring is left standing. why: docs/components.md#page-shell */
|
|
164
164
|
.ui-app__user .ui-dropdown { width: 100%; }
|
|
165
165
|
.ui-app .ui-app__user-trigger {
|
|
166
166
|
width: 100%;
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
.ui-app__user-trigger .ui-app__who { flex: 1 1 auto; text-align: left; }
|
|
184
184
|
/* The panel is portalled onto <body>, so nothing here may hang off .ui-app: by the
|
|
185
185
|
time it is open it is no longer inside the rail that drew it.
|
|
186
|
-
why: docs/components.md#
|
|
186
|
+
why: docs/components.md#dropdown */
|
|
187
187
|
.ui-app__user-panel .ui-dropdown__head { display: flex; flex-direction: column; gap: 2px; }
|
|
188
188
|
.ui-app__user-panel .ui-dropdown__head b { display: block; color: var(--strong); font-size: var(--text-sm); font-weight: var(--weight-semibold); }
|
|
189
189
|
/* The address wraps rather than truncating: nothing bounds this line, so
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
/* The toggle's cell, at the far end of the brand row: the auto margin puts it there
|
|
196
196
|
with or without a wordmark beside it, and the offset below rides it back onto the
|
|
197
197
|
glyph column as the rail closes. `position: relative` and not a transform, because
|
|
198
|
-
the chip inside is `position: fixed`. why: docs/components.md#
|
|
198
|
+
the chip inside is `position: fixed`. why: docs/components.md#page-shell */
|
|
199
199
|
.ui-app__fold-row {
|
|
200
200
|
flex: none;
|
|
201
201
|
margin-inline-start: auto;
|
|
@@ -206,12 +206,12 @@
|
|
|
206
206
|
/* One box on the glyph column at both widths — --ui-nav-strip, the width nav.css
|
|
207
207
|
derives the closed rail from. `gap: 0` leaves that column the whole of the
|
|
208
208
|
content box, so the label below is squeezed to nothing until the chip rule lifts
|
|
209
|
-
it out. why: docs/components.md#
|
|
209
|
+
it out. why: docs/components.md#page-shell */
|
|
210
210
|
.ui-app__fold { width: var(--ui-nav-strip); gap: 0; }
|
|
211
211
|
/* The chip rule lifts the name out of the flow, and a 17px glyph is shorter than
|
|
212
212
|
the line the name occupied — so the button lost 0.39px on hover and moved every
|
|
213
213
|
row under it. The glyph box carries the line instead, in both states.
|
|
214
|
-
why: docs/components.md#
|
|
214
|
+
why: docs/components.md#page-shell */
|
|
215
215
|
.ui-app__fold .ui-nav__ic { height: 1lh; }
|
|
216
216
|
.ui-app .ui-app__fold { color: var(--text); }
|
|
217
217
|
.ui-app .ui-app__fold:hover,
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
|
|
231
231
|
The width's own clock, not the words', so the mark and the closing edge arrive
|
|
232
232
|
together; no `!important`, so the reduced-motion net still takes it.
|
|
233
|
-
why: docs/components.md#
|
|
233
|
+
why: docs/components.md#page-shell */
|
|
234
234
|
.ui-app__fold .ui-app__fold-arrow {
|
|
235
235
|
transform-box: view-box;
|
|
236
236
|
transform-origin: 15px 12px;
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
.ui-app.is-collapsed .ui-app__fold .ui-app__fold-arrow { transform: scaleX(-1); }
|
|
240
240
|
|
|
241
241
|
/* -- The collapsed rail --------------------------------------------------- */
|
|
242
|
-
/* The reader's own fold, at the widths that have a rail. why: docs/components.md#
|
|
242
|
+
/* The reader's own fold, at the widths that have a rail. why: docs/components.md#page-shell */
|
|
243
243
|
.ui-app.is-collapsed { --ui-rail-w: calc(var(--ui-nav-strip) + 2 * var(--space-4) + var(--ui-rail-rule)); }
|
|
244
244
|
:where(.ui-app.is-collapsed) .ui-app__rail .ui-nav__cap,
|
|
245
245
|
:where(.ui-app.is-collapsed) .ui-app__rail .ui-nav__label,
|
|
@@ -250,21 +250,21 @@
|
|
|
250
250
|
:where(.ui-app.is-collapsed) .ui-app__rail .ui-app__brand span { opacity: 0; pointer-events: none; }
|
|
251
251
|
/* The toggle rides onto the glyph column — the two widths' own difference — and the
|
|
252
252
|
lockup goes whole, since that column is where its mark stood. Below 720px there is
|
|
253
|
-
no rail, so none of this is drawn. why: docs/components.md#
|
|
253
|
+
no rail, so none of this is drawn. why: docs/components.md#page-shell */
|
|
254
254
|
:where(.ui-app.is-collapsed) .ui-app__head > .ui-app__fold-row { inset-inline-start: calc(var(--ui-nav-strip) - var(--ui-nav-col)); }
|
|
255
255
|
/* Both layouts put the toggle in the head (#732), so it lands where the mark stood.
|
|
256
|
-
why: docs/components.md#
|
|
256
|
+
why: docs/components.md#page-shell */
|
|
257
257
|
:where(.ui-app.is-collapsed) .ui-app__rail .ui-app__brand { opacity: 0; visibility: hidden; pointer-events: none; }
|
|
258
258
|
:where(.ui-app.is-collapsed) .ui-app__rail .ui-nav__sub { margin-inline-start: 0; padding-inline-start: 0; border-inline-start-width: 0; }
|
|
259
259
|
:where(.ui-app.is-collapsed) .ui-app__rail .ui-nav__item:not(:has(.ui-nav__ic))::after { opacity: 0.62; }
|
|
260
260
|
/* The current row's plate on the glyph column, and beside it the one thing a bare rail
|
|
261
261
|
does not do: an ordinary row drops its wash here, answered by the floating name below.
|
|
262
|
-
nav.css's folded rules, a rung further. why: docs/components.md#
|
|
262
|
+
nav.css's folded rules, a rung further. why: docs/components.md#page-shell */
|
|
263
263
|
:where(.ui-app.is-collapsed) .ui-app__rail .ui-nav__item.is-active { isolation: isolate; background: none; }
|
|
264
264
|
:where(.ui-app.is-collapsed) .ui-app__rail .ui-nav__item.is-active::before { content: ""; position: absolute; left: 0; top: 50%; width: var(--ui-nav-strip); height: 100%; border-radius: 10px; transform: translateY(-50%); /* motion: still — a mark on the current row, whose own highlight already transitions; this centres it, it does not travel */ background: var(--surface-3); /* code-bg: inherit — The plate contains no focus target. */ z-index: -1; }
|
|
265
265
|
:where(.ui-app.is-collapsed) .ui-app__rail .ui-nav__item:not(.is-danger):not(.is-active):hover { background: none; }
|
|
266
266
|
/* A row closes to the glyph column, so the rail's clip does not cut the right side of its
|
|
267
|
-
focus ring. why: docs/components.md#
|
|
267
|
+
focus ring. why: docs/components.md#page-shell */
|
|
268
268
|
:where(.ui-app.is-collapsed) .ui-app__rail .ui-nav__item,
|
|
269
269
|
:where(.ui-app.is-collapsed) .ui-app__rail .ui-app__user-trigger { width: var(--ui-nav-strip); }
|
|
270
270
|
/* The label IS the chip. `fixed` is the fallback placement, out of the rail's own
|
|
@@ -275,7 +275,7 @@
|
|
|
275
275
|
It floats by role — a readout placed over the page for as long as a pointer
|
|
276
276
|
rests on a row — so it takes the floating treatment the hover readout takes,
|
|
277
277
|
which is the same shape on the same step: the two-step edge and the drops.
|
|
278
|
-
why: docs/components.md#
|
|
278
|
+
why: docs/components.md#page-shell
|
|
279
279
|
why: docs/foundations.md#elevation */
|
|
280
280
|
:where(.ui-app.is-collapsed) .ui-app__rail .ui-nav__item:is(:hover, :focus-visible) > .ui-nav__label,
|
|
281
281
|
:where(.ui-app.is-collapsed) .ui-app__rail .ui-app__user-trigger:is(:hover, :focus-visible) > .ui-app__who,
|
|
@@ -318,7 +318,7 @@
|
|
|
318
318
|
arrangement where the rail's head band and the band close at the same height — what
|
|
319
319
|
the three heights below are for. Level, not one continuous stroke: the rail insets
|
|
320
320
|
its own rule, and in light that half is 1.009:1 on the rail's ground.
|
|
321
|
-
why: docs/components.md#
|
|
321
|
+
why: docs/components.md#page-shell */
|
|
322
322
|
.ui-app--topbar { --ui-app-band: 52px; }
|
|
323
323
|
.ui-app__well { display: flex; flex-direction: column; min-width: 0; }
|
|
324
324
|
.ui-app__bar {
|
|
@@ -347,7 +347,7 @@
|
|
|
347
347
|
like is the point. The STEP is not, and that is the one thing this control does
|
|
348
348
|
differently from every other field in the kit: the reason is on the declaration
|
|
349
349
|
below. It gives way before anything else on the band.
|
|
350
|
-
why: docs/components.md#
|
|
350
|
+
why: docs/components.md#page-shell */
|
|
351
351
|
.ui-app__search {
|
|
352
352
|
display: flex;
|
|
353
353
|
align-items: center;
|
|
@@ -387,7 +387,7 @@
|
|
|
387
387
|
.ui-app__search kbd { flex: none; }
|
|
388
388
|
/* The mark alone — no room for two lines on a 52px row. No rule over it, since the
|
|
389
389
|
band's hairline is under the whole of it, and no column, since this is not the rail.
|
|
390
|
-
why: docs/components.md#
|
|
390
|
+
why: docs/components.md#page-shell */
|
|
391
391
|
.ui-app__user--bar { flex: none; padding-top: 0; border-top: 0; }
|
|
392
392
|
/* The switch is a 34px square and stays one: the trigger above is the thing on this
|
|
393
393
|
band that gives way, and a flex item with the default shrink does not wait its
|
|
@@ -398,7 +398,7 @@
|
|
|
398
398
|
moves a 5.53px shortfall onto the account block's trailing gutter instead, because
|
|
399
399
|
nothing before it in that row has width to spare. topbar.css's --space-2 comment
|
|
400
400
|
names that choice and the gutter it leaves.
|
|
401
|
-
why: docs/components.md#
|
|
401
|
+
why: docs/components.md#page-shell */
|
|
402
402
|
.ui-app__bar .toggle, .topbar__in .toggle { flex: none; }
|
|
403
403
|
.ui-app__user--bar .ui-app__av { margin-inline-start: 0; }
|
|
404
404
|
/* In the band the trigger holds the 30px mark and no words, so it is a wordless button: a
|
|
@@ -471,7 +471,7 @@
|
|
|
471
471
|
.ui-toolbar--split > :last-child { margin-inline-start: auto; }
|
|
472
472
|
/* At one column the 6rem basis stops being a floor and becomes the field's size:
|
|
473
473
|
a row with two narrow chips beside it keeps all three on the line and cuts the
|
|
474
|
-
field's own placeholder off. why: docs/components.md#
|
|
474
|
+
field's own placeholder off. why: docs/components.md#toolbar */
|
|
475
475
|
@media (max-width: 560px) {
|
|
476
476
|
.ui-toolbar > .ui-input,
|
|
477
477
|
.ui-toolbar > .ui-input-group { flex-basis: 100%; }
|
|
@@ -504,7 +504,7 @@
|
|
|
504
504
|
control and the brand's mark, the control opens the same rail in the kit's left
|
|
505
505
|
drawer, and the reading column takes the whole width. The band, the control and the
|
|
506
506
|
drawer exist at every width and are not drawn above it, so the rail's rows above
|
|
507
|
-
720px are the rows they were. why: docs/components.md#
|
|
507
|
+
720px are the rows they were. why: docs/components.md#page-shell */
|
|
508
508
|
.ui-app__bar--phone { display: none; }
|
|
509
509
|
.ui-btn.ui-app__menu { display: none; }
|
|
510
510
|
.ui-app__brand--band { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; /* a finger's box around a 24px mark */ }
|
|
@@ -512,7 +512,7 @@
|
|
|
512
512
|
/* The drawer panel is --bg-elevated, which --surface matches exactly in light, so nav.css's
|
|
513
513
|
plate measures 1.00:1 there. The current row and the hover wash take the rung the rail
|
|
514
514
|
takes (--surface-3), and the count keeps its --surface pill on that plate. Dark already
|
|
515
|
-
has a step and keeps it. why: docs/components.md#
|
|
515
|
+
has a step and keeps it. why: docs/components.md#page-shell */
|
|
516
516
|
:where(:root[data-theme="light"]) .ui-app__drawer .ui-nav__item:not(.is-danger):not(.is-active):hover { background: color-mix(in srgb, var(--surface-3) 50%, transparent); /* code-bg: inherit — The wash keeps the containing ground. */ }
|
|
517
517
|
:where(:root[data-theme="light"]) .ui-app__drawer .ui-nav__item.is-active { background: var(--surface-3); /* code-bg: inherit — The control keeps the containing ground. */ }
|
|
518
518
|
@media (max-width: 720px) {
|
|
@@ -540,7 +540,7 @@
|
|
|
540
540
|
.ui-app__drawer .ui-drawer__footer { justify-content: flex-start; }
|
|
541
541
|
.ui-app__drawer .ui-app__user { width: 100%; }
|
|
542
542
|
/* A finger is the only pointer this width has, so a row and the account block are
|
|
543
|
-
held to 44px. why: docs/components.md#
|
|
543
|
+
held to 44px. why: docs/components.md#page-shell */
|
|
544
544
|
.ui-app__drawer .ui-nav__item,
|
|
545
545
|
.ui-app__drawer .ui-app__user-trigger { min-height: 44px; }
|
|
546
546
|
.ui-app__main { padding: 28px var(--space-4) 56px; }
|
|
@@ -599,7 +599,7 @@
|
|
|
599
599
|
/* A small search field stops at the width of a small panel, and the free width goes
|
|
600
600
|
before the last control. A full-size field still takes the free width. At one column
|
|
601
601
|
each search field takes the line again. rev_f1d664c42a55/d2, #822
|
|
602
|
-
why: docs/components.md#
|
|
602
|
+
why: docs/components.md#toolbar */
|
|
603
603
|
@media not (pointer: coarse) {
|
|
604
604
|
.ui-toolbar > .ui-input-group:has(> .ui-input--sm) { max-width: var(--panel-sm); }
|
|
605
605
|
}
|
|
@@ -613,7 +613,7 @@
|
|
|
613
613
|
its place (#729). Neither the sentence nor the cap is `display: none`: both are inside
|
|
614
614
|
the button's accessible name — the cap by Artur's call on #308 — so they are
|
|
615
615
|
clipped the way `.ui-sr` in loading.css clips, and the name holds at every width.
|
|
616
|
-
why: docs/components.md#
|
|
616
|
+
why: docs/components.md#page-shell */
|
|
617
617
|
@media (max-width: 560px) {
|
|
618
618
|
.ui-app__search-txt,
|
|
619
619
|
.ui-app__search kbd {
|
package/src/styles/loading.css
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* own red made it read as a fault the reader had committed. The lock says which
|
|
10
10
|
* of the two it is.
|
|
11
11
|
*
|
|
12
|
-
* why: docs/components.md#
|
|
12
|
+
* why: docs/components.md#loading-and-denied-states */
|
|
13
13
|
|
|
14
14
|
/* Visually hidden, still read aloud. The kit had no such utility, and the live
|
|
15
15
|
region needs one: its message is for assistive tech only — the sighted
|
package/src/styles/nav.css
CHANGED
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
.ui-nav__cap {
|
|
44
44
|
/* rank: label */
|
|
45
45
|
/* Words, never a control, at BOTH widths — as __label, __badge and __caret below.
|
|
46
|
-
why: docs/components.md#
|
|
46
|
+
why: docs/components.md#page-shell */
|
|
47
47
|
pointer-events: none;
|
|
48
48
|
font-size: var(--text-sm);
|
|
49
49
|
font-weight: var(--weight-medium);
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
font-family: inherit;
|
|
75
75
|
transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
|
|
76
76
|
}
|
|
77
|
-
.ui-nav .ui-nav__item { color: var(--text); } /* (0,2,0): a host sheet's a:link is (0,1,1) — why: docs/components.md#
|
|
77
|
+
.ui-nav .ui-nav__item { color: var(--text); } /* (0,2,0): a host sheet's a:link is (0,1,1) — why: docs/components.md#page-shell */
|
|
78
78
|
.ui-nav__item:hover { background: color-mix(in srgb, var(--surface) 50%, transparent); /* code-bg: inherit — The wash keeps the containing ground. */ color: var(--strong); }
|
|
79
79
|
.ui-nav__item.is-active {
|
|
80
80
|
background: var(--surface); /* code-bg: inherit — control paint; the containing surface is the ground, for a chip and for a band alike. */
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
/* The current row's one mark is a plate, and nothing closes it: on a rail row an
|
|
85
85
|
outline means focus and only focus. The plate is the quiet fill a rung off the
|
|
86
86
|
ground the rail stands on, so layout.css takes it the next rung where the rail
|
|
87
|
-
is itself --surface. #475 r33/r34. why: docs/components.md#
|
|
87
|
+
is itself --surface. #475 r33/r34. why: docs/components.md#page-shell */
|
|
88
88
|
|
|
89
89
|
/* Drawn inward: rows stand 2px apart, so an outward band crossed into the next row.
|
|
90
90
|
why: docs/foundations.md#the-focus-ring */
|
|
@@ -229,7 +229,7 @@
|
|
|
229
229
|
/* Every box in the rail closes with it, whether it paints or not. A block that keeps
|
|
230
230
|
the open column paints nothing and still takes the pointer off 175px of the page
|
|
231
231
|
beside a positioned rail (#588); clipping it instead cut the rows' ring (#575).
|
|
232
|
-
why: docs/components.md#
|
|
232
|
+
why: docs/components.md#page-shell */
|
|
233
233
|
.ui-nav--side.is-collapsed > * { width: var(--ui-nav-strip); }
|
|
234
234
|
.ui-nav--side.is-collapsed .ui-nav__item { width: var(--ui-nav-strip); }
|
|
235
235
|
/* The heading is the one box that keeps the open column: its line breaks are the rail's
|
package/src/styles/segmented.css
CHANGED
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
* 2px stroke, in --signal-contrast — the circle wears the accent's dark ramp in
|
|
97
97
|
* both themes, so its ink is the one for a fill, not the --accent-contrast that
|
|
98
98
|
* pairs with --accent-strong. Held by stories/accent-mark.test.js.
|
|
99
|
-
* why: docs/components.md#
|
|
99
|
+
* why: docs/components.md#choose-a-component, and #472 for the ring that was rejected. */
|
|
100
100
|
.ui-accent-picker button.is-active::after {
|
|
101
101
|
content: "";
|
|
102
102
|
position: absolute;
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
|
|
114
114
|
/* Underline tabs wrap for the reason the pills above do — #435 — and draw no
|
|
115
115
|
rule of their own: the chosen tab carries the selection. #527, #545
|
|
116
|
-
why: docs/components.md#
|
|
116
|
+
why: docs/components.md#segmented */
|
|
117
117
|
.ui-seg--underline { flex-wrap: wrap; overflow: visible; row-gap: var(--space-1); align-self: stretch; justify-self: stretch; background: transparent; border-radius: 0; padding: var(--space-1); max-width: 100%; }
|
|
118
118
|
/* `anywhere` is the half `break-word` cannot do: it lowers the tab's min-content
|
|
119
119
|
width, so one unbreakable word narrows rather than widening the page. The
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
stood here cancelled the accent outline the pill rule gave every chosen button;
|
|
131
131
|
#578 round r34 took that outline off, so there is nothing left to cancel — and
|
|
132
132
|
nothing outranking the kit's focus rule, which is why the restatement under the
|
|
133
|
-
bar is gone with it. why: docs/components.md#
|
|
133
|
+
bar is gone with it. why: docs/components.md#segmented */
|
|
134
134
|
.ui-seg--underline button.is-active,
|
|
135
135
|
.ui-seg--underline button[aria-pressed="true"] {
|
|
136
136
|
background: none;
|
package/src/styles/table.css
CHANGED
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
The mark is the consumer's because a selector counts elements and not words: `:only-child`
|
|
188
188
|
reads `<td>Invoice <a>1162</a></td>` as a lone link too. The link is named rather than
|
|
189
189
|
denied — a denylist of the anchors that own their box went stale twice (#510).
|
|
190
|
-
why: docs/components.md#
|
|
190
|
+
why: docs/components.md#data-table, #500
|
|
191
191
|
held by: src/styles/table-focus.test.js */
|
|
192
192
|
.ui-table td.ui-table__linked:has(> :is(a:not([class]), a.ui-identity):only-child) { padding: 0; height: 1px; }
|
|
193
193
|
.ui-table td.ui-table__linked > :is(a:not([class]), a.ui-identity):only-child {
|
|
@@ -433,7 +433,7 @@ a.ui-identity:hover { text-decoration: underline; }
|
|
|
433
433
|
retunes. The cut takes NO margin — the cell is sticky and the next column scrolls
|
|
434
434
|
under it, so whatever the cut lets out is painted over that column. A child's ring
|
|
435
435
|
needs 3px and the cell's padding is 12px, so the room comes from the padding.
|
|
436
|
-
why: docs/components.md#
|
|
436
|
+
why: docs/components.md#data-table, #500, #513 */
|
|
437
437
|
/* A percentage can stretch an intrinsic table beyond its content. */
|
|
438
438
|
.ui-card--fit .ui-table--pinned .ui-table__identity { width: 1px; }
|
|
439
439
|
.ui-table--pinned .ui-table__identity {
|
|
@@ -633,7 +633,7 @@ a.ui-identity:hover { text-decoration: underline; }
|
|
|
633
633
|
heading is, semibold in strong ink on the same hairline, so the two read as one kind of
|
|
634
634
|
line. Its rows are held apart by space, as the drawer's pairs are, with no line between.
|
|
635
635
|
A hover table keeps its own row floor, because its rows are targets.
|
|
636
|
-
why: docs/components.md#
|
|
636
|
+
why: docs/components.md#drawer */
|
|
637
637
|
.ui-drawer .ui-drawer__section .ui-table thead th {
|
|
638
638
|
padding-bottom: var(--space-2);
|
|
639
639
|
font-weight: var(--weight-semibold);
|
package/src/styles/tooltip.css
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* host, so showing it, filling it and moving it change the size of nothing.
|
|
8
8
|
* The React readout is a manual popover: open, it sits in the top layer and is
|
|
9
9
|
* fixed to the view, so no ancestor cuts it and no sticky cell covers it.
|
|
10
|
-
* why: docs/components.md#
|
|
10
|
+
* why: docs/components.md#tooltip
|
|
11
11
|
* ========================================================================== */
|
|
12
12
|
|
|
13
13
|
.ui-tip-host { position: relative; }
|