@plexui/styles 0.6.0 → 0.8.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.
@@ -32,18 +32,23 @@
32
32
  screen at its bottom, as iOS 27 does, the text centred above). A text link stays under the text. Outside
33
33
  the phone layout these rules do not apply, so a caller's own spacing and button widths stand. */
34
34
  @media (max-width: 767px) {
35
+
36
+ .EmptyMessage:is([data-fill="static"], [data-fill="absolute"]):not([data-size="sm"]) {
37
+
38
+ /* The first part above the buttons, found from its own side: a :has() left of a subject of no class or
39
+ attribute makes every change to the page restyle all of it */
40
+ }
35
41
  .EmptyMessage:is([data-fill="static"], [data-fill="absolute"]):not([data-size="sm"]) > :is(.Title, .Description) {
36
42
  padding-inline: var(--empty-message-text-inset, 0px);
37
43
  }
44
+ .EmptyMessage:is([data-fill="static"], [data-fill="absolute"]):not([data-size="sm"]) > :first-child:not(.ActionRow):has(~ .ActionRow > [data-variant]) {
45
+ margin-top: var(--empty-message-fill-content-margin, 0px);
46
+ }
38
47
 
39
48
  .EmptyMessage:is([data-fill="static"], [data-fill="absolute"]):not([data-size="sm"]):has(> .ActionRow > [data-variant]) {
40
49
  padding-top: var(--empty-message-fill-action-inset, 0px);
41
50
  }
42
51
 
43
- .EmptyMessage:is([data-fill="static"], [data-fill="absolute"]):not([data-size="sm"]):has(> .ActionRow > [data-variant]) > :first-child:not(.ActionRow) {
44
- margin-top: var(--empty-message-fill-content-margin, 0px);
45
- }
46
-
47
52
  .EmptyMessage:is([data-fill="static"], [data-fill="absolute"]):not([data-size="sm"]):has(> .ActionRow > [data-variant]) > .ActionRow {
48
53
  align-self: var(--empty-message-fill-action-align, auto);
49
54
  margin-top: var(--empty-message-fill-action-margin, var(--empty-message-action-spacing, calc(var(--spacing) * 4)));
@@ -54,18 +59,23 @@
54
59
  width: var(--empty-message-fill-action-width, auto);
55
60
  }
56
61
  }
62
+
63
+ :where([data-plex-layout="phone"]) .EmptyMessage:is([data-fill="static"], [data-fill="absolute"]):not([data-size="sm"]) {
64
+
65
+ /* The first part above the buttons, found from its own side: a :has() left of a subject of no class or
66
+ attribute makes every change to the page restyle all of it */
67
+ }
57
68
  :where([data-plex-layout="phone"]) .EmptyMessage:is([data-fill="static"], [data-fill="absolute"]):not([data-size="sm"]) > :is(.Title, .Description) {
58
69
  padding-inline: var(--empty-message-text-inset, 0px);
59
70
  }
71
+ :where([data-plex-layout="phone"]) .EmptyMessage:is([data-fill="static"], [data-fill="absolute"]):not([data-size="sm"]) > :first-child:not(.ActionRow):has(~ .ActionRow > [data-variant]) {
72
+ margin-top: var(--empty-message-fill-content-margin, 0px);
73
+ }
60
74
 
61
75
  :where([data-plex-layout="phone"]) .EmptyMessage:is([data-fill="static"], [data-fill="absolute"]):not([data-size="sm"]):has(> .ActionRow > [data-variant]) {
62
76
  padding-top: var(--empty-message-fill-action-inset, 0px);
63
77
  }
64
78
 
65
- :where([data-plex-layout="phone"]) .EmptyMessage:is([data-fill="static"], [data-fill="absolute"]):not([data-size="sm"]):has(> .ActionRow > [data-variant]) > :first-child:not(.ActionRow) {
66
- margin-top: var(--empty-message-fill-content-margin, 0px);
67
- }
68
-
69
79
  :where([data-plex-layout="phone"]) .EmptyMessage:is([data-fill="static"], [data-fill="absolute"]):not([data-size="sm"]):has(> .ActionRow > [data-variant]) > .ActionRow {
70
80
  align-self: var(--empty-message-fill-action-align, auto);
71
81
  margin-top: var(--empty-message-fill-action-margin, var(--empty-message-action-spacing, calc(var(--spacing) * 4)));
@@ -133,23 +143,31 @@
133
143
  height: var(--badge-size);
134
144
  border-radius: var(--empty-message-icon-radius, var(--radius-md));
135
145
  margin: 0 0 var(--empty-message-icon-gap, 12px);
136
- background: var(--badge-background-color);
146
+ background: var(--empty-message-icon-background, var(--badge-background-color));
137
147
  color: var(--badge-text-color);
148
+
149
+ /* A compact badge stays a tinted badge on every width (a phone's bare ContentUnavailableView symbol is for the
150
+ default size only) */
138
151
  }
139
152
 
140
153
  .IconBadge svg {
141
154
  width: var(--icon-size);
142
155
  height: var(--icon-size);
143
156
  }
