@plexui/styles 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/Dialog/Dialog.module.css +9 -0
- package/dist/es/components/Field/Field.module.css +25 -15
- package/dist/es/components/FieldGroup/FieldGroup.module.css +74 -67
- package/dist/es/components/Toast/Toast.module.css +36 -28
- package/dist/es/styles/mobile-materials.css +14 -0
- package/dist/es/styles/touch.css +18 -2
- package/dist/es/styles/variables-components.css +5 -1
- package/dist/es/styles/variables-tokens-root.css +16 -10
- package/package.json +1 -1
|
@@ -1810,5 +1810,14 @@
|
|
|
1810
1810
|
--button-text-color-hover: var(--color-text-danger);
|
|
1811
1811
|
|
|
1812
1812
|
font-weight: var(--dialog-alert-action-font-weight, 510);
|
|
1813
|
+
}/* A quieter line under the question (`detail`), such as what a save left behind: it takes the question's space to the
|
|
1814
|
+
answer, 4 under the question, as a confirmation's message stands under its title */.ConfirmCloseMessage:has(+ .ConfirmCloseDetail) {
|
|
1815
|
+
margin-bottom: 4px;
|
|
1816
|
+
}.ConfirmCloseDetail {
|
|
1817
|
+
margin: 0 13px 17px;
|
|
1818
|
+
color: var(--color-text-secondary);
|
|
1819
|
+
font-size: 15px;
|
|
1820
|
+
font-weight: var(--font-weight-normal);
|
|
1821
|
+
line-height: 20px;
|
|
1813
1822
|
}
|
|
1814
1823
|
}
|
|
@@ -201,19 +201,25 @@
|
|
|
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
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
204
|
+
}/* A row that leads with a symbol or an app's picture (`icon`), as an iOS cell's image. On a phone a symbol's 28
|
|
205
|
+
tile stands 2 before the row's inset and the text 14 after it, so the text and the line above the row start at 60
|
|
206
|
+
(Settings, General and Accessibility, IMG_6016-6019: the tile at 18 from the group's edge); an app's picture
|
|
207
|
+
keeps a cell's own image, at the inset and 8 before the text at 56 (AutoFill, IMG_5952). The column is centred in
|
|
208
|
+
the row's height; the text moves past it. */.Field:where([data-row]):has(> .Icon) {
|
|
209
|
+
--field-group-separator-inset-start: calc(var(--field-row-padding-inline) + var(--field-row-icon-offset) + var(--field-row-icon-size) + var(--field-row-icon-gap));
|
|
208
210
|
|
|
209
211
|
position: relative;
|
|
210
|
-
padding-inline-start: calc(var(--field-row-padding-inline) + var(--field-row-icon-size) + var(--field-row-icon-gap));
|
|
212
|
+
padding-inline-start: calc(var(--field-row-padding-inline) + var(--field-row-icon-offset) + var(--field-row-icon-size) + var(--field-row-icon-gap));
|
|
211
213
|
}/* 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
214
|
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));
|
|
215
|
+
--field-group-separator-inset-start: calc(var(--field-row-padding-inline) + var(--field-row-icon-offset) + var(--field-row-icon-size) + var(--field-row-icon-gap));
|
|
216
|
+
}/* An app's picture (an image) keeps a cell's own image place */.Field:where([data-row]):has(> .Icon > img),
|
|
217
|
+
:where(:not([data-handle-placement="start"]) > [data-row]):has(> .Field:where([data-row]) > .Icon > img) {
|
|
218
|
+
--field-row-icon-offset: var(--field-row-picture-offset);
|
|
219
|
+
--field-row-icon-gap: var(--field-row-picture-gap);
|
|
214
220
|
}.Icon {
|
|
215
221
|
position: absolute;
|
|
216
|
-
inset-inline-start: var(--field-row-padding-inline);
|
|
222
|
+
inset-inline-start: calc(var(--field-row-padding-inline) + var(--field-row-icon-offset));
|
|
217
223
|
top: 50%;
|
|
218
224
|
display: flex;
|
|
219
225
|
align-items: center;
|
|
@@ -287,12 +293,12 @@
|
|
|
287
293
|
grid-template-columns: minmax(0, 1fr) auto auto;
|
|
288
294
|
}/* 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
295
|
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
|
|
296
|
+
edge, the words at 60, the info symbol at the row's inset, as the kit's icon column puts them). Only a single radio without a label of its own: a RadioGroup of
|
|
291
297
|
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));
|
|
298
|
+
--field-group-separator-inset-start: calc(var(--field-row-padding-inline) + var(--field-row-icon-offset) + var(--field-row-icon-size) + var(--field-row-icon-gap));
|
|
293
299
|
|
|
294
300
|
position: relative;
|
|
295
|
-
padding-inline-start: calc(var(--field-row-padding-inline) + var(--field-row-icon-size) + var(--field-row-icon-gap));
|
|
301
|
+
padding-inline-start: calc(var(--field-row-padding-inline) + var(--field-row-icon-offset) + var(--field-row-icon-size) + var(--field-row-icon-gap));
|
|
296
302
|
}/* The action takes the control's column; the control leaves the grid for the row's padding box (a grid area would
|
|
297
303
|
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
304
|
/* Its symbol is a row's symbol, as the info symbol of Settings › VPN (21.3pt of ink, a 24px icon) */
|
|
@@ -303,7 +309,7 @@
|
|
|
303
309
|
}.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
310
|
position: absolute;
|
|
305
311
|
grid-area: auto;
|
|
306
|
-
inset-inline-start: var(--field-row-padding-inline);
|
|
312
|
+
inset-inline-start: calc(var(--field-row-padding-inline) + var(--field-row-icon-offset));
|
|
307
313
|
top: 50%;
|
|
308
314
|
display: flex;
|
|
309
315
|
justify-content: center;
|
|
@@ -533,12 +539,14 @@
|
|
|
533
539
|
}
|
|
534
540
|
|
|
535
541
|
/* Reserve the indicator's visible width at the row edge. Its centered target
|
|
536
|
-
and focus ring keep their full size, extending into the row's side padding.
|
|
542
|
+
and focus ring keep their full size, extending into the row's side padding. A radio's wrapper is named by its
|
|
543
|
+
attribute: with a subject of :only-child alone, any change of :only-child on the page restyles that element's
|
|
544
|
+
whole subtree in Chromium (an invalidation set with no feature). */
|
|
537
545
|
.Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > :only-child:not([data-has-label]):has(> [role="checkbox"]):not(:has(> [role="checkbox"] ~ [role="checkbox"], > :not([role="checkbox"], input[type="checkbox"][aria-hidden="true"]))) {
|
|
538
546
|
margin-inline: calc((var(--checkbox-indicator-size) - var(--checkbox-target-size, var(--checkbox-indicator-size))) / 2);
|
|
539
547
|
}
|
|
540
548
|
|
|
541
|
-
.Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > :only-child > label:only-child:not([data-has-label]) > :only-child:has(> [role="radio"]):not(:has(> [role="radio"] ~ [role="radio"], > :not([role="radio"], input[type="radio"][aria-hidden="true"]))) {
|
|
549
|
+
.Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > :only-child > label:only-child:not([data-has-label]) > [data-radio-indicator]:only-child:has(> [role="radio"]):not(:has(> [role="radio"] ~ [role="radio"], > :not([role="radio"], input[type="radio"][aria-hidden="true"]))) {
|
|
542
550
|
margin-inline: calc((var(--radio-group-indicator-size) - var(--radio-group-target-size, var(--radio-group-indicator-size))) / 2);
|
|
543
551
|
}
|
|
544
552
|
|
|
@@ -933,12 +941,14 @@
|
|
|
933
941
|
}
|
|
934
942
|
|
|
935
943
|
/* Reserve the indicator's visible width at the row edge. Its centered target
|
|
936
|
-
and focus ring keep their full size, extending into the row's side padding.
|
|
944
|
+
and focus ring keep their full size, extending into the row's side padding. A radio's wrapper is named by its
|
|
945
|
+
attribute: with a subject of :only-child alone, any change of :only-child on the page restyles that element's
|
|
946
|
+
whole subtree in Chromium (an invalidation set with no feature). */
|
|
937
947
|
:where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > :only-child:not([data-has-label]):has(> [role="checkbox"]):not(:has(> [role="checkbox"] ~ [role="checkbox"], > :not([role="checkbox"], input[type="checkbox"][aria-hidden="true"]))) {
|
|
938
948
|
margin-inline: calc((var(--checkbox-indicator-size) - var(--checkbox-target-size, var(--checkbox-indicator-size))) / 2);
|
|
939
949
|
}
|
|
940
950
|
|
|
941
|
-
:where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > :only-child > label:only-child:not([data-has-label]) > :only-child:has(> [role="radio"]):not(:has(> [role="radio"] ~ [role="radio"], > :not([role="radio"], input[type="radio"][aria-hidden="true"]))) {
|
|
951
|
+
:where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > :only-child > label:only-child:not([data-has-label]) > [data-radio-indicator]:only-child:has(> [role="radio"]):not(:has(> [role="radio"] ~ [role="radio"], > :not([role="radio"], input[type="radio"][aria-hidden="true"]))) {
|
|
942
952
|
margin-inline: calc((var(--radio-group-indicator-size) - var(--radio-group-target-size, var(--radio-group-indicator-size))) / 2);
|
|
943
953
|
}
|
|
944
954
|
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
justify-content: space-between;
|
|
9
9
|
gap: calc(var(--spacing) * 4);
|
|
10
10
|
min-height: var(--field-group-header-min-height, calc(var(--spacing) * 8));
|
|
11
|
+
padding-top: var(--field-group-header-padding-top, 0px);
|
|
11
12
|
padding-bottom: var(--field-group-header-padding-bottom, calc(var(--spacing) * 2));
|
|
12
13
|
}.HeaderText {
|
|
13
14
|
min-width: 0;
|
|
@@ -46,31 +47,31 @@
|
|
|
46
47
|
border-end-end-radius: calc(var(--field-group-radius) - var(--field-group-border-width));
|
|
47
48
|
}/* 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
49
|
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 {
|
|
50
|
+
The phone takes the card's own radius below. */.Body > [data-row]:first-child > :is(button, a)[data-block][data-variant="ghost"]::before,
|
|
51
|
+
.Body > [data-sortable]:first-child > [data-row]:first-child > :is(button, a)[data-block][data-variant="ghost"]::before,
|
|
52
|
+
.Body > [data-row]:first-child > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"]::before {
|
|
52
53
|
border-start-start-radius: calc(var(--field-group-radius) - var(--field-group-border-width));
|
|
53
54
|
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 {
|
|
55
|
+
}.Body > [data-row]:last-child > :is(button, a)[data-block][data-variant="ghost"]::before,
|
|
56
|
+
.Body > [data-sortable]:last-child > [data-row]:last-child > :is(button, a)[data-block][data-variant="ghost"]::before,
|
|
57
|
+
.Body > [data-row]:last-child > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"]::before {
|
|
57
58
|
border-end-start-radius: calc(var(--field-group-radius) - var(--field-group-border-width));
|
|
58
59
|
border-end-end-radius: calc(var(--field-group-radius) - var(--field-group-border-width));
|
|
59
60
|
}/* 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"] {
|
|
61
|
+
(owner 14.11: «уменьшается по ширине появляются просветы»). */.Body > [data-row] > :is(button, a)[data-block][data-variant="ghost"],
|
|
62
|
+
.Body > [data-sortable] > [data-row] > :is(button, a)[data-block][data-variant="ghost"],
|
|
63
|
+
.Body > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"],
|
|
64
|
+
.Body > [data-sortable] > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"] {
|
|
64
65
|
--button-mobile-material-scale: 1;
|
|
65
66
|
}/* A row that is an action is the row itself, as an iOS 27.2 List draws a Button (owner 14.11: «без шеврона кнопки»,
|
|
66
67
|
«в PlexUI такого нет же?»): the row's height (52) and label type (17/22 on a phone), its words where a row's label
|
|
67
68
|
starts (the row inset, 20 on a phone) and no chevron. The Button's color tints the words: info for the accent,
|
|
68
69
|
danger for a destructive row, secondary for a row that opens a choice. An icon after the words stands at the row's
|
|
69
70
|
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"] {
|
|
71
|
+
data-align="center" centres its words, as Settings puts "Reset to Default" in a group of its own. */.Body > [data-row] > :is(button, a)[data-block][data-variant="ghost"],
|
|
72
|
+
.Body > [data-sortable] > [data-row] > :is(button, a)[data-block][data-variant="ghost"],
|
|
73
|
+
.Body > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"],
|
|
74
|
+
.Body > [data-sortable] > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"] {
|
|
74
75
|
--button-size-md: var(--field-row-min-height);
|
|
75
76
|
--button-font-size-md: var(--field-row-label-font-size);
|
|
76
77
|
--button-line-height-md: var(--field-row-label-line-height);
|
|
@@ -82,24 +83,21 @@
|
|
|
82
83
|
text-align: start;
|
|
83
84
|
}
|
|
84
85
|
|
|
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
|
+
.Body > [data-row] > :is(button, a)[data-block][data-variant="ghost"] > span > svg:last-child:not(:first-child), .Body > [data-sortable] > [data-row] > :is(button, a)[data-block][data-variant="ghost"] > span > svg:last-child:not(:first-child), .Body > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"] > span > svg:last-child:not(:first-child), .Body > [data-sortable] > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"] > span > svg:last-child:not(:first-child) {
|
|
86
87
|
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"] {
|
|
88
|
+
}.Body > [data-row][data-align="center"] > :is(button, a)[data-block][data-variant="ghost"],
|
|
89
|
+
.Body > [data-sortable] > [data-row][data-align="center"] > :is(button, a)[data-block][data-variant="ghost"],
|
|
90
|
+
.Body > [data-row][data-align="center"] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"],
|
|
91
|
+
.Body > [data-sortable] > [data-row][data-align="center"] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"] {
|
|
91
92
|
--button-justify-content: center;
|
|
92
93
|
text-align: center;
|
|
93
94
|
}
|
|
94
95
|
|
|
95
96
|
/* 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
|
+
.Body > [data-row][data-align="center"] > :is(button, a)[data-block][data-variant="ghost"] > span > svg:last-child:not(:first-child), .Body > [data-sortable] > [data-row][data-align="center"] > :is(button, a)[data-block][data-variant="ghost"] > span > svg:last-child:not(:first-child), .Body > [data-row][data-align="center"] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"] > span > svg:last-child:not(:first-child), .Body > [data-sortable] > [data-row][data-align="center"] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"] > span > svg:last-child:not(:first-child) {
|
|
97
98
|
margin-inline-start: 0;
|
|
98
99
|
}/* 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"] *)) {
|
|
100
|
+
.Body > [data-row] > :is(button, a)[data-block][data-variant="ghost"]:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)), .Body > [data-sortable] > [data-row] > :is(button, a)[data-block][data-variant="ghost"]:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)), .Body > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"]:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)), .Body > [data-sortable] > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"]:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
|
|
103
101
|
--color-background-secondary-ghost-hover: var(--field-row-hover-background);
|
|
104
102
|
}
|
|
105
103
|
}/* A row that fills on hover (a choice row with a mouse) keeps the card's corners too */.Body > [data-row]:first-child,
|
|
@@ -126,13 +124,15 @@
|
|
|
126
124
|
--field-group-gap-header-offset: 0px;
|
|
127
125
|
}
|
|
128
126
|
|
|
129
|
-
/* With touch.css, groups one after another space themselves as
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
127
|
+
/* With touch.css, groups one after another space themselves as Settings does in iOS 27 (IMG_5944–5966, 430pt; checked
|
|
128
|
+
against a SwiftUI Form on the simulator, ref-app hfpairs-a/-b, owner 14.11): rows to rows 35 (--field-group-gap;
|
|
129
|
+
SwiftUI 35.33); a footer of one line 47.67 and 16 more for each further line (SwiftUI 47.33); a header 55.33 (SwiftUI
|
|
130
|
+
58.33), each further line of it 22; a footer and a header 75.33 (5962, 5964; SwiftUI 70.33): Settings does not let the
|
|
131
|
+
footer's space and the header's run together. Settings shows no prominent header; it keeps SwiftUI's steps, 62 after
|
|
132
|
+
rows and 74 after a footer. The header's block (39, or 45 when prominent, and its further lines) and the footer's
|
|
133
|
+
(8 + 16 a line + 6) stand in the gap, so the margin gives back what they take beyond the native step: 18.67 for a
|
|
134
|
+
header (11.33 after a footer), 18 for a prominent one, 17.33 for a footer. Stack the groups in a block without a gap
|
|
135
|
+
of its own; where a parent's gap stands between them, set --field-group-gap to 35px less that gap. */
|
|
136
136
|
/* A group may stand in a RadioGroup of its own, around the group of its choices: that radio group spaces as the
|
|
137
137
|
group. Only a radio group: a layout cell holding one group (a column of a grid) keeps its place (Codex #43). */
|
|
138
138
|
[role="radiogroup"]:has(> .FieldGroup:only-child) {
|
|
@@ -143,19 +143,23 @@
|
|
|
143
143
|
:is(.FieldGroup, [role="radiogroup"]:has(> .FieldGroup:only-child)) + :is(.FieldGroup, [role="radiogroup"]:has(> .FieldGroup:only-child)) {
|
|
144
144
|
/* Only with touch.css, which turns --field-group-stack-spacing on: a page without it keeps its own layout's
|
|
145
145
|
gaps, a grid's columns level (Codex #58) */
|
|
146
|
-
margin-top: calc(var(--field-group-stack-spacing, 0) * (var(--field-group-gap,
|
|
146
|
+
margin-top: calc(var(--field-group-stack-spacing, 0) * (var(--field-group-gap, 35px) - var(--field-group-gap-footer-offset, 0px) - var(--field-group-gap-header-offset, 0px)));
|
|
147
147
|
}
|
|
148
148
|
|
|
149
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.
|
|
150
|
+
--field-group-gap-footer-offset: 17.33px;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
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:
|
|
154
|
+
--field-group-gap-header-offset: 18.67px;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
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:
|
|
158
|
+
--field-group-gap-header-offset: 18px;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
:is(.FieldGroup:has(> .Footer), [role="radiogroup"]:has(> .FieldGroup:only-child > .Footer)) + :is(.FieldGroup:not([data-header-prominence="increased"]):has(> .Header), [role="radiogroup"]:has(> .FieldGroup:not([data-header-prominence="increased"]):only-child > .Header)) {
|
|
162
|
+
--field-group-gap-header-offset: 11.33px;
|
|
159
163
|
}
|
|
160
164
|
|
|
161
165
|
/* The kit's Prominent list header (Lists, Header 517:38042, Type=Prominent): Title 3 Semibold
|
|
@@ -167,6 +171,7 @@
|
|
|
167
171
|
--field-group-title-line-height: 25px;
|
|
168
172
|
--field-group-title-font-weight: 590;
|
|
169
173
|
--field-group-header-min-height: 45px;
|
|
174
|
+
--field-group-header-padding-top: 10px;
|
|
170
175
|
--field-group-header-padding-bottom: 10px;
|
|
171
176
|
}
|
|
172
177
|
|
|
@@ -216,31 +221,31 @@
|
|
|
216
221
|
|
|
217
222
|
/* Full-row actions share the cell's bounds. Only their text and accessories
|
|
218
223
|
sit inside the row padding; the pressed surface must not shrink inward. */
|
|
219
|
-
.Body > [data-row] > button[data-block][data-variant="ghost"],
|
|
220
|
-
.Body > [data-sortable] > [data-row] > button[data-block][data-variant="ghost"],
|
|
221
|
-
.Body > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"],
|
|
222
|
-
.Body > [data-sortable] > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"] {
|
|
224
|
+
.Body > [data-row] > :is(button, a)[data-block][data-variant="ghost"],
|
|
225
|
+
.Body > [data-sortable] > [data-row] > :is(button, a)[data-block][data-variant="ghost"],
|
|
226
|
+
.Body > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"],
|
|
227
|
+
.Body > [data-sortable] > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"] {
|
|
223
228
|
--button-mobile-material-scale: 1;
|
|
224
229
|
}
|
|
225
230
|
|
|
226
|
-
.Body > [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 {
|
|
231
|
+
.Body > [data-row]:first-child > :is(button, a)[data-block][data-variant="ghost"]::before,
|
|
232
|
+
.Body > [data-sortable]:first-child > [data-row]:first-child > :is(button, a)[data-block][data-variant="ghost"]::before {
|
|
228
233
|
border-start-start-radius: var(--field-group-radius);
|
|
229
234
|
border-start-end-radius: var(--field-group-radius);
|
|
230
235
|
}
|
|
231
236
|
|
|
232
|
-
.Body > [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 {
|
|
237
|
+
.Body > [data-row]:last-child > :is(button, a)[data-block][data-variant="ghost"]::before,
|
|
238
|
+
.Body > [data-sortable]:last-child > [data-row]:last-child > :is(button, a)[data-block][data-variant="ghost"]::before {
|
|
234
239
|
border-end-start-radius: var(--field-group-radius);
|
|
235
240
|
border-end-end-radius: var(--field-group-radius);
|
|
236
241
|
}
|
|
237
242
|
|
|
238
243
|
/* An open popup is not a held press. Keep selection and explicit glass
|
|
239
244
|
surfaces independent; the trigger remains focusable and expanded. */
|
|
240
|
-
.Body > [data-row] > button[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before,
|
|
241
|
-
.Body > [data-sortable] > [data-row] > button[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before,
|
|
242
|
-
.Body > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before,
|
|
243
|
-
.Body > [data-sortable] > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before {
|
|
245
|
+
.Body > [data-row] > :is(button, a)[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before,
|
|
246
|
+
.Body > [data-sortable] > [data-row] > :is(button, a)[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before,
|
|
247
|
+
.Body > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before,
|
|
248
|
+
.Body > [data-sortable] > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before {
|
|
244
249
|
opacity: 0;
|
|
245
250
|
}
|
|
246
251
|
|
|
@@ -281,13 +286,15 @@
|
|
|
281
286
|
--field-group-gap-header-offset: 0px;
|
|
282
287
|
}
|
|
283
288
|
|
|
284
|
-
/* With touch.css, groups one after another space themselves as
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
289
|
+
/* With touch.css, groups one after another space themselves as Settings does in iOS 27 (IMG_5944–5966, 430pt; checked
|
|
290
|
+
against a SwiftUI Form on the simulator, ref-app hfpairs-a/-b, owner 14.11): rows to rows 35 (--field-group-gap;
|
|
291
|
+
SwiftUI 35.33); a footer of one line 47.67 and 16 more for each further line (SwiftUI 47.33); a header 55.33 (SwiftUI
|
|
292
|
+
58.33), each further line of it 22; a footer and a header 75.33 (5962, 5964; SwiftUI 70.33): Settings does not let the
|
|
293
|
+
footer's space and the header's run together. Settings shows no prominent header; it keeps SwiftUI's steps, 62 after
|
|
294
|
+
rows and 74 after a footer. The header's block (39, or 45 when prominent, and its further lines) and the footer's
|
|
295
|
+
(8 + 16 a line + 6) stand in the gap, so the margin gives back what they take beyond the native step: 18.67 for a
|
|
296
|
+
header (11.33 after a footer), 18 for a prominent one, 17.33 for a footer. Stack the groups in a block without a gap
|
|
297
|
+
of its own; where a parent's gap stands between them, set --field-group-gap to 35px less that gap. */
|
|
291
298
|
/* A group may stand in a RadioGroup of its own, around the group of its choices: that radio group spaces as the
|
|
292
299
|
group. Only a radio group: a layout cell holding one group (a column of a grid) keeps its place (Codex #43). */
|
|
293
300
|
:where([data-plex-layout="phone"]) [role="radiogroup"]:has(> .FieldGroup:only-child) {
|
|
@@ -298,19 +305,23 @@
|
|
|
298
305
|
:where([data-plex-layout="phone"]) :is(.FieldGroup, [role="radiogroup"]:has(> .FieldGroup:only-child)) + :is(.FieldGroup, [role="radiogroup"]:has(> .FieldGroup:only-child)) {
|
|
299
306
|
/* Only with touch.css, which turns --field-group-stack-spacing on: a page without it keeps its own layout's
|
|
300
307
|
gaps, a grid's columns level (Codex #58) */
|
|
301
|
-
margin-top: calc(var(--field-group-stack-spacing, 0) * (var(--field-group-gap,
|
|
308
|
+
margin-top: calc(var(--field-group-stack-spacing, 0) * (var(--field-group-gap, 35px) - var(--field-group-gap-footer-offset, 0px) - var(--field-group-gap-header-offset, 0px)));
|
|
302
309
|
}
|
|
303
310
|
|
|
304
311
|
: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.
|
|
312
|
+
--field-group-gap-footer-offset: 17.33px;
|
|
306
313
|
}
|
|
307
314
|
|
|
308
315
|
: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:
|
|
316
|
+
--field-group-gap-header-offset: 18.67px;
|
|
310
317
|
}
|
|
311
318
|
|
|
312
319
|
: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:
|
|
320
|
+
--field-group-gap-header-offset: 18px;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
:where([data-plex-layout="phone"]) :is(.FieldGroup:has(> .Footer), [role="radiogroup"]:has(> .FieldGroup:only-child > .Footer)) + :is(.FieldGroup:not([data-header-prominence="increased"]):has(> .Header), [role="radiogroup"]:has(> .FieldGroup:not([data-header-prominence="increased"]):only-child > .Header)) {
|
|
324
|
+
--field-group-gap-header-offset: 11.33px;
|
|
314
325
|
}
|
|
315
326
|
|
|
316
327
|
/* The kit's Prominent list header (Lists, Header 517:38042, Type=Prominent): Title 3 Semibold
|
|
@@ -322,6 +333,7 @@
|
|
|
322
333
|
--field-group-title-line-height: 25px;
|
|
323
334
|
--field-group-title-font-weight: 590;
|
|
324
335
|
--field-group-header-min-height: 45px;
|
|
336
|
+
--field-group-header-padding-top: 10px;
|
|
325
337
|
--field-group-header-padding-bottom: 10px;
|
|
326
338
|
}
|
|
327
339
|
|
|
@@ -371,28 +383,23 @@
|
|
|
371
383
|
|
|
372
384
|
/* Full-row actions share the cell's bounds. Only their text and accessories
|
|
373
385
|
sit inside the row padding; the pressed surface must not shrink inward. */
|
|
374
|
-
:where([data-plex-layout="phone"]) .Body > [data-row] > button[data-block][data-variant="ghost"],
|
|
375
|
-
:where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row] > button[data-block][data-variant="ghost"],
|
|
376
|
-
:where([data-plex-layout="phone"]) .Body > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"],
|
|
377
|
-
:where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"] {
|
|
386
|
+
:where([data-plex-layout="phone"]) .Body > [data-row] > :is(button, a)[data-block][data-variant="ghost"], :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row] > :is(button, a)[data-block][data-variant="ghost"], :where([data-plex-layout="phone"]) .Body > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"], :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"] {
|
|
378
387
|
--button-mobile-material-scale: 1;
|
|
379
388
|
}
|
|
380
389
|
|
|
381
|
-
:where([data-plex-layout="phone"]) .Body > [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 {
|
|
390
|
+
:where([data-plex-layout="phone"]) .Body > [data-row]:first-child > :is(button, a)[data-block][data-variant="ghost"]::before, :where([data-plex-layout="phone"]) .Body > [data-sortable]:first-child > [data-row]:first-child > :is(button, a)[data-block][data-variant="ghost"]::before {
|
|
383
391
|
border-start-start-radius: var(--field-group-radius);
|
|
384
392
|
border-start-end-radius: var(--field-group-radius);
|
|
385
393
|
}
|
|
386
394
|
|
|
387
|
-
:where([data-plex-layout="phone"]) .Body > [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 {
|
|
395
|
+
:where([data-plex-layout="phone"]) .Body > [data-row]:last-child > :is(button, a)[data-block][data-variant="ghost"]::before, :where([data-plex-layout="phone"]) .Body > [data-sortable]:last-child > [data-row]:last-child > :is(button, a)[data-block][data-variant="ghost"]::before {
|
|
389
396
|
border-end-start-radius: var(--field-group-radius);
|
|
390
397
|
border-end-end-radius: var(--field-group-radius);
|
|
391
398
|
}
|
|
392
399
|
|
|
393
400
|
/* An open popup is not a held press. Keep selection and explicit glass
|
|
394
401
|
surfaces independent; the trigger remains focusable and expanded. */
|
|
395
|
-
:where([data-plex-layout="phone"]) .Body > [data-row] > button[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before, :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row] > button[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before, :where([data-plex-layout="phone"]) .Body > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before, :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row] > [data-swipe-content] > button[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before {
|
|
402
|
+
:where([data-plex-layout="phone"]) .Body > [data-row] > :is(button, a)[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before, :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row] > :is(button, a)[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before, :where([data-plex-layout="phone"]) .Body > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before, :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before {
|
|
396
403
|
opacity: 0;
|
|
397
404
|
}
|
|
398
405
|
|
|
@@ -35,21 +35,16 @@
|
|
|
35
35
|
drop shadow — we need !important to land our layered token value.
|
|
36
36
|
Same shadow + hairline combo as Menu / Popover for visual parity. */
|
|
37
37
|
box-shadow: var(--shadow), var(--shadow-hairline) !important;
|
|
38
|
-
}/* On a phone Sonner makes the toaster as wide as the screen and shifts it by
|
|
39
|
-
the
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
}/* On a phone Sonner makes the toaster as wide as the screen and shifts it by the inset, so part of it is off screen:
|
|
39
|
+
the toast keeps to the rest, between the side gutters, and stands in its middle as wide as its message, as the
|
|
40
|
+
system's own capsule at the top of an iPhone (owner 14.11: «не по размеру контента», «на мобиле они не такие»; a
|
|
41
|
+
notification banner fills the width, shots/banner-*.png of the iOS 27.2 simulator, but it is another app's message, not this
|
|
42
|
+
page's). A long message wraps at the gutters. */@media (width <= 600px) {
|
|
43
43
|
.Toast {
|
|
44
|
-
width: auto !important;
|
|
45
|
-
max-width: none !important;
|
|
46
|
-
right: calc(var(--mobile-offset-left, 14px) + var(--mobile-offset-right, 14px)) !important;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.Toast.Compact {
|
|
50
44
|
width: -moz-max-content !important;
|
|
51
45
|
width: max-content !important;
|
|
52
46
|
max-width: calc(100vw - var(--mobile-offset-left, 14px) - var(--mobile-offset-right, 14px)) !important;
|
|
47
|
+
right: calc(var(--mobile-offset-left, 14px) + var(--mobile-offset-right, 14px)) !important;
|
|
53
48
|
}
|
|
54
49
|
|
|
55
50
|
.Toaster[dir="rtl"] .Toast {
|
|
@@ -324,9 +319,8 @@
|
|
|
324
319
|
One button stands at the trailing end of the message's row, where the kit's banner keeps its
|
|
325
320
|
one trailing item, the time (Notification - Collapsed Stack=1 0:11292), and the message wraps in
|
|
326
321
|
its own column. Beside a button the message keeps some room, and a button that would leave it
|
|
327
|
-
less wraps under it:
|
|
328
|
-
|
|
329
|
-
message off its row. Neither floor passes the row but the icon's 28px, so the message never
|
|
322
|
+
less wraps under it: 8em, as a toast is as wide as its content and half of a width the message
|
|
323
|
+
itself sets would push a short message off its row. Neither floor passes the row but the icon's 28px, so the message never
|
|
330
324
|
leaves the icon alone. Two buttons stand together under the message, as the banner keeps one
|
|
331
325
|
item at its end and Sonner draws them as two separate children. A button is whatever follows
|
|
332
326
|
the message: the renderers put only the cancel and the action there, theirs or the caller's own
|
|
@@ -344,12 +338,6 @@
|
|
|
344
338
|
min-width: min(8em, 100% - 28px);
|
|
345
339
|
}
|
|
346
340
|
|
|
347
|
-
@media (width <= 600px) {
|
|
348
|
-
.Toast[data-styled="true"]:not(.Compact):has(> .Content ~ *) > .Content {
|
|
349
|
-
min-width: 50%;
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
|
|
353
341
|
.Toast[data-styled="true"]:has(> .Content ~ * ~ *) > .Content {
|
|
354
342
|
flex-basis: calc(100% - 28px);
|
|
355
343
|
}
|
|
@@ -429,12 +417,6 @@
|
|
|
429
417
|
min-width: min(8em, 100% - 28px);
|
|
430
418
|
}
|
|
431
419
|
|
|
432
|
-
@media (width <= 600px) {
|
|
433
|
-
:where([data-plex-layout="phone"]) .Toast[data-styled="true"]:not(.Compact):has(> .Content ~ *) > .Content {
|
|
434
|
-
min-width: 50%;
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
|
|
438
420
|
:where([data-plex-layout="phone"]) .Toast[data-styled="true"]:has(> .Content ~ * ~ *) > .Content {
|
|
439
421
|
flex-basis: calc(100% - 28px);
|
|
440
422
|
}
|
|
@@ -503,8 +485,8 @@
|
|
|
503
485
|
system's own message at the top of the screen (kit iOS 27, Notifications, Notification - Collapsed
|
|
504
486
|
Stack=1 0:11292): corners 24, padding 12 above and below and 14 at the sides, a 10px gap, the
|
|
505
487
|
title at 15/17 semibold and the description at 15/18. The kit's -0.23 tracking of 15pt SF text gives
|
|
506
|
-
way to the kit face's own, --font-sans-tracking at each size. It
|
|
507
|
-
the
|
|
488
|
+
way to the kit face's own, --font-sans-tracking at each size. It is as wide as its message (above) and takes the
|
|
489
|
+
glass of the system's messages (mobile-materials.css); a toast with rich colors keeps its color. Its buttons are the 34px capsule of a medium phone Button (touch.css) with
|
|
508
490
|
the banner's 15/20 regular label and a 14px gutter (a medium Button's 17pt label would outsize the
|
|
509
491
|
banner's text), its 44px target reaching 5px past it into the padding, so a one-line toast with a
|
|
510
492
|
button is 58 high. */@media (max-width: 767px) {
|
|
@@ -515,6 +497,19 @@
|
|
|
515
497
|
letter-spacing: var(--font-sans-tracking);
|
|
516
498
|
}
|
|
517
499
|
|
|
500
|
+
/* A message of one line is a capsule, as the system's own at the top of the screen: half its 43px, so a title
|
|
501
|
+
that wraps keeps its text inside the corners (Codex #65); with a description it keeps the banner's 24 */
|
|
502
|
+
.Toast[data-styled="true"]:not(:has(> .Content > .Description)) {
|
|
503
|
+
border-radius: 21.5px !important;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.Toast[data-styled="true"]:not([data-rich-colors="true"]) {
|
|
507
|
+
background: var(--toast-mobile-background, var(--normal-bg)) !important;
|
|
508
|
+
border-color: transparent !important;
|
|
509
|
+
box-shadow: var(--toast-mobile-shadow, var(--shadow), var(--shadow-hairline)) !important;
|
|
510
|
+
backdrop-filter: var(--toast-mobile-backdrop-filter, none);
|
|
511
|
+
}
|
|
512
|
+
|
|
518
513
|
.Toast[data-styled="true"] .Title,
|
|
519
514
|
.Toast[data-styled="true"] .Description {
|
|
520
515
|
font-size: 15px;
|
|
@@ -549,6 +544,19 @@
|
|
|
549
544
|
letter-spacing: var(--font-sans-tracking);
|
|
550
545
|
}
|
|
551
546
|
|
|
547
|
+
/* A message of one line is a capsule, as the system's own at the top of the screen: half its 43px, so a title
|
|
548
|
+
that wraps keeps its text inside the corners (Codex #65); with a description it keeps the banner's 24 */
|
|
549
|
+
:where([data-plex-layout="phone"]) .Toast[data-styled="true"]:not(:has(> .Content > .Description)) {
|
|
550
|
+
border-radius: 21.5px !important;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
:where([data-plex-layout="phone"]) .Toast[data-styled="true"]:not([data-rich-colors="true"]) {
|
|
554
|
+
background: var(--toast-mobile-background, var(--normal-bg)) !important;
|
|
555
|
+
border-color: transparent !important;
|
|
556
|
+
box-shadow: var(--toast-mobile-shadow, var(--shadow), var(--shadow-hairline)) !important;
|
|
557
|
+
backdrop-filter: var(--toast-mobile-backdrop-filter, none);
|
|
558
|
+
}
|
|
559
|
+
|
|
552
560
|
:where([data-plex-layout="phone"]) .Toast[data-styled="true"] .Title,
|
|
553
561
|
:where([data-plex-layout="phone"]) .Toast[data-styled="true"] .Description {
|
|
554
562
|
font-size: 15px;
|
|
@@ -65,6 +65,11 @@
|
|
|
65
65
|
to in Popover.module.css; declared on the root, it keeps the root's theme as the menus' does): 20 levels
|
|
66
66
|
under the panel on a white cell, gone within 38pt. */
|
|
67
67
|
--popover-mobile-backdrop-filter: var(--menu-mobile-backdrop-filter);
|
|
68
|
+
/* A toast is glass as the system's own messages at the top of the screen are (ref-app banner-*, iOS 27.2
|
|
69
|
+
simulator, @3x): in light 247 to 248 over the grouped 242, in dark 37 to 41 over black and the cells, about
|
|
70
|
+
what the menus' glass comes to; the raised glass shadow, as it stands over the page. Written out, as above. */
|
|
71
|
+
--toast-mobile-backdrop-filter: var(--menu-mobile-backdrop-filter);
|
|
72
|
+
--toast-mobile-shadow: var(--mobile-glass-shadow-raised);
|
|
68
73
|
/* An Alert is glass in both themes, as native iOS alerts are. Light: Files (iOS-menu, Screenshot 18.22.08,
|
|
69
74
|
08.11) shows 237 over a page dimmed to 204, as white at 65% does; kit iOS 27 (Alerts 65:57149) comes to
|
|
70
75
|
235, an older frame to 233 (iOS2 IMG_5533). Dark: 34 to 45 over a page dimmed to 0 to 14 (IMG_5532). The
|
|
@@ -90,6 +95,7 @@
|
|
|
90
95
|
--mobile-glass-shadow-raised: 0 8px 40px rgb(0 0 0 / 12%), var(--mobile-glass-outline), inset 0 0.67px 0 var(--mobile-glass-rim), inset 0 -0.67px 0 var(--mobile-glass-rim);
|
|
91
96
|
--menu-mobile-background: rgb(255 255 255 / 65%);
|
|
92
97
|
--popover-mobile-background: rgb(255 255 255 / 65%);
|
|
98
|
+
--toast-mobile-background: rgb(255 255 255 / 65%);
|
|
93
99
|
--dialog-alert-background: rgb(255 255 255 / 65%);
|
|
94
100
|
--dialog-alert-fill: var(--alpha-15)
|
|
95
101
|
}
|
|
@@ -103,6 +109,7 @@
|
|
|
103
109
|
--mobile-glass-shadow-raised: 0 8px 40px rgb(0 0 0 / 8%), var(--mobile-glass-outline), inset 0 0.67px 0 var(--mobile-glass-rim), inset 0 -0.67px 0 var(--mobile-glass-rim);
|
|
104
110
|
--menu-mobile-background: var(--alpha-12);
|
|
105
111
|
--popover-mobile-background: var(--alpha-12);
|
|
112
|
+
--toast-mobile-background: var(--alpha-12);
|
|
106
113
|
--dialog-alert-background: var(--alpha-12);
|
|
107
114
|
--dialog-alert-fill: var(--alpha-12)
|
|
108
115
|
}
|
|
@@ -162,6 +169,11 @@
|
|
|
162
169
|
to in Popover.module.css; declared on the root, it keeps the root's theme as the menus' does): 20 levels
|
|
163
170
|
under the panel on a white cell, gone within 38pt. */
|
|
164
171
|
--popover-mobile-backdrop-filter: var(--menu-mobile-backdrop-filter);
|
|
172
|
+
/* A toast is glass as the system's own messages at the top of the screen are (ref-app banner-*, iOS 27.2
|
|
173
|
+
simulator, @3x): in light 247 to 248 over the grouped 242, in dark 37 to 41 over black and the cells, about
|
|
174
|
+
what the menus' glass comes to; the raised glass shadow, as it stands over the page. Written out, as above. */
|
|
175
|
+
--toast-mobile-backdrop-filter: var(--menu-mobile-backdrop-filter);
|
|
176
|
+
--toast-mobile-shadow: var(--mobile-glass-shadow-raised);
|
|
165
177
|
/* An Alert is glass in both themes, as native iOS alerts are. Light: Files (iOS-menu, Screenshot 18.22.08,
|
|
166
178
|
08.11) shows 237 over a page dimmed to 204, as white at 65% does; kit iOS 27 (Alerts 65:57149) comes to
|
|
167
179
|
235, an older frame to 233 (iOS2 IMG_5533). Dark: 34 to 45 over a page dimmed to 0 to 14 (IMG_5532). The
|
|
@@ -187,6 +199,7 @@
|
|
|
187
199
|
--mobile-glass-shadow-raised: 0 8px 40px rgb(0 0 0 / 12%), var(--mobile-glass-outline), inset 0 0.67px 0 var(--mobile-glass-rim), inset 0 -0.67px 0 var(--mobile-glass-rim);
|
|
188
200
|
--menu-mobile-background: rgb(255 255 255 / 65%);
|
|
189
201
|
--popover-mobile-background: rgb(255 255 255 / 65%);
|
|
202
|
+
--toast-mobile-background: rgb(255 255 255 / 65%);
|
|
190
203
|
--dialog-alert-background: rgb(255 255 255 / 65%);
|
|
191
204
|
--dialog-alert-fill: var(--alpha-15)
|
|
192
205
|
}
|
|
@@ -200,6 +213,7 @@
|
|
|
200
213
|
--mobile-glass-shadow-raised: 0 8px 40px rgb(0 0 0 / 8%), var(--mobile-glass-outline), inset 0 0.67px 0 var(--mobile-glass-rim), inset 0 -0.67px 0 var(--mobile-glass-rim);
|
|
201
214
|
--menu-mobile-background: var(--alpha-12);
|
|
202
215
|
--popover-mobile-background: var(--alpha-12);
|
|
216
|
+
--toast-mobile-background: var(--alpha-12);
|
|
203
217
|
--dialog-alert-background: var(--alpha-12);
|
|
204
218
|
--dialog-alert-fill: var(--alpha-12)
|
|
205
219
|
}
|
package/dist/es/styles/touch.css
CHANGED
|
@@ -77,6 +77,8 @@
|
|
|
77
77
|
--mobile-knob-lens-shadow: 0 4.5px 8px rgb(0 0 0 / 12%), 0 0 0 0.33px rgb(0 0 0 / 20%), inset 0 0.5px 0 rgb(255 255 255 / 16%), inset 0 -0.5px 0 rgb(255 255 255 / 16%);
|
|
78
78
|
--menu-mobile-backdrop-filter: blur(18px);
|
|
79
79
|
--popover-mobile-backdrop-filter: var(--menu-mobile-backdrop-filter);
|
|
80
|
+
--toast-mobile-backdrop-filter: var(--menu-mobile-backdrop-filter);
|
|
81
|
+
--toast-mobile-shadow: var(--mobile-glass-shadow-raised);
|
|
80
82
|
--dialog-alert-backdrop-filter: blur(10px);
|
|
81
83
|
--dialog-alert-shadow: var(--mobile-glass-shadow-raised);
|
|
82
84
|
--dialog-alert-message-color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
@@ -91,6 +93,7 @@
|
|
|
91
93
|
--mobile-glass-shadow-raised: 0 8px 40px rgb(0 0 0 / 12%), var(--mobile-glass-outline), inset 0 0.67px 0 var(--mobile-glass-rim), inset 0 -0.67px 0 var(--mobile-glass-rim);
|
|
92
94
|
--menu-mobile-background: rgb(255 255 255 / 65%);
|
|
93
95
|
--popover-mobile-background: rgb(255 255 255 / 65%);
|
|
96
|
+
--toast-mobile-background: rgb(255 255 255 / 65%);
|
|
94
97
|
--dialog-alert-background: rgb(255 255 255 / 65%);
|
|
95
98
|
--dialog-alert-fill: var(--alpha-15);
|
|
96
99
|
}
|
|
@@ -104,6 +107,7 @@
|
|
|
104
107
|
--mobile-glass-shadow-raised: 0 8px 40px rgb(0 0 0 / 8%), var(--mobile-glass-outline), inset 0 0.67px 0 var(--mobile-glass-rim), inset 0 -0.67px 0 var(--mobile-glass-rim);
|
|
105
108
|
--menu-mobile-background: var(--alpha-12);
|
|
106
109
|
--popover-mobile-background: var(--alpha-12);
|
|
110
|
+
--toast-mobile-background: var(--alpha-12);
|
|
107
111
|
--dialog-alert-background: var(--alpha-12);
|
|
108
112
|
--dialog-alert-fill: var(--alpha-12);
|
|
109
113
|
}
|
|
@@ -117,6 +121,8 @@
|
|
|
117
121
|
--mobile-knob-lens-shadow: 0 4.5px 8px rgb(0 0 0 / 12%), 0 0 0 0.33px rgb(0 0 0 / 20%), inset 0 0.5px 0 rgb(255 255 255 / 16%), inset 0 -0.5px 0 rgb(255 255 255 / 16%);
|
|
118
122
|
--menu-mobile-backdrop-filter: blur(18px);
|
|
119
123
|
--popover-mobile-backdrop-filter: var(--menu-mobile-backdrop-filter);
|
|
124
|
+
--toast-mobile-backdrop-filter: var(--menu-mobile-backdrop-filter);
|
|
125
|
+
--toast-mobile-shadow: var(--mobile-glass-shadow-raised);
|
|
120
126
|
--dialog-alert-backdrop-filter: blur(10px);
|
|
121
127
|
--dialog-alert-shadow: var(--mobile-glass-shadow-raised);
|
|
122
128
|
--dialog-alert-message-color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
@@ -131,6 +137,7 @@
|
|
|
131
137
|
--mobile-glass-shadow-raised: 0 8px 40px rgb(0 0 0 / 12%), var(--mobile-glass-outline), inset 0 0.67px 0 var(--mobile-glass-rim), inset 0 -0.67px 0 var(--mobile-glass-rim);
|
|
132
138
|
--menu-mobile-background: rgb(255 255 255 / 65%);
|
|
133
139
|
--popover-mobile-background: rgb(255 255 255 / 65%);
|
|
140
|
+
--toast-mobile-background: rgb(255 255 255 / 65%);
|
|
134
141
|
--dialog-alert-background: rgb(255 255 255 / 65%);
|
|
135
142
|
--dialog-alert-fill: var(--alpha-15);
|
|
136
143
|
}
|
|
@@ -144,6 +151,7 @@
|
|
|
144
151
|
--mobile-glass-shadow-raised: 0 8px 40px rgb(0 0 0 / 8%), var(--mobile-glass-outline), inset 0 0.67px 0 var(--mobile-glass-rim), inset 0 -0.67px 0 var(--mobile-glass-rim);
|
|
145
152
|
--menu-mobile-background: var(--alpha-12);
|
|
146
153
|
--popover-mobile-background: var(--alpha-12);
|
|
154
|
+
--toast-mobile-background: var(--alpha-12);
|
|
147
155
|
--dialog-alert-background: var(--alpha-12);
|
|
148
156
|
--dialog-alert-fill: var(--alpha-12);
|
|
149
157
|
}
|
|
@@ -598,7 +606,10 @@
|
|
|
598
606
|
--field-row-gap: 16px;
|
|
599
607
|
--field-row-disclosure-gap: 8px;
|
|
600
608
|
--field-row-icon-size: 28px;
|
|
601
|
-
--field-row-icon-gap:
|
|
609
|
+
--field-row-icon-gap: 14px;
|
|
610
|
+
--field-row-icon-offset: -2px;
|
|
611
|
+
--field-row-picture-offset: 0px;
|
|
612
|
+
--field-row-picture-gap: 8px;
|
|
602
613
|
--field-row-icon-symbol-size: 24px;
|
|
603
614
|
--field-row-icon-radius: 7px;
|
|
604
615
|
--field-row-text-display: flex;
|
|
@@ -631,6 +642,7 @@
|
|
|
631
642
|
--field-group-header-min-height: 39px;
|
|
632
643
|
--field-group-header-align: end;
|
|
633
644
|
--field-group-header-padding-bottom: 6px;
|
|
645
|
+
--field-group-header-padding-top: 11px;
|
|
634
646
|
--field-group-footer-font-size: 13px;
|
|
635
647
|
--field-group-footer-line-height: 16px;
|
|
636
648
|
--field-group-footer-paragraph-gap: 16px;
|
|
@@ -1291,7 +1303,10 @@ html:root :where([data-plex-layout="phone"]) {
|
|
|
1291
1303
|
--field-row-gap: 16px;
|
|
1292
1304
|
--field-row-disclosure-gap: 8px;
|
|
1293
1305
|
--field-row-icon-size: 28px;
|
|
1294
|
-
--field-row-icon-gap:
|
|
1306
|
+
--field-row-icon-gap: 14px;
|
|
1307
|
+
--field-row-icon-offset: -2px;
|
|
1308
|
+
--field-row-picture-offset: 0px;
|
|
1309
|
+
--field-row-picture-gap: 8px;
|
|
1295
1310
|
--field-row-icon-symbol-size: 24px;
|
|
1296
1311
|
--field-row-icon-radius: 7px;
|
|
1297
1312
|
--field-row-text-display: flex;
|
|
@@ -1324,6 +1339,7 @@ html:root :where([data-plex-layout="phone"]) {
|
|
|
1324
1339
|
--field-group-header-min-height: 39px;
|
|
1325
1340
|
--field-group-header-align: end;
|
|
1326
1341
|
--field-group-header-padding-bottom: 6px;
|
|
1342
|
+
--field-group-header-padding-top: 11px;
|
|
1327
1343
|
--field-group-footer-font-size: 13px;
|
|
1328
1344
|
--field-group-footer-line-height: 16px;
|
|
1329
1345
|
--field-group-footer-paragraph-gap: 16px;
|
|
@@ -291,11 +291,15 @@
|
|
|
291
291
|
--field-row-column-width: 40%;
|
|
292
292
|
--field-row-row-gap: 2px;
|
|
293
293
|
/* A row's leading image (Field `icon`): the column, the space to the text, a symbol's size in it, an app
|
|
294
|
-
picture's corners and the symbol's color. 28 and
|
|
294
|
+
picture's corners and the symbol's color, and where a symbol and an app's picture stand. 28 and 14 on a phone,
|
|
295
|
+
an app's picture 8 (touch.css). */
|
|
295
296
|
/* A full row's hover with a mouse: the light fill of a table row, not a button's (owner 14.11: «цвет hover
|
|
296
297
|
слишком темный») */
|
|
297
298
|
--field-row-icon-size: 32px;
|
|
298
299
|
--field-row-icon-gap: 12px;
|
|
300
|
+
--field-row-icon-offset: 0px;
|
|
301
|
+
--field-row-picture-offset: 0px;
|
|
302
|
+
--field-row-picture-gap: 12px;
|
|
299
303
|
--field-row-icon-symbol-size: 20px;
|
|
300
304
|
--field-row-icon-radius: 7px;
|
|
301
305
|
--field-row-icon-color: var(--color-text);
|
|
@@ -80,7 +80,14 @@
|
|
|
80
80
|
preflight gives them `letter-spacing: inherit` by their element names, which a zero-specificity rule would
|
|
81
81
|
not beat, and a 14px button inside 16px text would take the 16px tracking.
|
|
82
82
|
A tracking set on an element by a utility (`tracking-wide`) or a style reaches the text inside it, a Button's
|
|
83
|
-
label among it
|
|
83
|
+
label among it; a monospace text keeps its face's spacing, by its tag, a font-mono utility or a style, all the
|
|
84
|
+
way down. An element with such a utility or style sets --plex-letter-spacing on itself and its text inherits
|
|
85
|
+
it: `from-parent` is no length, so `letter-spacing` is invalid in its text and inherits the element's own; the
|
|
86
|
+
element itself keeps the tracking at its size until its utility applies (a `hover:` one), inside another such
|
|
87
|
+
element too, where it used to take that one's. Monospace sets
|
|
88
|
+
--plex-mono, which nothing inside unsets, so it wins over a tracking inside it as before (Codex #66). Each rule
|
|
89
|
+
reads the element alone: a rule that looked for such an element among the ancestors of every element made each
|
|
90
|
+
restyle test every ancestor's class and style, and a change of any element's style restyle its whole subtree. */
|
|
84
91
|
@layer base {
|
|
85
92
|
:where(*, ::before, ::after),
|
|
86
93
|
button,
|
|
@@ -89,18 +96,17 @@
|
|
|
89
96
|
optgroup,
|
|
90
97
|
textarea,
|
|
91
98
|
::file-selector-button {
|
|
92
|
-
letter-spacing: var(--font-sans-tracking);
|
|
99
|
+
letter-spacing: var(--plex-mono, var(--plex-letter-spacing, var(--font-sans-tracking)));
|
|
93
100
|
}
|
|
94
101
|
|
|
95
|
-
:where([class*="tracking-"], [style*="letter-spacing"])
|
|
96
|
-
:where([class*="tracking-"], [style*="letter-spacing"])
|
|
97
|
-
letter-spacing:
|
|
102
|
+
:where([class*="tracking-"], [style*="letter-spacing"]),
|
|
103
|
+
:is(button, input, select, optgroup, textarea):where([class*="tracking-"], [style*="letter-spacing"]) {
|
|
104
|
+
--plex-letter-spacing: from-parent;
|
|
105
|
+
|
|
106
|
+
letter-spacing: var(--plex-mono, var(--font-sans-tracking));
|
|
98
107
|
}
|
|
99
108
|
|
|
100
|
-
:where(code, kbd, samp, pre, [class*="font-mono"], [style*="font-mono"])
|
|
101
|
-
|
|
102
|
-
:where(code, kbd, samp, pre, [class*="font-mono"], [style*="font-mono"]) :is(button, input, select, optgroup, textarea),
|
|
103
|
-
:is(button, input, select, optgroup, textarea):where([class*="font-mono"], [style*="font-mono"]) {
|
|
104
|
-
letter-spacing: normal;
|
|
109
|
+
:where(code, kbd, samp, pre, [class*="font-mono"], [style*="font-mono"]) {
|
|
110
|
+
--plex-mono: normal;
|
|
105
111
|
}
|
|
106
112
|
}
|