@plexui/styles 0.8.1 → 0.10.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 +73 -1
- package/dist/es/components/Field/Field.module.css +25 -15
- package/dist/es/components/FieldGroup/FieldGroup.module.css +37 -22
- package/dist/es/components/Toast/Toast.module.css +36 -28
- package/dist/es/components/Toolbar/Toolbar.module.css +44 -32
- 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
|
@@ -118,7 +118,10 @@
|
|
|
118
118
|
transition:
|
|
119
119
|
opacity var(--dialog-exit-duration) var(--dialog-exit-easing),
|
|
120
120
|
transform var(--dialog-exit-duration) var(--dialog-exit-easing);
|
|
121
|
-
}/*
|
|
121
|
+
}/* The place of a large Toolbar title at the top of Dialog.Body. It holds the title's margins, so they never merge
|
|
122
|
+
with the margins of the content after it. */.LargeTitle {
|
|
123
|
+
display: flow-root;
|
|
124
|
+
}/* Keep the native scroll indicator consistent even without the global stylesheet. */.Panel,
|
|
122
125
|
.Body {
|
|
123
126
|
scrollbar-width: thin;
|
|
124
127
|
scrollbar-color: var(--scrollbar-color) transparent;
|
|
@@ -905,6 +908,36 @@
|
|
|
905
908
|
scroll-padding-bottom: calc(16px + var(--dialog-footer-height, 0px));
|
|
906
909
|
}
|
|
907
910
|
|
|
911
|
+
/* A large Toolbar title starts the body, as it starts a page's content: the body starts 16 under the bar, as
|
|
912
|
+
Page.Content does, and the title stands --toolbar-large-title-gap under the row of controls, the content 16 under
|
|
913
|
+
its last baseline. It scrolls with the body and goes under the bar, which then shows it inline. */
|
|
914
|
+
.Content[data-mobile-variant="sheet"] .Panel > .Body:has(> .LargeTitle > *) {
|
|
915
|
+
padding-top: calc(16px + var(--dialog-header-height, 0px));
|
|
916
|
+
scroll-padding-top: calc(16px + var(--dialog-header-height, 0px));
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
/* The bar's rows under a large title (Toolbar.Row) stand under it in the body and, scrolled up to the bar, stay
|
|
920
|
+
under its controls, as on a page (Page.Content's rows): the body's padding ends 16 under the bar, as the page
|
|
921
|
+
content's does, and the sticky offset is counted from there. The bar's background reaches under them. */
|
|
922
|
+
.LargeTitleRows {
|
|
923
|
+
position: sticky;
|
|
924
|
+
z-index: 6;
|
|
925
|
+
top: calc(var(--toolbar-row-gap) - var(--toolbar-padding-bottom) - 16px);
|
|
926
|
+
display: flex;
|
|
927
|
+
flex-direction: column;
|
|
928
|
+
gap: var(--toolbar-row-gap);
|
|
929
|
+
margin-bottom: 16px;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
.LargeTitleRows:empty {
|
|
933
|
+
display: none;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
/* A target scrolled into view lands under the pinned rows, not behind them. */
|
|
937
|
+
.Content[data-mobile-variant="sheet"] .Panel > .Body:has(> .LargeTitleRows > *) {
|
|
938
|
+
scroll-padding-top: calc(16px + var(--dialog-header-height, 0px) + var(--toolbar-row-gap) + var(--page-toolbar-rows-height, 0px));
|
|
939
|
+
}
|
|
940
|
+
|
|
908
941
|
/* A footer keeps its actions above the home indicator itself: the content ends 16px above the footer. */
|
|
909
942
|
.Content[data-mobile-variant="sheet"] .Panel:has(> .Footer, > [data-toolbar][data-placement="bottom"]) > .Body {
|
|
910
943
|
padding-bottom: calc(16px + var(--dialog-footer-height, 0px));
|
|
@@ -1457,6 +1490,36 @@
|
|
|
1457
1490
|
scroll-padding-bottom: calc(16px + var(--dialog-footer-height, 0px));
|
|
1458
1491
|
}
|
|
1459
1492
|
|
|
1493
|
+
/* A large Toolbar title starts the body, as it starts a page's content: the body starts 16 under the bar, as
|
|
1494
|
+
Page.Content does, and the title stands --toolbar-large-title-gap under the row of controls, the content 16 under
|
|
1495
|
+
its last baseline. It scrolls with the body and goes under the bar, which then shows it inline. */
|
|
1496
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Panel > .Body:has(> .LargeTitle > *) {
|
|
1497
|
+
padding-top: calc(16px + var(--dialog-header-height, 0px));
|
|
1498
|
+
scroll-padding-top: calc(16px + var(--dialog-header-height, 0px));
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
/* The bar's rows under a large title (Toolbar.Row) stand under it in the body and, scrolled up to the bar, stay
|
|
1502
|
+
under its controls, as on a page (Page.Content's rows): the body's padding ends 16 under the bar, as the page
|
|
1503
|
+
content's does, and the sticky offset is counted from there. The bar's background reaches under them. */
|
|
1504
|
+
:where([data-plex-layout="phone"]) .LargeTitleRows {
|
|
1505
|
+
position: sticky;
|
|
1506
|
+
z-index: 6;
|
|
1507
|
+
top: calc(var(--toolbar-row-gap) - var(--toolbar-padding-bottom) - 16px);
|
|
1508
|
+
display: flex;
|
|
1509
|
+
flex-direction: column;
|
|
1510
|
+
gap: var(--toolbar-row-gap);
|
|
1511
|
+
margin-bottom: 16px;
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
:where([data-plex-layout="phone"]) .LargeTitleRows:empty {
|
|
1515
|
+
display: none;
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
/* A target scrolled into view lands under the pinned rows, not behind them. */
|
|
1519
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Panel > .Body:has(> .LargeTitleRows > *) {
|
|
1520
|
+
scroll-padding-top: calc(16px + var(--dialog-header-height, 0px) + var(--toolbar-row-gap) + var(--page-toolbar-rows-height, 0px));
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1460
1523
|
/* A footer keeps its actions above the home indicator itself: the content ends 16px above the footer. */
|
|
1461
1524
|
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Panel:has(> .Footer, > [data-toolbar][data-placement="bottom"]) > .Body {
|
|
1462
1525
|
padding-bottom: calc(16px + var(--dialog-footer-height, 0px));
|
|
@@ -1810,5 +1873,14 @@
|
|
|
1810
1873
|
--button-text-color-hover: var(--color-text-danger);
|
|
1811
1874
|
|
|
1812
1875
|
font-weight: var(--dialog-alert-action-font-weight, 510);
|
|
1876
|
+
}/* A quieter line under the question (`detail`), such as what a save left behind: it takes the question's space to the
|
|
1877
|
+
answer, 4 under the question, as a confirmation's message stands under its title */.ConfirmCloseMessage:has(+ .ConfirmCloseDetail) {
|
|
1878
|
+
margin-bottom: 4px;
|
|
1879
|
+
}.ConfirmCloseDetail {
|
|
1880
|
+
margin: 0 13px 17px;
|
|
1881
|
+
color: var(--color-text-secondary);
|
|
1882
|
+
font-size: 15px;
|
|
1883
|
+
font-weight: var(--font-weight-normal);
|
|
1884
|
+
line-height: 20px;
|
|
1813
1885
|
}
|
|
1814
1886
|
}
|
|
@@ -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;
|
|
@@ -123,13 +124,15 @@
|
|
|
123
124
|
--field-group-gap-header-offset: 0px;
|
|
124
125
|
}
|
|
125
126
|
|
|
126
|
-
/* With touch.css, groups one after another space themselves as
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
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. */
|
|
133
136
|
/* A group may stand in a RadioGroup of its own, around the group of its choices: that radio group spaces as the
|
|
134
137
|
group. Only a radio group: a layout cell holding one group (a column of a grid) keeps its place (Codex #43). */
|
|
135
138
|
[role="radiogroup"]:has(> .FieldGroup:only-child) {
|
|
@@ -140,19 +143,23 @@
|
|
|
140
143
|
:is(.FieldGroup, [role="radiogroup"]:has(> .FieldGroup:only-child)) + :is(.FieldGroup, [role="radiogroup"]:has(> .FieldGroup:only-child)) {
|
|
141
144
|
/* Only with touch.css, which turns --field-group-stack-spacing on: a page without it keeps its own layout's
|
|
142
145
|
gaps, a grid's columns level (Codex #58) */
|
|
143
|
-
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)));
|
|
144
147
|
}
|
|
145
148
|
|
|
146
149
|
:is(.FieldGroup:has(> .Footer), [role="radiogroup"]:has(> .FieldGroup:only-child > .Footer)) + :is(.FieldGroup, [role="radiogroup"]:has(> .FieldGroup:only-child)) {
|
|
147
|
-
--field-group-gap-footer-offset: 17.
|
|
150
|
+
--field-group-gap-footer-offset: 17.33px;
|
|
148
151
|
}
|
|
149
152
|
|
|
150
153
|
:is(.FieldGroup, [role="radiogroup"]:has(> .FieldGroup:only-child)) + :is(.FieldGroup:has(> .Header), [role="radiogroup"]:has(> .FieldGroup:only-child > .Header)) {
|
|
151
|
-
--field-group-gap-header-offset:
|
|
154
|
+
--field-group-gap-header-offset: 18.67px;
|
|
152
155
|
}
|
|
153
156
|
|
|
154
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)) {
|
|
155
|
-
--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;
|
|
156
163
|
}
|
|
157
164
|
|
|
158
165
|
/* The kit's Prominent list header (Lists, Header 517:38042, Type=Prominent): Title 3 Semibold
|
|
@@ -164,6 +171,7 @@
|
|
|
164
171
|
--field-group-title-line-height: 25px;
|
|
165
172
|
--field-group-title-font-weight: 590;
|
|
166
173
|
--field-group-header-min-height: 45px;
|
|
174
|
+
--field-group-header-padding-top: 10px;
|
|
167
175
|
--field-group-header-padding-bottom: 10px;
|
|
168
176
|
}
|
|
169
177
|
|
|
@@ -278,13 +286,15 @@
|
|
|
278
286
|
--field-group-gap-header-offset: 0px;
|
|
279
287
|
}
|
|
280
288
|
|
|
281
|
-
/* With touch.css, groups one after another space themselves as
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
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. */
|
|
288
298
|
/* A group may stand in a RadioGroup of its own, around the group of its choices: that radio group spaces as the
|
|
289
299
|
group. Only a radio group: a layout cell holding one group (a column of a grid) keeps its place (Codex #43). */
|
|
290
300
|
:where([data-plex-layout="phone"]) [role="radiogroup"]:has(> .FieldGroup:only-child) {
|
|
@@ -295,19 +305,23 @@
|
|
|
295
305
|
:where([data-plex-layout="phone"]) :is(.FieldGroup, [role="radiogroup"]:has(> .FieldGroup:only-child)) + :is(.FieldGroup, [role="radiogroup"]:has(> .FieldGroup:only-child)) {
|
|
296
306
|
/* Only with touch.css, which turns --field-group-stack-spacing on: a page without it keeps its own layout's
|
|
297
307
|
gaps, a grid's columns level (Codex #58) */
|
|
298
|
-
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)));
|
|
299
309
|
}
|
|
300
310
|
|
|
301
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)) {
|
|
302
|
-
--field-group-gap-footer-offset: 17.
|
|
312
|
+
--field-group-gap-footer-offset: 17.33px;
|
|
303
313
|
}
|
|
304
314
|
|
|
305
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)) {
|
|
306
|
-
--field-group-gap-header-offset:
|
|
316
|
+
--field-group-gap-header-offset: 18.67px;
|
|
307
317
|
}
|
|
308
318
|
|
|
309
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)) {
|
|
310
|
-
--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;
|
|
311
325
|
}
|
|
312
326
|
|
|
313
327
|
/* The kit's Prominent list header (Lists, Header 517:38042, Type=Prominent): Title 3 Semibold
|
|
@@ -319,6 +333,7 @@
|
|
|
319
333
|
--field-group-title-line-height: 25px;
|
|
320
334
|
--field-group-title-font-weight: 590;
|
|
321
335
|
--field-group-header-min-height: 45px;
|
|
336
|
+
--field-group-header-padding-top: 10px;
|
|
322
337
|
--field-group-header-padding-bottom: 10px;
|
|
323
338
|
}
|
|
324
339
|
|
|
@@ -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;
|
|
@@ -687,8 +687,9 @@
|
|
|
687
687
|
the list through the bounce). The bar keeps the row of controls. Once the title has gone under the bar, the row
|
|
688
688
|
shows it inline: the two swap over --toolbar-large-title-swap-duration, not with the scroll, as iOS 27.2 does,
|
|
689
689
|
and a hard or glass bar shows its line with the inline title: until then the large title is the content under
|
|
690
|
-
the row.
|
|
691
|
-
|
|
690
|
+
the row. A Sheet does the same with its body (Dialog.Body keeps the place); its bar keeps its padding, background
|
|
691
|
+
and radius. */
|
|
692
|
+
.Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"] {
|
|
692
693
|
--toolbar-edge-blur: var(--toolbar-edge-blur-small);
|
|
693
694
|
grid-template-areas: "leading collapsed trailing";
|
|
694
695
|
grid-template-columns: minmax(max-content, 1fr) minmax(0, auto) minmax(max-content, 1fr);
|
|
@@ -697,23 +698,23 @@
|
|
|
697
698
|
|
|
698
699
|
/* Until the content has made its place (a server-rendered page before it hydrates), the title stands in the
|
|
699
700
|
bar's second row, where it will stand in the content. */
|
|
700
|
-
.Toolbar[data-host="page"][data-title-style="large"]:has(> .Heading) {
|
|
701
|
+
.Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"]:has(> .Heading) {
|
|
701
702
|
grid-template-areas:
|
|
702
703
|
"leading collapsed trailing"
|
|
703
704
|
"heading heading heading";
|
|
704
705
|
grid-template-rows: minmax(var(--toolbar-item-size), auto) auto;
|
|
705
706
|
}
|
|
706
707
|
|
|
707
|
-
.Toolbar[data-host="page"][data-title-style="large"][data-background="hard"]::before,
|
|
708
|
-
.Toolbar[data-host="page"][data-title-style="large"][data-background="glass"]::before {
|
|
708
|
+
.Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"][data-background="hard"]::before,
|
|
709
|
+
.Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"][data-background="glass"]::before {
|
|
709
710
|
transition: opacity var(--toolbar-large-title-swap-duration), border-color var(--toolbar-large-title-swap-duration);
|
|
710
711
|
}
|
|
711
712
|
|
|
712
|
-
.Toolbar[data-host="page"][data-title-style="large"][data-scrolled]:not([data-title-collapsed])[data-background="hard"]::before {
|
|
713
|
+
.Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"][data-scrolled]:not([data-title-collapsed])[data-background="hard"]::before {
|
|
713
714
|
border-bottom-color: transparent;
|
|
714
715
|
}
|
|
715
716
|
|
|
716
|
-
.Toolbar[data-host="page"][data-title-style="large"][data-scrolled]:not([data-title-collapsed])[data-background="glass"]::before {
|
|
717
|
+
.Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"][data-scrolled]:not([data-title-collapsed])[data-background="glass"]::before {
|
|
717
718
|
opacity: 0;
|
|
718
719
|
}
|
|
719
720
|
|
|
@@ -721,22 +722,28 @@
|
|
|
721
722
|
13.11 «Да, закрепить»): the background, edge and line reach under them as under a row in the bar, the bar's
|
|
722
723
|
bottom padding under the last one, as iOS 27.2 draws its edge under a pinned safeAreaBar (ref-app
|
|
723
724
|
segrow-large-scrolled). */
|
|
724
|
-
.Toolbar[data-host="page"][data-title-style="large"][data-rows-pinned]::before,
|
|
725
|
-
.Toolbar[data-host="page"][data-title-style="large"][data-rows-pinned]::after {
|
|
725
|
+
.Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"][data-rows-pinned]::before,
|
|
726
|
+
.Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"][data-rows-pinned]::after {
|
|
726
727
|
margin-bottom: calc(-1 * (var(--toolbar-row-gap) + var(--page-toolbar-rows-height, 0px)));
|
|
727
728
|
}
|
|
728
729
|
|
|
729
730
|
/* The bar ends at the title's last baseline: the content starts 16pt under it (iOS 27.2: baseline 152, content
|
|
730
731
|
168, in Files, Settings, UIKit and SwiftUI; with a subtitle, 16.6 under the subtitle's). */
|
|
731
|
-
.Toolbar[data-host="page"][data-title-style="large"] > .Heading {
|
|
732
|
+
.Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"] > .Heading {
|
|
732
733
|
margin-bottom: calc(-1 * (var(--toolbar-padding-bottom) + var(--toolbar-large-title-descent)));
|
|
733
734
|
}
|
|
734
735
|
|
|
735
|
-
.Toolbar[data-host="page"][data-title-style="large"] > .Heading:has(> .Subtitle) {
|
|
736
|
+
.Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"] > .Heading:has(> .Subtitle) {
|
|
736
737
|
margin-bottom: calc(-1 * (var(--toolbar-padding-bottom) + var(--toolbar-large-subtitle-descent)));
|
|
737
738
|
}
|
|
738
739
|
|
|
739
|
-
|
|
740
|
+
/* A title kept in the bar with rows under it (a Sheet without Dialog.Body) keeps its line box: the rows stand
|
|
741
|
+
--toolbar-large-title-gap under it, not over its descent (Codex #70). */
|
|
742
|
+
.Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"] > .Heading:has(~ .Row) {
|
|
743
|
+
margin-bottom: 0;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
.Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"] > .CollapsedTitle {
|
|
740
747
|
grid-area: collapsed;
|
|
741
748
|
min-width: 0;
|
|
742
749
|
overflow: hidden;
|
|
@@ -751,13 +758,13 @@
|
|
|
751
758
|
transition: opacity var(--toolbar-large-title-swap-duration);
|
|
752
759
|
}
|
|
753
760
|
|
|
754
|
-
.Toolbar[data-host="page"][data-title-style="large"][data-title-collapsed] > .CollapsedTitle {
|
|
761
|
+
.Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"][data-title-collapsed] > .CollapsedTitle {
|
|
755
762
|
opacity: 1;
|
|
756
763
|
}
|
|
757
764
|
|
|
758
765
|
/* With a subtitle the inline copy takes two lines, as the inline title does: 15/20 and 12/16 in the
|
|
759
766
|
secondary label (iOS 26 kit Toolbar - Top - iPhone, Title 2 Line: 15 semibold over 12 medium). */
|
|
760
|
-
.Toolbar[data-host="page"][data-title-style="large"] > .CollapsedTitle:has(> .CollapsedSubtitle) {
|
|
767
|
+
.Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"] > .CollapsedTitle:has(> .CollapsedSubtitle) {
|
|
761
768
|
display: flex;
|
|
762
769
|
flex-direction: column;
|
|
763
770
|
align-items: center;
|
|
@@ -767,14 +774,14 @@
|
|
|
767
774
|
transform: translateY(-0.33px);
|
|
768
775
|
}
|
|
769
776
|
|
|
770
|
-
.Toolbar[data-host="page"][data-title-style="large"] > .CollapsedTitle > :is(.CollapsedLine, .CollapsedSubtitle) {
|
|
777
|
+
.Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"] > .CollapsedTitle > :is(.CollapsedLine, .CollapsedSubtitle) {
|
|
771
778
|
max-width: 100%;
|
|
772
779
|
overflow: hidden;
|
|
773
780
|
text-overflow: ellipsis;
|
|
774
781
|
white-space: nowrap;
|
|
775
782
|
}
|
|
776
783
|
|
|
777
|
-
.Toolbar[data-host="page"][data-title-style="large"] > .CollapsedTitle > .CollapsedSubtitle {
|
|
784
|
+
.Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"] > .CollapsedTitle > .CollapsedSubtitle {
|
|
778
785
|
margin-top: -2px;
|
|
779
786
|
color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
780
787
|
font-size: var(--toolbar-subtitle-font-size);
|
|
@@ -1510,8 +1517,9 @@
|
|
|
1510
1517
|
the list through the bounce). The bar keeps the row of controls. Once the title has gone under the bar, the row
|
|
1511
1518
|
shows it inline: the two swap over --toolbar-large-title-swap-duration, not with the scroll, as iOS 27.2 does,
|
|
1512
1519
|
and a hard or glass bar shows its line with the inline title: until then the large title is the content under
|
|
1513
|
-
the row.
|
|
1514
|
-
|
|
1520
|
+
the row. A Sheet does the same with its body (Dialog.Body keeps the place); its bar keeps its padding, background
|
|
1521
|
+
and radius. */
|
|
1522
|
+
:where([data-plex-layout="phone"]) .Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"] {
|
|
1515
1523
|
--toolbar-edge-blur: var(--toolbar-edge-blur-small);
|
|
1516
1524
|
grid-template-areas: "leading collapsed trailing";
|
|
1517
1525
|
grid-template-columns: minmax(max-content, 1fr) minmax(0, auto) minmax(max-content, 1fr);
|
|
@@ -1520,23 +1528,22 @@
|
|
|
1520
1528
|
|
|
1521
1529
|
/* Until the content has made its place (a server-rendered page before it hydrates), the title stands in the
|
|
1522
1530
|
bar's second row, where it will stand in the content. */
|
|
1523
|
-
:where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"]:has(> .Heading) {
|
|
1531
|
+
:where([data-plex-layout="phone"]) .Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"]:has(> .Heading) {
|
|
1524
1532
|
grid-template-areas:
|
|
1525
1533
|
"leading collapsed trailing"
|
|
1526
1534
|
"heading heading heading";
|
|
1527
1535
|
grid-template-rows: minmax(var(--toolbar-item-size), auto) auto;
|
|
1528
1536
|
}
|
|
1529
1537
|
|
|
1530
|
-
:where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"][data-background="hard"]::before,
|
|
1531
|
-
:where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"][data-background="glass"]::before {
|
|
1538
|
+
:where([data-plex-layout="phone"]) .Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"][data-background="hard"]::before, :where([data-plex-layout="phone"]) .Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"][data-background="glass"]::before {
|
|
1532
1539
|
transition: opacity var(--toolbar-large-title-swap-duration), border-color var(--toolbar-large-title-swap-duration);
|
|
1533
1540
|
}
|
|
1534
1541
|
|
|
1535
|
-
:where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"][data-scrolled]:not([data-title-collapsed])[data-background="hard"]::before {
|
|
1542
|
+
:where([data-plex-layout="phone"]) .Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"][data-scrolled]:not([data-title-collapsed])[data-background="hard"]::before {
|
|
1536
1543
|
border-bottom-color: transparent;
|
|
1537
1544
|
}
|
|
1538
1545
|
|
|
1539
|
-
:where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"][data-scrolled]:not([data-title-collapsed])[data-background="glass"]::before {
|
|
1546
|
+
:where([data-plex-layout="phone"]) .Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"][data-scrolled]:not([data-title-collapsed])[data-background="glass"]::before {
|
|
1540
1547
|
opacity: 0;
|
|
1541
1548
|
}
|
|
1542
1549
|
|
|
@@ -1544,22 +1551,27 @@
|
|
|
1544
1551
|
13.11 «Да, закрепить»): the background, edge and line reach under them as under a row in the bar, the bar's
|
|
1545
1552
|
bottom padding under the last one, as iOS 27.2 draws its edge under a pinned safeAreaBar (ref-app
|
|
1546
1553
|
segrow-large-scrolled). */
|
|
1547
|
-
:where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"][data-rows-pinned]::before,
|
|
1548
|
-
:where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"][data-rows-pinned]::after {
|
|
1554
|
+
:where([data-plex-layout="phone"]) .Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"][data-rows-pinned]::before, :where([data-plex-layout="phone"]) .Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"][data-rows-pinned]::after {
|
|
1549
1555
|
margin-bottom: calc(-1 * (var(--toolbar-row-gap) + var(--page-toolbar-rows-height, 0px)));
|
|
1550
1556
|
}
|
|
1551
1557
|
|
|
1552
1558
|
/* The bar ends at the title's last baseline: the content starts 16pt under it (iOS 27.2: baseline 152, content
|
|
1553
1559
|
168, in Files, Settings, UIKit and SwiftUI; with a subtitle, 16.6 under the subtitle's). */
|
|
1554
|
-
:where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"] > .Heading {
|
|
1560
|
+
:where([data-plex-layout="phone"]) .Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"] > .Heading {
|
|
1555
1561
|
margin-bottom: calc(-1 * (var(--toolbar-padding-bottom) + var(--toolbar-large-title-descent)));
|
|
1556
1562
|
}
|
|
1557
1563
|
|
|
1558
|
-
:where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"] > .Heading:has(> .Subtitle) {
|
|
1564
|
+
:where([data-plex-layout="phone"]) .Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"] > .Heading:has(> .Subtitle) {
|
|
1559
1565
|
margin-bottom: calc(-1 * (var(--toolbar-padding-bottom) + var(--toolbar-large-subtitle-descent)));
|
|
1560
1566
|
}
|
|
1561
1567
|
|
|
1562
|
-
|
|
1568
|
+
/* A title kept in the bar with rows under it (a Sheet without Dialog.Body) keeps its line box: the rows stand
|
|
1569
|
+
--toolbar-large-title-gap under it, not over its descent (Codex #70). */
|
|
1570
|
+
:where([data-plex-layout="phone"]) .Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"] > .Heading:has(~ .Row) {
|
|
1571
|
+
margin-bottom: 0;
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
:where([data-plex-layout="phone"]) .Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"] > .CollapsedTitle {
|
|
1563
1575
|
grid-area: collapsed;
|
|
1564
1576
|
min-width: 0;
|
|
1565
1577
|
overflow: hidden;
|
|
@@ -1574,13 +1586,13 @@
|
|
|
1574
1586
|
transition: opacity var(--toolbar-large-title-swap-duration);
|
|
1575
1587
|
}
|
|
1576
1588
|
|
|
1577
|
-
:where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"][data-title-collapsed] > .CollapsedTitle {
|
|
1589
|
+
:where([data-plex-layout="phone"]) .Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"][data-title-collapsed] > .CollapsedTitle {
|
|
1578
1590
|
opacity: 1;
|
|
1579
1591
|
}
|
|
1580
1592
|
|
|
1581
1593
|
/* With a subtitle the inline copy takes two lines, as the inline title does: 15/20 and 12/16 in the
|
|
1582
1594
|
secondary label (iOS 26 kit Toolbar - Top - iPhone, Title 2 Line: 15 semibold over 12 medium). */
|
|
1583
|
-
:where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"] > .CollapsedTitle:has(> .CollapsedSubtitle) {
|
|
1595
|
+
:where([data-plex-layout="phone"]) .Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"] > .CollapsedTitle:has(> .CollapsedSubtitle) {
|
|
1584
1596
|
display: flex;
|
|
1585
1597
|
flex-direction: column;
|
|
1586
1598
|
align-items: center;
|
|
@@ -1590,14 +1602,14 @@
|
|
|
1590
1602
|
transform: translateY(-0.33px);
|
|
1591
1603
|
}
|
|
1592
1604
|
|
|
1593
|
-
:where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"] > .CollapsedTitle > :is(.CollapsedLine, .CollapsedSubtitle) {
|
|
1605
|
+
:where([data-plex-layout="phone"]) .Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"] > .CollapsedTitle > :is(.CollapsedLine, .CollapsedSubtitle) {
|
|
1594
1606
|
max-width: 100%;
|
|
1595
1607
|
overflow: hidden;
|
|
1596
1608
|
text-overflow: ellipsis;
|
|
1597
1609
|
white-space: nowrap;
|
|
1598
1610
|
}
|
|
1599
1611
|
|
|
1600
|
-
:where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"] > .CollapsedTitle > .CollapsedSubtitle {
|
|
1612
|
+
:where([data-plex-layout="phone"]) .Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"] > .CollapsedTitle > .CollapsedSubtitle {
|
|
1601
1613
|
margin-top: -2px;
|
|
1602
1614
|
color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
1603
1615
|
font-size: var(--toolbar-subtitle-font-size);
|
|
@@ -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
|
}
|