144
-
145
- .IconBadge[data-size="sm"] {
157
+ .IconBadge[data-size="sm"],
158
+ :where(.EmptyMessage[data-size="sm"]) .IconBadge {
146
159
  --badge-size: 32px;
147
160
  --icon-size: 20px;
161
+
162
+ --empty-message-icon-secondary-color: var(--color-text-secondary-soft);
163
+
164
+ border-radius: var(--radius-md);
165
+ background: var(--badge-background-color);
148
166
  }
149
167
 
150
168
  .IconBadge[data-color="secondary"] {
151
169
  --badge-background-color: var(--color-background-secondary-soft);
152
- --badge-text-color: var(--color-text-secondary-soft);
170
+ --badge-text-color: var(--empty-message-icon-secondary-color, var(--color-text-secondary-soft));
153
171
  }
154
172
 
155
173
  .IconBadge[data-color="warning"] {
@@ -209,6 +227,14 @@
209
227
  --button-font-size-xl: var(--empty-message-action-font-size, var(--control-font-size-md));
210
228
  --button-line-height-xl: var(--empty-message-action-line-height, 1);
211
229
  --button-gutter-xl: var(--empty-message-action-gutter, var(--control-gutter-lg));
230
+ --button-size-2xl: var(--empty-message-action-size, var(--control-size-2xl));
231
+ --button-font-size-2xl: var(--empty-message-action-font-size, var(--control-font-size-lg));
232
+ --button-line-height-2xl: var(--empty-message-action-line-height, 1);
233
+ --button-gutter-2xl: var(--empty-message-action-gutter, var(--control-gutter-lg));
234
+ --button-size-3xl: var(--empty-message-action-size, var(--control-size-3xl));
235
+ --button-font-size-3xl: var(--empty-message-action-font-size, var(--control-font-size-lg));
236
+ --button-line-height-3xl: var(--empty-message-action-line-height, 1);
237
+ --button-gutter-3xl: var(--empty-message-action-gutter, var(--control-gutter-xl));
212
238
  }/* Every action button, a plain (ghost) one too, takes the message's label weight where it sets one (a phone: the
213
239
  kit's 17 Medium for its Primary and its Tertiary). Set on the button, as touch.css sets a filled button's
214
240
  Semibold on the button itself. */.EmptyMessage:not([data-size="sm"]) .ActionRow > [data-variant] {
@@ -216,9 +242,10 @@
216
242
  }.EmptyMessage:not([data-size="sm"]) .ActionRow:has(> :nth-child(2)) {
217
243
  flex-direction: var(--empty-message-multi-direction, row);
218
244
  align-self: var(--empty-message-multi-align, auto);
245
+ /* In a column each button keeps its own width (a phone), instead of stretching to the longest label */
246
+ align-items: var(--empty-message-multi-items, normal);
247
+ }/* One of two or more buttons is not an only child: a :has() on the row left of a subject of tags alone makes every
248
+ change to the page restyle much of it */.EmptyMessage:not([data-size="sm"]) .ActionRow > :where(button, a):not(:only-child) {
249
+ width: var(--empty-message-multi-action-width, auto);
219
250
  }
220
-
221
- .EmptyMessage:not([data-size="sm"]) .ActionRow:has(> :nth-child(2)) > :where(button, a) {
222
- width: var(--empty-message-multi-action-width, auto);
223
- }
224
251
  }
@@ -201,6 +201,37 @@
201
201
  justify-self: end;
202
202
  min-width: 0;
203
203
  max-width: 100%;
204
+ }/* A row that leads with a symbol or an app's picture (`icon`), as an iOS cell's image (kit Lists Row 550:50430: a 28
205
+ column and 8 to the text, so the text and the line above the row start at 56 on a phone, IMG_5952). The column
206
+ stands at the row's inset, centred in the row's height; the text moves past it. */.Field:where([data-row]):has(> .Icon) {
207
+ --field-group-separator-inset-start: calc(var(--field-row-padding-inline) + var(--field-row-icon-size) + var(--field-row-icon-gap));
208
+
209
+ position: relative;
210
+ padding-inline-start: calc(var(--field-row-padding-inline) + var(--field-row-icon-size) + var(--field-row-icon-gap));
211
+ }/* A row of a Sortable wraps the Field with its grip: the wrapper draws the line, so it takes the inset too (not with
212
+ the grip placed before the row, where the text starts after the grip as well) */:where(:not([data-handle-placement="start"]) > [data-row]):has(> .Field:where([data-row]) > .Icon) {
213
+ --field-group-separator-inset-start: calc(var(--field-row-padding-inline) + var(--field-row-icon-size) + var(--field-row-icon-gap));
214
+ }.Icon {
215
+ position: absolute;
216
+ inset-inline-start: var(--field-row-padding-inline);
217
+ top: 50%;
218
+ display: flex;
219
+ align-items: center;
220
+ justify-content: center;
221
+ width: var(--field-row-icon-size);
222
+ height: var(--field-row-icon-size);
223
+ color: var(--field-row-icon-color);
224
+ translate: 0 -50%;
225
+ pointer-events: none;
226
+ }.Icon > img {
227
+ width: 100%;
228
+ height: 100%;
229
+ border-radius: var(--field-row-icon-radius);
230
+ -o-object-fit: cover;
231
+ object-fit: cover;
232
+ }.Icon > svg {
233
+ width: var(--field-row-icon-symbol-size);
234
+ height: var(--field-row-icon-symbol-size);
204
235
  }/* A control that needs the width takes its own line, the label goes quiet above it */.Field:where([data-row][data-orientation="vertical"]) {
205
236
  --field-label-font-size: var(--field-row-above-font-size);
206
237
  --field-label-line-height: var(--field-row-above-line-height);
@@ -251,6 +282,33 @@
251
282
  }/* Set on the buttons too: a phone gives a filled button its own weight (touch.css), which the inherited value
252
283
  would not outweigh. */.Action :where(button, a, [role="link"]) {
253
284
  --button-font-weight: var(--field-row-action-font-weight);
285
+ }/* A row that is not `fill` takes its action after the control, at the row's end. It weighs as a row alone, so a
286
+ group with `columns` keeps its own columns (Codex #46). */.Field:where([data-row]:not([data-fill], [data-orientation="vertical"]):has(> .Action):is(:has(> .Icon), :not(:has(> .Content > .Control > :only-child > label:only-child:not([data-has-label]) [role="radio"])))) {
287
+ grid-template-columns: minmax(0, 1fr) auto auto;
288
+ }/* A choice with an action at its end, such as the info button of a VPN or a network, leads with its mark in the
289
+ icon column, so the action alone stands at the end (Settings › VPN, IMG_5959: the check at 32 from the group's
290
+ edge, the words at 60, the info symbol at the row's inset; the kit's icon column puts them at 34 and 56). Only a single radio without a label of its own: a RadioGroup of
291
+ several choices keeps its place (Codex #46), a row with an `icon` keeps its icon there (Codex #47), and a vertical row its own layout (Codex #48). */.Field:where([data-row]:not([data-fill], [data-orientation="vertical"])):has(> .Action):not(:has(> .Icon)):has(> .Content > .Control > :only-child > label:only-child:not([data-has-label]) [role="radio"]) {
292
+ --field-group-separator-inset-start: calc(var(--field-row-padding-inline) + var(--field-row-icon-size) + var(--field-row-icon-gap));
293
+
294
+ position: relative;
295
+ padding-inline-start: calc(var(--field-row-padding-inline) + var(--field-row-icon-size) + var(--field-row-icon-gap));
296
+ }/* The action takes the control's column; the control leaves the grid for the row's padding box (a grid area would
297
+ be its containing block) */.Field:where([data-row]:not([data-fill], [data-orientation="vertical"])):has(> .Action):not(:has(> .Icon)):has(> .Content > .Control > :only-child > label:only-child:not([data-has-label]) [role="radio"]) > .Action {
298
+ /* Its symbol is a row's symbol, as the info symbol of Settings › VPN (21.3pt of ink, a 24px icon) */
299
+ --button-icon-size-md: var(--field-row-icon-symbol-size);
300
+
301
+ /* The last column: the second of a row, the third of a group with `columns` (Codex #45) */
302
+ grid-column: -2;
303
+ }.Field:where([data-row]:not([data-fill], [data-orientation="vertical"])):has(> .Action):not(:has(> .Icon)) > .Content > .Control:has(> :only-child > label:only-child:not([data-has-label]) [role="radio"]) {
304
+ position: absolute;
305
+ grid-area: auto;
306
+ inset-inline-start: var(--field-row-padding-inline);
307
+ top: 50%;
308
+ display: flex;
309
+ justify-content: center;
310
+ width: var(--field-row-icon-size);
311
+ translate: 0 -50%;
254
312
  }/* A framed field in a row: its width cannot follow what is typed, so it has one,
255
313
  wider for words than for a number. A ghost has the row for its frame, a Select
256
314
  follows its value, and fields set out by a wrapper of their own size themselves. */.Field:where([data-row]:not([data-orientation="vertical"])) .Control:has(
@@ -316,7 +374,16 @@
316
374
  }
317
375
  }/* On a phone a list takes the width of its own line under the label and the action.
318
376
  The row is the frame of every field, as on iOS: the framed and the filled (soft) fields
319
- of the web read as the ghost above, with nothing for the author to change. */@media (max-width: 767px) {
377
+ of the web read as the ghost above, with nothing for the author to change. *//* Choice and popup rows forward non-interactive clicks to their control: the whole row is its target, on every
378
+ width (owner 14.11: «кликабельная вся строка должна быть»). With a mouse the row fills on hover as a row action
379
+ does; the group gives the first and last rows its corners. */.Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):not([disabled], [data-disabled], [aria-disabled="true"], [aria-hidden="true"])),
380
+ .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Content > .Control > :is(button, [role="button"])[aria-haspopup]:not([aria-haspopup="false"], [disabled], [data-disabled], [aria-disabled="true"], [data-loading], [aria-busy="true"])) {
381
+ cursor: pointer;
382
+ }@media (hover: hover) and (min-width: 768px) {
383
+ .Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):not([disabled], [data-disabled], [aria-disabled="true"], [aria-hidden="true"])):hover:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)), .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Content > .Control > :is(button, [role="button"])[aria-haspopup]:not([aria-haspopup="false"], [disabled], [data-disabled], [aria-disabled="true"], [data-loading], [aria-busy="true"])):hover:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
384
+ background: var(--field-row-hover-background);
385
+ }
386
+ }@media (max-width: 767px) {
320
387
  .Field:where([data-row]) {
321
388
  --field-description-color: var(--mobile-label-secondary, var(--color-text-secondary));
322
389
  --field-row-above-color: var(--mobile-label-secondary, var(--color-text-tertiary));
@@ -328,12 +395,6 @@
328
395
  row-gap: var(--mobile-field-error-offset, var(--field-row-row-gap));
329
396
  }
330
397
 
331
- /* Choice and popup rows forward non-interactive clicks to their control. */
332
- .Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):not([disabled], [data-disabled], [aria-disabled="true"], [aria-hidden="true"])),
333
- .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Content > .Control > :is(button, [role="button"])[aria-haspopup]:not([aria-haspopup="false"], [disabled], [data-disabled], [aria-disabled="true"], [data-loading], [aria-busy="true"])) {
334
- cursor: pointer;
335
- }
336
-
337
398
  /* The same rows, with their control disabled, read as disabled: the row is that control's
338
399
  target, as a disabled row action of the kit is gray (Lists, Row - Button, Value=Disabled
339
400
  550:49735), and an item's own label dims with it outside a row. Without this, an option
@@ -438,7 +499,8 @@
438
499
  grid-row: 2;
439
500
  }
440
501
 
441
- .Action {
502
+ /* A fill row's two columns; another row keeps its action after its control (Codex #45) */
503
+ .Field:where([data-row][data-fill]) > .Action {
442
504
  grid-column: 2;
443
505
  }
444
506
 
@@ -735,11 +797,6 @@
735
797
  row-gap: var(--mobile-field-error-offset, var(--field-row-row-gap));
736
798
  }
737
799
 
738
- /* Choice and popup rows forward non-interactive clicks to their control. */
739
- :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):not([disabled], [data-disabled], [aria-disabled="true"], [aria-hidden="true"])), :where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Content > .Control > :is(button, [role="button"])[aria-haspopup]:not([aria-haspopup="false"], [disabled], [data-disabled], [aria-disabled="true"], [data-loading], [aria-busy="true"])) {
740
- cursor: pointer;
741
- }
742
-
743
800
  /* The same rows, with their control disabled, read as disabled: the row is that control's
744
801
  target, as a disabled row action of the kit is gray (Lists, Row - Button, Value=Disabled
745
802
  550:49735), and an item's own label dims with it outside a row. Without this, an option
@@ -842,7 +899,8 @@
842
899
  grid-row: 2;
843
900
  }
844
901
 
845
- :where([data-plex-layout="phone"]) .Action {
902
+ /* A fill row's two columns; another row keeps its action after its control (Codex #45) */
903
+ :where([data-plex-layout="phone"]) .Field:where([data-row][data-fill]) > .Action {
846
904
  grid-column: 2;
847
905
  }
848
906
 
@@ -44,13 +44,118 @@
44
44
  .Body > [data-sortable]:last-child > [data-swipe-actions]:last-child {
45
45
  border-end-start-radius: calc(var(--field-group-radius) - var(--field-group-border-width));
46
46
  border-end-end-radius: calc(var(--field-group-radius) - var(--field-group-border-width));
47
- }/* Desktop separators remain part of the row border. */.Body > [data-row] + [data-row],
48
- .Body > [data-sortable] > [data-row] + [data-row] {
47
+ }/* A full-row action's hover and press fill the row and keep the card's corners on the first and last rows: inside
48
+ the card's border, so its radius less the border (owner 14.11: «hover/pressed должно иметь скругления фона»).
49
+ The phone takes the card's own radius below. */.Body > [data-row]:first-child > button[data-block][data-variant="ghost"]::before,
50
+ .Body > [data-sortable]:first-child > [data-row]:first-child > button[data-block][data-variant="ghost"]::before,
51
+ .Body > [data-row]:first-child > [data-swipe-content] > button[data-block][data-variant="ghost"]::before {
52
+ border-start-start-radius: calc(var(--field-group-radius) - var(--field-group-border-width));
53
+ border-start-end-radius: calc(var(--field-group-radius) - var(--field-group-border-width));
54
+ }.Body > [data-row]:last-child > button[data-block][data-variant="ghost"]::before,
55
+ .Body > [data-sortable]:last-child > [data-row]:last-child > button[data-block][data-variant="ghost"]::before,
56
+ .Body > [data-row]:last-child > [data-swipe-content] > button[data-block][data-variant="ghost"]::before {
57
+ border-end-start-radius: calc(var(--field-group-radius) - var(--field-group-border-width));
58
+ border-end-end-radius: calc(var(--field-group-radius) - var(--field-group-border-width));
59
+ }/* A full-row action is the cell itself: a press fills it to the cell's edges and does not shrink, on every width
60
+ (owner 14.11: «уменьшается по ширине появляются просветы»). */.Body > [data-row] > button[data-block][data-variant="ghost"],
61
+ .Body > [data-sortable] > [data-row] > button[data-block][data-variant="ghost"],
62
+ .Body > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"],
63
+ .Body > [data-sortable] > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"] {
64
+ --button-mobile-material-scale: 1;
65
+ }/* A row that is an action is the row itself, as an iOS 27.2 List draws a Button (owner 14.11: «без шеврона кнопки»,
66
+ «в PlexUI такого нет же?»): the row's height (52) and label type (17/22 on a phone), its words where a row's label
67
+ starts (the row inset, 20 on a phone) and no chevron. The Button's color tints the words: info for the accent,
68
+ danger for a destructive row, secondary for a row that opens a choice. An icon after the words stands at the row's
69
+ trailing edge (arrow.up.right of a link that leaves the app, a 12pt glyph 20 from the edge). A row with
70
+ data-align="center" centres its words, as Settings puts "Reset to Default" in a group of its own. */.Body > [data-row] > button[data-block][data-variant="ghost"],
71
+ .Body > [data-sortable] > [data-row] > button[data-block][data-variant="ghost"],
72
+ .Body > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"],
73
+ .Body > [data-sortable] > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"] {
74
+ --button-size-md: var(--field-row-min-height);
75
+ --button-font-size-md: var(--field-row-label-font-size);
76
+ --button-line-height-md: var(--field-row-label-line-height);
77
+ --button-font-weight: var(--field-row-label-font-weight);
78
+ --button-gutter-md: var(--field-row-padding-inline);
79
+ --button-icon-size-md: var(--field-row-icon-symbol-size);
80
+ --button-touch-radius: 0px;
81
+ --button-justify-content: flex-start;
82
+ text-align: start;
83
+ }
84
+
85
+ .Body > [data-row] > button[data-block][data-variant="ghost"] > span > svg:last-child:not(:first-child), .Body > [data-sortable] > [data-row] > button[data-block][data-variant="ghost"] > span > svg:last-child:not(:first-child), .Body > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"] > span > svg:last-child:not(:first-child), .Body > [data-sortable] > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"] > span > svg:last-child:not(:first-child) {
86
+ margin-inline-start: auto;
87
+ }.Body > [data-row][data-align="center"] > button[data-block][data-variant="ghost"],
88
+ .Body > [data-sortable] > [data-row][data-align="center"] > button[data-block][data-variant="ghost"],
89
+ .Body > [data-row][data-align="center"] > [data-swipe-content] > button[data-block][data-variant="ghost"],
90
+ .Body > [data-sortable] > [data-row][data-align="center"] > [data-swipe-content] > button[data-block][data-variant="ghost"] {
91
+ --button-justify-content: center;
92
+ text-align: center;
93
+ }
94
+
95
+ /* Centred words keep their icon beside them, not at the edge */
96
+ .Body > [data-row][data-align="center"] > button[data-block][data-variant="ghost"] > span > svg:last-child:not(:first-child), .Body > [data-sortable] > [data-row][data-align="center"] > button[data-block][data-variant="ghost"] > span > svg:last-child:not(:first-child), .Body > [data-row][data-align="center"] > [data-swipe-content] > button[data-block][data-variant="ghost"] > span > svg:last-child:not(:first-child), .Body > [data-sortable] > [data-row][data-align="center"] > [data-swipe-content] > button[data-block][data-variant="ghost"] > span > svg:last-child:not(:first-child) {
97
+ margin-inline-start: 0;
98
+ }/* With a mouse a row action hovers as a choice row does, in the row's light fill */@media (hover: hover) and (min-width: 768px) {
99
+ .Body > [data-row] > button[data-block][data-variant="ghost"]:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)),
100
+ .Body > [data-sortable] > [data-row] > button[data-block][data-variant="ghost"]:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)),
101
+ .Body > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"]:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)),
102
+ .Body > [data-sortable] > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"]:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
103
+ --color-background-secondary-ghost-hover: var(--field-row-hover-background);
104
+ }
105
+ }/* A row that fills on hover (a choice row with a mouse) keeps the card's corners too */.Body > [data-row]:first-child,
106
+ .Body > [data-sortable]:first-child > [data-row]:first-child {
107
+ border-start-start-radius: calc(var(--field-group-radius) - var(--field-group-border-width));
108
+ border-start-end-radius: calc(var(--field-group-radius) - var(--field-group-border-width));
109
+ }.Body > [data-row]:last-child,
110
+ .Body > [data-sortable]:last-child > [data-row]:last-child {
111
+ border-end-start-radius: calc(var(--field-group-radius) - var(--field-group-border-width));
112
+ border-end-end-radius: calc(var(--field-group-radius) - var(--field-group-border-width));
113
+ }/* A Field inside a sorted row fills with the row's corners */.Body > [data-sortable] > [data-row] > [data-row] {
114
+ border-radius: inherit;
115
+ }/* Desktop separators remain part of the row border. *//* A sorted list and a plain row beside it (Add Language… after the languages, IMG_5951) part with the same line. */.Body > [data-row] + [data-row],
116
+ .Body > [data-sortable] > [data-row] + [data-row],
117
+ .Body > [data-sortable] + [data-row],
118
+ .Body > [data-row] + [data-sortable] > [data-row]:first-child {
49
119
  border-top: 1px solid var(--color-border);
50
120
  }@media (max-width: 767px) {
51
121
  .FieldGroup {
52
122
  --field-group-description-color: var(--mobile-label-secondary, var(--color-text-secondary));
53
123
  --field-group-title-color: var(--mobile-label-secondary, var(--color-text-secondary));
124
+ /* Each group reads its own pairing: a group inside another does not take the outer one's (Codex #39) */
125
+ --field-group-gap-footer-offset: 0px;
126
+ --field-group-gap-header-offset: 0px;
127
+ }
128
+
129
+ /* With touch.css, groups one after another space themselves as an iOS 27.2 inset list (SwiftUI List on the simulator, 402pt):
130
+ rows to rows 37 (--field-group-gap); a header 60, a prominent header 64; a footer of one line 49.5 and 16 more
131
+ for each further line; a footer and a header 72, a footer and a prominent header 75.6. The header's block (39,
132
+ or 45 when prominent) and the footer's (8 + 16 a line + 6) stand in the gap, so the margin gives back what they
133
+ take beyond the native step: 16 for a header, 18.3 for a prominent one, 17.5 for a footer. Stack the groups in
134
+ a block without a gap of its own; where a parent's gap stands between them, set --field-group-gap to 37px less
135
+ that gap. */
136
+ /* A group may stand in a RadioGroup of its own, around the group of its choices: that radio group spaces as the
137
+ group. Only a radio group: a layout cell holding one group (a column of a grid) keeps its place (Codex #43). */
138
+ [role="radiogroup"]:has(> .FieldGroup:only-child) {
139
+ --field-group-gap-footer-offset: 0px;
140
+ --field-group-gap-header-offset: 0px;
141
+ }
142
+
143
+ :is(.FieldGroup, [role="radiogroup"]:has(> .FieldGroup:only-child)) + :is(.FieldGroup, [role="radiogroup"]:has(> .FieldGroup:only-child)) {
144
+ /* Only with touch.css, which turns --field-group-stack-spacing on: a page without it keeps its own layout's
145
+ gaps, a grid's columns level (Codex #58) */
146
+ margin-top: calc(var(--field-group-stack-spacing, 0) * (var(--field-group-gap, 37px) - var(--field-group-gap-footer-offset, 0px) - var(--field-group-gap-header-offset, 0px)));
147
+ }
148
+
149
+ :is(.FieldGroup:has(> .Footer), [role="radiogroup"]:has(> .FieldGroup:only-child > .Footer)) + :is(.FieldGroup, [role="radiogroup"]:has(> .FieldGroup:only-child)) {
150
+ --field-group-gap-footer-offset: 17.5px;
151
+ }
152
+
153
+ :is(.FieldGroup, [role="radiogroup"]:has(> .FieldGroup:only-child)) + :is(.FieldGroup:has(> .Header), [role="radiogroup"]:has(> .FieldGroup:only-child > .Header)) {
154
+ --field-group-gap-header-offset: 16px;
155
+ }
156
+
157
+ :is(.FieldGroup, [role="radiogroup"]:has(> .FieldGroup:only-child)) + :is(.FieldGroup[data-header-prominence="increased"]:has(> .Header), [role="radiogroup"]:has(> .FieldGroup[data-header-prominence="increased"]:only-child > .Header)) {
158
+ --field-group-gap-header-offset: 18.3px;
54
159
  }
55
160
 
56
161
  /* The kit's Prominent list header (Lists, Header 517:38042, Type=Prominent): Title 3 Semibold
@@ -102,7 +207,9 @@
102
207
  }
103
208
 
104
209
  .Body > [data-row] + [data-row],
105
- .Body > [data-sortable] > [data-row] + [data-row] {
210
+ .Body > [data-sortable] > [data-row] + [data-row],
211
+ .Body > [data-sortable] + [data-row],
212
+ .Body > [data-row] + [data-sortable] > [data-row]:first-child {
106
213
  position: relative;
107
214
  border-top-width: 0;
108
215
  }
@@ -117,13 +224,13 @@
117
224
  }
118
225
 
119
226
  .Body > [data-row]:first-child > button[data-block][data-variant="ghost"]::before,
120
- .Body > [data-sortable] > [data-row]:first-child > button[data-block][data-variant="ghost"]::before {
227
+ .Body > [data-sortable]:first-child > [data-row]:first-child > button[data-block][data-variant="ghost"]::before {
121
228
  border-start-start-radius: var(--field-group-radius);
122
229
  border-start-end-radius: var(--field-group-radius);
123
230
  }
124
231
 
125
232
  .Body > [data-row]:last-child > button[data-block][data-variant="ghost"]::before,
126
- .Body > [data-sortable] > [data-row]:last-child > button[data-block][data-variant="ghost"]::before {
233
+ .Body > [data-sortable]:last-child > [data-row]:last-child > button[data-block][data-variant="ghost"]::before {
127
234
  border-end-start-radius: var(--field-group-radius);
128
235
  border-end-end-radius: var(--field-group-radius);
129
236
  }
@@ -143,7 +250,9 @@
143
250
  leads with an icon starts it after the icon, where its text starts (kit Lists Row 550:50430: a 28 symbol column
144
251
  and 8 to the text): set --field-group-separator-inset-start on that row, or on the group for every row. */
145
252
  .Body > [data-row] + [data-row]::after,
146
- .Body > [data-sortable] > [data-row] + [data-row]::after {
253
+ .Body > [data-sortable] > [data-row] + [data-row]::after,
254
+ .Body > [data-sortable] + [data-row]::after,
255
+ .Body > [data-row] + [data-sortable] > [data-row]:first-child::after {
147
256
  content: "";
148
257
  position: absolute;
149
258
  inset-inline: var(--field-group-separator-inset-start, var(--field-group-separator-inset, 0px))
@@ -158,13 +267,50 @@
158
267
  .Body > [data-swipe-actions][data-revealed]::after,
159
268
  .Body > [data-swipe-actions][data-revealed] + [data-row]::after,
160
269
  .Body > [data-sortable] > [data-swipe-actions][data-revealed]::after,
161
- .Body > [data-sortable] > [data-swipe-actions][data-revealed] + [data-row]::after {
270
+ .Body > [data-sortable] > [data-swipe-actions][data-revealed] + [data-row]::after,
271
+ .Body > [data-swipe-actions][data-revealed] + [data-sortable] > [data-row]:first-child::after,
272
+ .Body > [data-sortable]:has(> [data-swipe-actions][data-revealed]:last-child) + [data-row]::after {
162
273
  opacity: 0;
163
274
  }
164
275
  }
165
276
  :where([data-plex-layout="phone"]) .FieldGroup {
166
277
  --field-group-description-color: var(--mobile-label-secondary, var(--color-text-secondary));
167
278
  --field-group-title-color: var(--mobile-label-secondary, var(--color-text-secondary));
279
+ /* Each group reads its own pairing: a group inside another does not take the outer one's (Codex #39) */
280
+ --field-group-gap-footer-offset: 0px;
281
+ --field-group-gap-header-offset: 0px;
282
+ }
283
+
284
+ /* With touch.css, groups one after another space themselves as an iOS 27.2 inset list (SwiftUI List on the simulator, 402pt):
285
+ rows to rows 37 (--field-group-gap); a header 60, a prominent header 64; a footer of one line 49.5 and 16 more
286
+ for each further line; a footer and a header 72, a footer and a prominent header 75.6. The header's block (39,
287
+ or 45 when prominent) and the footer's (8 + 16 a line + 6) stand in the gap, so the margin gives back what they
288
+ take beyond the native step: 16 for a header, 18.3 for a prominent one, 17.5 for a footer. Stack the groups in
289
+ a block without a gap of its own; where a parent's gap stands between them, set --field-group-gap to 37px less
290
+ that gap. */
291
+ /* A group may stand in a RadioGroup of its own, around the group of its choices: that radio group spaces as the
292
+ group. Only a radio group: a layout cell holding one group (a column of a grid) keeps its place (Codex #43). */
293
+ :where([data-plex-layout="phone"]) [role="radiogroup"]:has(> .FieldGroup:only-child) {
294
+ --field-group-gap-footer-offset: 0px;
295
+ --field-group-gap-header-offset: 0px;
296
+ }
297
+
298
+ :where([data-plex-layout="phone"]) :is(.FieldGroup, [role="radiogroup"]:has(> .FieldGroup:only-child)) + :is(.FieldGroup, [role="radiogroup"]:has(> .FieldGroup:only-child)) {
299
+ /* Only with touch.css, which turns --field-group-stack-spacing on: a page without it keeps its own layout's
300
+ gaps, a grid's columns level (Codex #58) */
301
+ margin-top: calc(var(--field-group-stack-spacing, 0) * (var(--field-group-gap, 37px) - var(--field-group-gap-footer-offset, 0px) - var(--field-group-gap-header-offset, 0px)));
302
+ }
303
+
304
+ :where([data-plex-layout="phone"]) :is(.FieldGroup:has(> .Footer), [role="radiogroup"]:has(> .FieldGroup:only-child > .Footer)) + :is(.FieldGroup, [role="radiogroup"]:has(> .FieldGroup:only-child)) {
305
+ --field-group-gap-footer-offset: 17.5px;
306
+ }
307
+
308
+ :where([data-plex-layout="phone"]) :is(.FieldGroup, [role="radiogroup"]:has(> .FieldGroup:only-child)) + :is(.FieldGroup:has(> .Header), [role="radiogroup"]:has(> .FieldGroup:only-child > .Header)) {
309
+ --field-group-gap-header-offset: 16px;
310
+ }
311
+
312
+ :where([data-plex-layout="phone"]) :is(.FieldGroup, [role="radiogroup"]:has(> .FieldGroup:only-child)) + :is(.FieldGroup[data-header-prominence="increased"]:has(> .Header), [role="radiogroup"]:has(> .FieldGroup[data-header-prominence="increased"]:only-child > .Header)) {
313
+ --field-group-gap-header-offset: 18.3px;
168
314
  }
169
315
 
170
316
  /* The kit's Prominent list header (Lists, Header 517:38042, Type=Prominent): Title 3 Semibold
@@ -216,7 +362,9 @@
216
362
  }
217
363
 
218
364
  :where([data-plex-layout="phone"]) .Body > [data-row] + [data-row],
219
- :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row] + [data-row] {
365
+ :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row] + [data-row],
366
+ :where([data-plex-layout="phone"]) .Body > [data-sortable] + [data-row],
367
+ :where([data-plex-layout="phone"]) .Body > [data-row] + [data-sortable] > [data-row]:first-child {
220
368
  position: relative;
221
369
  border-top-width: 0;
222
370
  }
@@ -231,13 +379,13 @@
231
379
  }
232
380
 
233
381
  :where([data-plex-layout="phone"]) .Body > [data-row]:first-child > button[data-block][data-variant="ghost"]::before,
234
- :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row]:first-child > button[data-block][data-variant="ghost"]::before {
382
+ :where([data-plex-layout="phone"]) .Body > [data-sortable]:first-child > [data-row]:first-child > button[data-block][data-variant="ghost"]::before {
235
383
  border-start-start-radius: var(--field-group-radius);
236
384
  border-start-end-radius: var(--field-group-radius);
237
385
  }
238
386
 
239
387
  :where([data-plex-layout="phone"]) .Body > [data-row]:last-child > button[data-block][data-variant="ghost"]::before,
240
- :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row]:last-child > button[data-block][data-variant="ghost"]::before {
388
+ :where([data-plex-layout="phone"]) .Body > [data-sortable]:last-child > [data-row]:last-child > button[data-block][data-variant="ghost"]::before {
241
389
  border-end-start-radius: var(--field-group-radius);
242
390
  border-end-end-radius: var(--field-group-radius);
243
391
  }
@@ -254,7 +402,9 @@
254
402
  leads with an icon starts it after the icon, where its text starts (kit Lists Row 550:50430: a 28 symbol column
255
403
  and 8 to the text): set --field-group-separator-inset-start on that row, or on the group for every row. */
256
404
  :where([data-plex-layout="phone"]) .Body > [data-row] + [data-row]::after,
257
- :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row] + [data-row]::after {
405
+ :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row] + [data-row]::after,
406
+ :where([data-plex-layout="phone"]) .Body > [data-sortable] + [data-row]::after,
407
+ :where([data-plex-layout="phone"]) .Body > [data-row] + [data-sortable] > [data-row]:first-child::after {
258
408
  content: "";
259
409
  position: absolute;
260
410
  inset-inline: var(--field-group-separator-inset-start, var(--field-group-separator-inset, 0px))
@@ -269,7 +419,9 @@
269
419
  :where([data-plex-layout="phone"]) .Body > [data-swipe-actions][data-revealed]::after,
270
420
  :where([data-plex-layout="phone"]) .Body > [data-swipe-actions][data-revealed] + [data-row]::after,
271
421
  :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-swipe-actions][data-revealed]::after,
272
- :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-swipe-actions][data-revealed] + [data-row]::after {
422
+ :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-swipe-actions][data-revealed] + [data-row]::after,
423
+ :where([data-plex-layout="phone"]) .Body > [data-swipe-actions][data-revealed] + [data-sortable] > [data-row]:first-child::after,
424
+ :where([data-plex-layout="phone"]) .Body > [data-sortable]:has(> [data-swipe-actions][data-revealed]:last-child) + [data-row]::after {
273
425
  opacity: 0;
274
426
  }/* Explanations belong below the group, with the list's own text insets. */.Footer {
275
427
  padding: var(--field-group-footer-padding, 8px 0 0);
@@ -286,4 +438,29 @@
286
438
  .Footer > p + p {
287
439
  margin-top: var(--field-group-footer-paragraph-gap, calc(var(--spacing) * 2));
288
440
  }
441
+
442
+ /* A list reads as Settings writes one in a footer: each item a line that starts with a bullet, wrapping back to the
443
+ footer's edge (Live Captions, IMG_5960) */
444
+ .Footer > :is(ul, ol) {
445
+ margin: 0;
446
+ padding: 0;
447
+ }
448
+
449
+ /* An ordered list keeps its numbers, inside the line as the bullets are (Codex #50) */
450
+ .Footer > ul {
451
+ list-style: none;
452
+ }
453
+
454
+ .Footer > ol {
455
+ list-style: decimal inside;
456
+ }
457
+
458
+ .Footer > :is(p, ul, ol) + :is(ul, ol), .Footer > :is(ul, ol) + p {
459
+ margin-top: var(--field-group-footer-paragraph-gap, calc(var(--spacing) * 2));
460
+ }
461
+
462
+ .Footer > ul > li::before {
463
+ content: "•";
464
+ margin-inline-end: 0.6em;
465
+ }
289
466
  }
@@ -122,7 +122,7 @@ background-color: rgba(255, 255, 255, 0.1);
122
122
  font-variant-ligatures: none;
123
123
  }
124
124
 
125
- .EditorContent > * + * {
125
+ .EditorContent > :where(:not(:first-child)) {
126
126
  margin-top: 8px;
127
127
  }
128
128
 
@@ -205,6 +205,12 @@
205
205
  opacity: 1;
206
206
  }/* On a phone an action takes the 44px target of iOS around its face; the negative margin keeps the
207
207
  row's layout and the glyph where they were. */@media (max-width: 767px) {
208
+ /* An iOS menu draws no scroller as it opens: a browser flashes its overlay scrollbar on a scroller that appears,
209
+ for a second on every open. The menu still scrolls by touch, wheel and keys. */
210
+ .MenuList {
211
+ scrollbar-width: none;
212
+ }
213
+
208
214
  .ItemActions > button {
209
215
  min-width: 44px;
210
216
  min-height: 44px;
@@ -218,6 +224,12 @@
218
224
  margin: auto;
219
225
  }
220
226
  }
227
+ /* An iOS menu draws no scroller as it opens: a browser flashes its overlay scrollbar on a scroller that appears,
228
+ for a second on every open. The menu still scrolls by touch, wheel and keys. */
229
+ :where([data-plex-layout="phone"]) .MenuList {
230
+ scrollbar-width: none;
231
+ }
232
+
221
233
  :where([data-plex-layout="phone"]) .ItemActions > button {
222
234
  min-width: 44px;
223
235
  min-height: 44px;
@@ -127,7 +127,7 @@
127
127
  sits on `::before`: on the bar itself a blur would hold the bar's children inside its own backdrop.
128
128
  The first column keeps the place of a sidebar's menu button. */@media (max-width: 767.98px) {
129
129
  .Page {
130
- --page-top: var(--page-toolbar-height, var(--page-header-height, calc(max(var(--page-gutter), var(--safe-area-inset-top, env(safe-area-inset-top, 0px))) + var(--page-bar-height-phone) + 10px)));
130
+ --page-top: var(--page-toolbar-height, var(--page-header-height, calc(max(10px, var(--safe-area-inset-top, env(safe-area-inset-top, 0px))) + var(--page-bar-height-phone) + 10px)));
131
131
  --page-bottom: var(--page-toolbar-bottom-height, var(--page-footer-height, 0px));
132
132
  --mobile-surface-primary: var(--mobile-surface-plain-primary, var(--color-surface));
133
133
  --mobile-surface-secondary: var(--mobile-surface-plain-secondary, var(--color-background-secondary-soft-alpha));
@@ -166,8 +166,8 @@
166
166
  position: absolute;
167
167
  z-index: 5;
168
168
  inset: 0 0 auto;
169
- /* Under the status bar, or the gutter from the window's top without one, as a top Toolbar */
170
- padding-block: max(var(--page-gutter), var(--safe-area-inset-top, env(safe-area-inset-top, 0px))) 10px;
169
+ /* Under the status bar, or without one the air it keeps below its row, as a top Toolbar */
170
+ padding-block: max(10px, var(--safe-area-inset-top, env(safe-area-inset-top, 0px))) 10px;
171
171
  }
172
172
 
173
173
  /* Soft: the scroll edge of a top Toolbar (--page-bar-soft-veil): the canvas color through the veil over a light
@@ -552,7 +552,7 @@
552
552
  }
553
553
  }
554
554
  :where([data-plex-layout="phone"]) .Page {
555
- --page-top: var(--page-toolbar-height, var(--page-header-height, calc(max(var(--page-gutter), var(--safe-area-inset-top, env(safe-area-inset-top, 0px))) + var(--page-bar-height-phone) + 10px)));
555
+ --page-top: var(--page-toolbar-height, var(--page-header-height, calc(max(10px, var(--safe-area-inset-top, env(safe-area-inset-top, 0px))) + var(--page-bar-height-phone) + 10px)));
556
556
  --page-bottom: var(--page-toolbar-bottom-height, var(--page-footer-height, 0px));
557
557
  --mobile-surface-primary: var(--mobile-surface-plain-primary, var(--color-surface));
558
558
  --mobile-surface-secondary: var(--mobile-surface-plain-secondary, var(--color-background-secondary-soft-alpha));
@@ -591,8 +591,8 @@
591
591
  position: absolute;
592
592
  z-index: 5;
593
593
  inset: 0 0 auto;
594
- /* Under the status bar, or the gutter from the window's top without one, as a top Toolbar */
595
- padding-block: max(var(--page-gutter), var(--safe-area-inset-top, env(safe-area-inset-top, 0px))) 10px;
594
+ /* Under the status bar, or without one the air it keeps below its row, as a top Toolbar */
595
+ padding-block: max(10px, var(--safe-area-inset-top, env(safe-area-inset-top, 0px))) 10px;
596
596
  }
597
597
 
598
598
  /* Soft: the scroll edge of a top Toolbar (--page-bar-soft-veil): the canvas color through the veil over a light
@@ -1,7 +1,7 @@
1
1
  @layer components {.Transition {
2
2
  /* CSS Modules requires a top-level class to create the string map entry */
3
3
  }.Popover {
4
- z-index: 50;
4
+ z-index: var(--popover-z-index, 50);
5
5
  overflow: auto;
6
6
  width: var(--popover-width, auto);
7
7
  min-width: var(--popover-min-width, 300px);