@plexui/styles 0.2.0 → 0.3.1
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/Alert/Alert.module.css +18 -0
- package/dist/es/components/DatePicker/Calendar.module.css +1 -1
- package/dist/es/components/DateRangePicker/Calendar.module.css +1 -1
- package/dist/es/components/Dialog/Dialog.module.css +71 -11
- package/dist/es/components/EmptyMessage/EmptyMessage.module.css +12 -8
- package/dist/es/components/FieldGroup/FieldGroup.module.css +5 -5
- package/dist/es/components/FileUpload/FileUpload.module.css +2 -2
- package/dist/es/components/Menu/Menu.module.css +8 -8
- package/dist/es/components/Select/Select.module.css +6 -6
- package/dist/es/components/Sidebar/Sidebar.module.css +2 -2
- package/dist/es/components/Tabs/Tabs.module.css +4 -4
- package/dist/es/components/Toast/Toast.module.css +43 -21
- package/dist/es/components/Toolbar/Toolbar.module.css +28 -4
- package/dist/es/styles/geist-mono-fonts/LICENSE +93 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-cyrillic-ext-wght-italic.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-cyrillic-ext-wght-normal.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-cyrillic-wght-italic.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-cyrillic-wght-normal.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-latin-ext-wght-italic.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-latin-ext-wght-normal.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-latin-wght-italic.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-latin-wght-normal.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-symbols2-wght-italic.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-symbols2-wght-normal.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-vietnamese-wght-italic.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-vietnamese-wght-normal.woff2 +0 -0
- package/dist/es/styles/geist-mono.css +124 -0
- package/dist/es/styles/index.css +3 -0
- package/dist/es/styles/inter-fonts/LICENSE +93 -0
- package/dist/es/styles/inter-fonts/inter-cyrillic-ext-opsz-italic.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-cyrillic-ext-opsz-normal.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-cyrillic-opsz-italic.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-cyrillic-opsz-normal.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-greek-ext-opsz-italic.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-greek-ext-opsz-normal.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-greek-opsz-italic.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-greek-opsz-normal.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-latin-ext-opsz-italic.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-latin-ext-opsz-normal.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-latin-opsz-italic.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-latin-opsz-normal.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-vietnamese-opsz-italic.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-vietnamese-opsz-normal.woff2 +0 -0
- package/dist/es/styles/inter.css +142 -0
- package/dist/es/styles/tailwind-utilities.css +8 -0
- package/dist/es/styles/touch.css +50 -62
- package/dist/es/styles/variables-components.css +20 -15
- package/dist/es/styles/variables-semantic.css +30 -5
- package/dist/es/styles/variables-tailwind-theme.css +2 -4
- package/dist/es/styles/variables-tokens-root.css +70 -4
- package/package.json +1 -1
|
@@ -252,6 +252,8 @@
|
|
|
252
252
|
.Indicator {
|
|
253
253
|
padding-inline: 6px 4px;
|
|
254
254
|
margin-block: 5px;
|
|
255
|
+
/* A smaller custom indicator stands on the middle of the icon's place */
|
|
256
|
+
min-height: var(--alert-indicator-size);
|
|
255
257
|
}
|
|
256
258
|
|
|
257
259
|
.Indicator::before {
|
|
@@ -263,6 +265,13 @@
|
|
|
263
265
|
align-self: center;
|
|
264
266
|
}
|
|
265
267
|
|
|
268
|
+
/* A description alone (a tip always has a title, so TipKit has no such card) stands its first line on the middle
|
|
269
|
+
of the image, as a title alone does: one line centred on the icon, more lines going on under it (owner 13.11:
|
|
270
|
+
the line sat 6px above the icon's middle) */
|
|
271
|
+
.Indicator + .Content > .Message:not(:has(> .Title)) {
|
|
272
|
+
margin-top: calc(5px + var(--alert-indicator-size) / 2 - 0.5lh);
|
|
273
|
+
}
|
|
274
|
+
|
|
266
275
|
.Message {
|
|
267
276
|
padding-inline-start: 6px;
|
|
268
277
|
}
|
|
@@ -372,6 +381,8 @@
|
|
|
372
381
|
:where([data-plex-layout="phone"]) .Indicator {
|
|
373
382
|
padding-inline: 6px 4px;
|
|
374
383
|
margin-block: 5px;
|
|
384
|
+
/* A smaller custom indicator stands on the middle of the icon's place */
|
|
385
|
+
min-height: var(--alert-indicator-size);
|
|
375
386
|
}
|
|
376
387
|
|
|
377
388
|
:where([data-plex-layout="phone"]) .Indicator::before {
|
|
@@ -383,6 +394,13 @@
|
|
|
383
394
|
align-self: center;
|
|
384
395
|
}
|
|
385
396
|
|
|
397
|
+
/* A description alone (a tip always has a title, so TipKit has no such card) stands its first line on the middle
|
|
398
|
+
of the image, as a title alone does: one line centred on the icon, more lines going on under it (owner 13.11:
|
|
399
|
+
the line sat 6px above the icon's middle) */
|
|
400
|
+
:where([data-plex-layout="phone"]) .Indicator + .Content > .Message:not(:has(> .Title)) {
|
|
401
|
+
margin-top: calc(5px + var(--alert-indicator-size) / 2 - 0.5lh);
|
|
402
|
+
}
|
|
403
|
+
|
|
386
404
|
:where([data-plex-layout="phone"]) .Message {
|
|
387
405
|
padding-inline-start: 6px;
|
|
388
406
|
}
|
|
@@ -285,7 +285,8 @@
|
|
|
285
285
|
}.CloseButton {
|
|
286
286
|
position: absolute;
|
|
287
287
|
top: 0.75rem;
|
|
288
|
-
right
|
|
288
|
+
/* Logical, as the header actions, so a right-to-left dialog keeps it clear of a leading action */
|
|
289
|
+
inset-inline-end: 0.75rem;
|
|
289
290
|
display: inline-flex;
|
|
290
291
|
align-items: center;
|
|
291
292
|
justify-content: center;
|
|
@@ -367,8 +368,12 @@
|
|
|
367
368
|
.HeaderAction > button {
|
|
368
369
|
--button-size: 2rem;
|
|
369
370
|
--button-radius: var(--radius-full);
|
|
370
|
-
}.Panel:has(.HeaderAction) > .Header {
|
|
371
|
+
}.Panel:has(.HeaderAction:not([data-side="leading"])) > .Header {
|
|
371
372
|
padding-inline-end: 4.75rem;
|
|
373
|
+
}/* A leading action, such as a step's Back, stands before the title: 8px between them */.HeaderAction[data-side="leading"] {
|
|
374
|
+
inset-inline: 0.75rem auto;
|
|
375
|
+
}.Panel:has(.HeaderAction[data-side="leading"]) > .Header {
|
|
376
|
+
padding-inline-start: 2rem;
|
|
372
377
|
}.Title {
|
|
373
378
|
margin: 0;
|
|
374
379
|
font-size: 1.125rem;
|
|
@@ -392,7 +397,7 @@
|
|
|
392
397
|
|
|
393
398
|
.CloseButton {
|
|
394
399
|
top: 0.5rem;
|
|
395
|
-
|
|
400
|
+
inset-inline-end: 0.5rem;
|
|
396
401
|
width: var(--dialog-mobile-action-size);
|
|
397
402
|
height: var(--dialog-mobile-action-size);
|
|
398
403
|
border-radius: var(--radius-full);
|
|
@@ -480,7 +485,7 @@
|
|
|
480
485
|
|
|
481
486
|
:where([data-plex-layout="phone"]) .CloseButton {
|
|
482
487
|
top: 0.5rem;
|
|
483
|
-
|
|
488
|
+
inset-inline-end: 0.5rem;
|
|
484
489
|
width: var(--dialog-mobile-action-size);
|
|
485
490
|
height: var(--dialog-mobile-action-size);
|
|
486
491
|
border-radius: var(--radius-full);
|
|
@@ -555,7 +560,8 @@
|
|
|
555
560
|
--button-radius: var(--dialog-mobile-action-radius);
|
|
556
561
|
--button-font-size: var(--dialog-mobile-action-font-size);
|
|
557
562
|
--button-gutter: var(--control-gutter-xl);
|
|
558
|
-
}/*
|
|
563
|
+
}/* On a phone every dialog is an iOS presentation: a sheet unless it is an alert (mobileVariant, owner 12.11). The
|
|
564
|
+
desktop placement and styles stay independent of it. */@media (width <= 767px) {
|
|
559
565
|
/* A phone Sheet or Alert dims the page as iOS does: less than a desktop modal in light. */
|
|
560
566
|
.Overlay:has(+ .Content:is([data-mobile-variant="sheet"], [data-mobile-variant="alert"])) {
|
|
561
567
|
background: var(--dialog-mobile-scrim);
|
|
@@ -987,19 +993,46 @@
|
|
|
987
993
|
|
|
988
994
|
/* The prominent action of a sheet's footer takes the accent and the edge of the glass, as a bar's does (see
|
|
989
995
|
the --toolbar-prominent tokens): native setup sheets draw Continue 0/135/254, lighter along its top and
|
|
990
|
-
bottom and darker at its sides (IMG_5432 Wallet, IMG_5509; owner 08.11).
|
|
991
|
-
|
|
996
|
+
bottom and darker at its sides (IMG_5432 Wallet, IMG_5509; owner 08.11). An alert's preferred action is the
|
|
997
|
+
same: the kit's Default role is the accent fill with a white label (iOS 27, Alerts _Buttons 5446:6658), as
|
|
998
|
+
native draws a preferredAction (0082f7, dark 13a3ff); owner 12.11. */
|
|
999
|
+
.Content:is([data-mobile-variant="sheet"], [data-mobile-variant="alert"]) .Footer > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled]) {
|
|
992
1000
|
--button-background-color: var(--toolbar-prominent-background);
|
|
993
1001
|
--button-background-color-hover: var(--toolbar-prominent-background-hover);
|
|
994
1002
|
--button-background-color-active: var(--toolbar-prominent-background-active);
|
|
995
1003
|
--button-text-color: var(--toolbar-prominent-color);
|
|
996
1004
|
}
|
|
997
1005
|
|
|
998
|
-
.Content[data-mobile-variant="sheet"] .Footer > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled])::before {
|
|
1006
|
+
.Content:is([data-mobile-variant="sheet"], [data-mobile-variant="alert"]) .Footer > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled])::before {
|
|
999
1007
|
background-image: var(--toolbar-prominent-sheen);
|
|
1000
1008
|
box-shadow: var(--toolbar-prominent-shadow);
|
|
1001
1009
|
}
|
|
1002
1010
|
|
|
1011
|
+
/* A sheet's footer lays out its actions as an iOS setup sheet does: the main one on top and another under it as
|
|
1012
|
+
a plain tinted button, with no face (Wallet's Create a Pass, IMG_5432: Continue 53pt high and Create Pass
|
|
1013
|
+
Manually centred 35pt below it; owner 12.11, «нет такого в iOS»). A footer is written with its main action
|
|
1014
|
+
last, where a desktop row ends; Dialog.Footer turns the order in the page on a phone. Beside a solid action a
|
|
1015
|
+
soft, outline or ghost one takes the iOS tint (--color-accent, as the prominent bar button) or red for danger, at the
|
|
1016
|
+
regular weight; a disabled one keeps the Button's disabled color. */
|
|
1017
|
+
.Content[data-mobile-variant="sheet"] .Footer:not([data-mobile-layout="inline"]):has(> :where(button, a, [role="link"])[data-variant="solid"]) > :where(button, a, [role="link"]):not([data-variant="solid"]) {
|
|
1018
|
+
font-weight: var(--font-weight-normal);
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
.Content[data-mobile-variant="sheet"] .Footer:not([data-mobile-layout="inline"]):has(> :where(button, a, [role="link"])[data-variant="solid"]) > :where(button, a, [role="link"]):not([data-variant="solid"]):where(:not([data-disabled])) {
|
|
1022
|
+
--button-text-color: var(--color-text-accent);
|
|
1023
|
+
--button-text-color-hover: var(--color-text-accent);
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
.Content[data-mobile-variant="sheet"] .Footer:not([data-mobile-layout="inline"]):has(> :where(button, a, [role="link"])[data-variant="solid"]) > :where(button, a, [role="link"]):not([data-variant="solid"]):where([data-color="danger"]:not([data-disabled])) {
|
|
1027
|
+
--button-text-color: var(--color-text-danger);
|
|
1028
|
+
--button-text-color-hover: var(--color-text-danger);
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
.Content[data-mobile-variant="sheet"] .Footer:not([data-mobile-layout="inline"]):has(> :where(button, a, [role="link"])[data-variant="solid"]) > :where(button, a, [role="link"]):not([data-variant="solid"])::before {
|
|
1032
|
+
background: none;
|
|
1033
|
+
box-shadow: none;
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1003
1036
|
.Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] .Header {
|
|
1004
1037
|
min-height: calc(54px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
|
|
1005
1038
|
padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
|
|
@@ -1445,19 +1478,46 @@
|
|
|
1445
1478
|
|
|
1446
1479
|
/* The prominent action of a sheet's footer takes the accent and the edge of the glass, as a bar's does (see
|
|
1447
1480
|
the --toolbar-prominent tokens): native setup sheets draw Continue 0/135/254, lighter along its top and
|
|
1448
|
-
bottom and darker at its sides (IMG_5432 Wallet, IMG_5509; owner 08.11).
|
|
1449
|
-
|
|
1481
|
+
bottom and darker at its sides (IMG_5432 Wallet, IMG_5509; owner 08.11). An alert's preferred action is the
|
|
1482
|
+
same: the kit's Default role is the accent fill with a white label (iOS 27, Alerts _Buttons 5446:6658), as
|
|
1483
|
+
native draws a preferredAction (0082f7, dark 13a3ff); owner 12.11. */
|
|
1484
|
+
:where([data-plex-layout="phone"]) .Content:is([data-mobile-variant="sheet"], [data-mobile-variant="alert"]) .Footer > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled]) {
|
|
1450
1485
|
--button-background-color: var(--toolbar-prominent-background);
|
|
1451
1486
|
--button-background-color-hover: var(--toolbar-prominent-background-hover);
|
|
1452
1487
|
--button-background-color-active: var(--toolbar-prominent-background-active);
|
|
1453
1488
|
--button-text-color: var(--toolbar-prominent-color);
|
|
1454
1489
|
}
|
|
1455
1490
|
|
|
1456
|
-
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled])::before {
|
|
1491
|
+
:where([data-plex-layout="phone"]) .Content:is([data-mobile-variant="sheet"], [data-mobile-variant="alert"]) .Footer > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled])::before {
|
|
1457
1492
|
background-image: var(--toolbar-prominent-sheen);
|
|
1458
1493
|
box-shadow: var(--toolbar-prominent-shadow);
|
|
1459
1494
|
}
|
|
1460
1495
|
|
|
1496
|
+
/* A sheet's footer lays out its actions as an iOS setup sheet does: the main one on top and another under it as
|
|
1497
|
+
a plain tinted button, with no face (Wallet's Create a Pass, IMG_5432: Continue 53pt high and Create Pass
|
|
1498
|
+
Manually centred 35pt below it; owner 12.11, «нет такого в iOS»). A footer is written with its main action
|
|
1499
|
+
last, where a desktop row ends; Dialog.Footer turns the order in the page on a phone. Beside a solid action a
|
|
1500
|
+
soft, outline or ghost one takes the iOS tint (--color-accent, as the prominent bar button) or red for danger, at the
|
|
1501
|
+
regular weight; a disabled one keeps the Button's disabled color. */
|
|
1502
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer:not([data-mobile-layout="inline"]):has(> :where(button, a, [role="link"])[data-variant="solid"]) > :where(button, a, [role="link"]):not([data-variant="solid"]) {
|
|
1503
|
+
font-weight: var(--font-weight-normal);
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer:not([data-mobile-layout="inline"]):has(> :where(button, a, [role="link"])[data-variant="solid"]) > :where(button, a, [role="link"]):not([data-variant="solid"]):where(:not([data-disabled])) {
|
|
1507
|
+
--button-text-color: var(--color-text-accent);
|
|
1508
|
+
--button-text-color-hover: var(--color-text-accent);
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer:not([data-mobile-layout="inline"]):has(> :where(button, a, [role="link"])[data-variant="solid"]) > :where(button, a, [role="link"]):not([data-variant="solid"]):where([data-color="danger"]:not([data-disabled])) {
|
|
1512
|
+
--button-text-color: var(--color-text-danger);
|
|
1513
|
+
--button-text-color-hover: var(--color-text-danger);
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer:not([data-mobile-layout="inline"]):has(> :where(button, a, [role="link"])[data-variant="solid"]) > :where(button, a, [role="link"]):not([data-variant="solid"])::before {
|
|
1517
|
+
background: none;
|
|
1518
|
+
box-shadow: none;
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1461
1521
|
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] .Header {
|
|
1462
1522
|
min-height: calc(54px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
|
|
1463
1523
|
padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
padding-bottom: var(--empty-message-padding-bottom, 0px);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
/* On a phone (touch.css, the
|
|
30
|
-
a screen can
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
rules do not apply, so a caller's own spacing and button widths stand. */
|
|
29
|
+
/* On a phone (touch.css, the kit's empty state) the text can keep a further inset, and a message that fills
|
|
30
|
+
a screen can place its buttons apart from the text: margins above the content and above the buttons and
|
|
31
|
+
an inset above both, so the buttons keep their distance from the text (touch.css sets them across the
|
|
32
|
+
screen at its bottom, as iOS 27 does, the text centred above). A text link stays under the text. Outside
|
|
33
|
+
the phone layout these rules do not apply, so a caller's own spacing and button widths stand. */
|
|
34
34
|
@media (max-width: 767px) {
|
|
35
35
|
.EmptyMessage:is([data-fill="static"], [data-fill="absolute"]):not([data-size="sm"]) > :is(.Title, .Description) {
|
|
36
36
|
padding-inline: var(--empty-message-text-inset, 0px);
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
margin-bottom: calc(var(--spacing) * 1);
|
|
93
93
|
font-size: var(--font-text-sm-size);
|
|
94
94
|
line-height: var(--font-text-sm-line-height);
|
|
95
|
-
letter-spacing:
|
|
95
|
+
letter-spacing: var(--font-sans-tracking);
|
|
96
96
|
font-weight: var(--font-weight-semibold);
|
|
97
97
|
}
|
|
98
98
|
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
font-size: var(--empty-message-compact-description-size, var(--font-text-sm-size));
|
|
102
102
|
font-weight: var(--font-weight-normal);
|
|
103
103
|
line-height: var(--empty-message-compact-description-leading, var(--font-text-sm-line-height));
|
|
104
|
-
letter-spacing:
|
|
104
|
+
letter-spacing: var(--font-sans-tracking);
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
.EmptyMessage[data-size="sm"] .ActionRow {
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
font-size: var(--empty-message-description-size, var(--font-text-sm-size));
|
|
188
188
|
font-weight: var(--empty-message-description-weight, var(--font-weight-normal));
|
|
189
189
|
line-height: var(--empty-message-description-leading, var(--font-text-sm-line-height));
|
|
190
|
-
letter-spacing: var(--empty-message-description-tracking,
|
|
190
|
+
letter-spacing: var(--empty-message-description-tracking, var(--font-sans-tracking));
|
|
191
191
|
text-align: center;
|
|
192
192
|
text-wrap: pretty;
|
|
193
193
|
}.ActionRow {
|
|
@@ -209,6 +209,10 @@
|
|
|
209
209
|
--button-font-size-xl: var(--empty-message-action-font-size, var(--control-font-size-md));
|
|
210
210
|
--button-line-height-xl: var(--empty-message-action-line-height, 1);
|
|
211
211
|
--button-gutter-xl: var(--empty-message-action-gutter, var(--control-gutter-lg));
|
|
212
|
+
}/* Every action button, a plain (ghost) one too, takes the message's label weight where it sets one (a phone: the
|
|
213
|
+
kit's 17 Medium for its Primary and its Tertiary). Set on the button, as touch.css sets a filled button's
|
|
214
|
+
Semibold on the button itself. */.EmptyMessage:not([data-size="sm"]) .ActionRow > [data-variant] {
|
|
215
|
+
font-weight: var(--empty-message-action-font-weight, var(--button-font-weight));
|
|
212
216
|
}.EmptyMessage:not([data-size="sm"]) .ActionRow:has(> :nth-child(2)) {
|
|
213
217
|
flex-direction: var(--empty-message-multi-direction, row);
|
|
214
218
|
align-self: var(--empty-message-multi-align, auto);
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
font-size: var(--field-group-title-font-size);
|
|
19
19
|
line-height: var(--field-group-title-line-height);
|
|
20
20
|
font-weight: var(--field-group-title-font-weight);
|
|
21
|
-
letter-spacing: var(--field-group-title-letter-spacing,
|
|
21
|
+
letter-spacing: var(--field-group-title-letter-spacing, var(--font-sans-tracking));
|
|
22
22
|
}/* headerProminence="increased": the title leads its content, as a section of a page */.FieldGroup[data-header-prominence="increased"] {
|
|
23
23
|
--field-group-title-color: var(--color-text);
|
|
24
24
|
--field-group-title-font-size: var(--font-heading-sm-size);
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/* The kit's Prominent list header (Lists, Header 517:38042, Type=Prominent): Title 3 Semibold
|
|
57
|
-
20/25 in the primary label, 10pt above the rows. Its -0.45 tracking is
|
|
58
|
-
|
|
57
|
+
20/25 in the primary label, 10pt above the rows. Its -0.45 tracking is SF's own at 20pt; the title
|
|
58
|
+
takes the kit face's, --font-sans-tracking at 20px (font-tracking.test.ts). */
|
|
59
59
|
.FieldGroup[data-header-prominence="increased"] {
|
|
60
60
|
--field-group-title-color: var(--color-text);
|
|
61
61
|
--field-group-title-font-size: 20px;
|
|
@@ -168,8 +168,8 @@
|
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
/* The kit's Prominent list header (Lists, Header 517:38042, Type=Prominent): Title 3 Semibold
|
|
171
|
-
20/25 in the primary label, 10pt above the rows. Its -0.45 tracking is
|
|
172
|
-
|
|
171
|
+
20/25 in the primary label, 10pt above the rows. Its -0.45 tracking is SF's own at 20pt; the title
|
|
172
|
+
takes the kit face's, --font-sans-tracking at 20px (font-tracking.test.ts). */
|
|
173
173
|
:where([data-plex-layout="phone"]) .FieldGroup[data-header-prominence="increased"] {
|
|
174
174
|
--field-group-title-color: var(--color-text);
|
|
175
175
|
--field-group-title-font-size: 20px;
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
.FileNameExt {
|
|
175
175
|
font-size: 17px;
|
|
176
176
|
line-height: 22px;
|
|
177
|
-
letter-spacing:
|
|
177
|
+
letter-spacing: var(--font-sans-tracking);
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
.FileSize {
|
|
@@ -248,7 +248,7 @@
|
|
|
248
248
|
:where([data-plex-layout="phone"]) .FileNameExt {
|
|
249
249
|
font-size: 17px;
|
|
250
250
|
line-height: 22px;
|
|
251
|
-
letter-spacing:
|
|
251
|
+
letter-spacing: var(--font-sans-tracking);
|
|
252
252
|
}
|
|
253
253
|
|
|
254
254
|
:where([data-plex-layout="phone"]) .FileSize {
|
|
@@ -603,10 +603,10 @@
|
|
|
603
603
|
backdrop-filter: var(--menu-mobile-backdrop-filter, none);
|
|
604
604
|
}
|
|
605
605
|
|
|
606
|
-
/* No tracking of its own: the
|
|
607
|
-
(iOS2 IMG_5524, 5525, 17/400)
|
|
606
|
+
/* No tracking of its own: the labels take the kit face's, --font-sans-tracking at 17px. In SF, nine labels of
|
|
607
|
+
native iOS 26 menus (iOS2 IMG_5524, 5525, 17/400) measured within 2px at @3x without it, 7 to 16px short with -0.43px. */
|
|
608
608
|
.MenuList:not([data-layout="horizontal"]) :is(.MenuItem, .MenuItemContent):not(:where(.RadioGroup[data-layout="horizontal"] *)) {
|
|
609
|
-
letter-spacing: var(--menu-letter-spacing,
|
|
609
|
+
letter-spacing: var(--menu-letter-spacing, var(--font-sans-tracking));
|
|
610
610
|
overflow-wrap: anywhere;
|
|
611
611
|
}
|
|
612
612
|
|
|
@@ -665,7 +665,7 @@
|
|
|
665
665
|
.MenuList:not([data-layout="horizontal"]) .ItemDescription {
|
|
666
666
|
font-size: var(--menu-description-font-size, 13px);
|
|
667
667
|
line-height: var(--menu-description-line-height, 18px);
|
|
668
|
-
letter-spacing:
|
|
668
|
+
letter-spacing: var(--font-sans-tracking);
|
|
669
669
|
color: var(--menu-description-color, var(--color-text-secondary));
|
|
670
670
|
}
|
|
671
671
|
|
|
@@ -751,10 +751,10 @@
|
|
|
751
751
|
backdrop-filter: var(--menu-mobile-backdrop-filter, none);
|
|
752
752
|
}
|
|
753
753
|
|
|
754
|
-
/* No tracking of its own: the
|
|
755
|
-
(iOS2 IMG_5524, 5525, 17/400)
|
|
754
|
+
/* No tracking of its own: the labels take the kit face's, --font-sans-tracking at 17px. In SF, nine labels of
|
|
755
|
+
native iOS 26 menus (iOS2 IMG_5524, 5525, 17/400) measured within 2px at @3x without it, 7 to 16px short with -0.43px. */
|
|
756
756
|
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) :is(.MenuItem, .MenuItemContent):not(:where(.RadioGroup[data-layout="horizontal"] *)) {
|
|
757
|
-
letter-spacing: var(--menu-letter-spacing,
|
|
757
|
+
letter-spacing: var(--menu-letter-spacing, var(--font-sans-tracking));
|
|
758
758
|
overflow-wrap: anywhere;
|
|
759
759
|
}
|
|
760
760
|
|
|
@@ -813,7 +813,7 @@
|
|
|
813
813
|
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) .ItemDescription {
|
|
814
814
|
font-size: var(--menu-description-font-size, 13px);
|
|
815
815
|
line-height: var(--menu-description-line-height, 18px);
|
|
816
|
-
letter-spacing:
|
|
816
|
+
letter-spacing: var(--font-sans-tracking);
|
|
817
817
|
color: var(--menu-description-color, var(--color-text-secondary));
|
|
818
818
|
}
|
|
819
819
|
|
|
@@ -384,7 +384,7 @@ background: var(--gray-25);
|
|
|
384
384
|
}
|
|
385
385
|
|
|
386
386
|
.Option {
|
|
387
|
-
letter-spacing: var(--menu-letter-spacing,
|
|
387
|
+
letter-spacing: var(--menu-letter-spacing, var(--font-sans-tracking));
|
|
388
388
|
}
|
|
389
389
|
|
|
390
390
|
/* The capsule is the press: Safari's gray tap rectangle would stack on it */
|
|
@@ -552,7 +552,7 @@ background: var(--gray-25);
|
|
|
552
552
|
.OptionDescription {
|
|
553
553
|
font-size: var(--menu-description-font-size, 13px);
|
|
554
554
|
line-height: var(--menu-description-line-height, 18px);
|
|
555
|
-
letter-spacing:
|
|
555
|
+
letter-spacing: var(--font-sans-tracking);
|
|
556
556
|
color: var(--menu-description-color, var(--color-text-secondary));
|
|
557
557
|
}
|
|
558
558
|
|
|
@@ -567,7 +567,7 @@ background: var(--gray-25);
|
|
|
567
567
|
font-size: var(--menu-description-font-size, 13px);
|
|
568
568
|
font-weight: var(--font-weight-normal);
|
|
569
569
|
line-height: var(--menu-description-line-height, 18px);
|
|
570
|
-
letter-spacing:
|
|
570
|
+
letter-spacing: var(--font-sans-tracking);
|
|
571
571
|
color: var(--menu-description-color, var(--color-text-secondary));
|
|
572
572
|
}
|
|
573
573
|
|
|
@@ -663,7 +663,7 @@ background: var(--gray-25);
|
|
|
663
663
|
}
|
|
664
664
|
|
|
665
665
|
:where([data-plex-layout="phone"]) .Option {
|
|
666
|
-
letter-spacing: var(--menu-letter-spacing,
|
|
666
|
+
letter-spacing: var(--menu-letter-spacing, var(--font-sans-tracking));
|
|
667
667
|
}
|
|
668
668
|
|
|
669
669
|
/* The capsule is the press: Safari's gray tap rectangle would stack on it */
|
|
@@ -831,7 +831,7 @@ background: var(--gray-25);
|
|
|
831
831
|
:where([data-plex-layout="phone"]) .OptionDescription {
|
|
832
832
|
font-size: var(--menu-description-font-size, 13px);
|
|
833
833
|
line-height: var(--menu-description-line-height, 18px);
|
|
834
|
-
letter-spacing:
|
|
834
|
+
letter-spacing: var(--font-sans-tracking);
|
|
835
835
|
color: var(--menu-description-color, var(--color-text-secondary));
|
|
836
836
|
}
|
|
837
837
|
|
|
@@ -846,7 +846,7 @@ background: var(--gray-25);
|
|
|
846
846
|
font-size: var(--menu-description-font-size, 13px);
|
|
847
847
|
font-weight: var(--font-weight-normal);
|
|
848
848
|
line-height: var(--menu-description-line-height, 18px);
|
|
849
|
-
letter-spacing:
|
|
849
|
+
letter-spacing: var(--font-sans-tracking);
|
|
850
850
|
color: var(--menu-description-color, var(--color-text-secondary));
|
|
851
851
|
}
|
|
852
852
|
|
|
@@ -1009,7 +1009,7 @@
|
|
|
1009
1009
|
font-size: var(--sidebar-mobile-list-header-font-size, 20px);
|
|
1010
1010
|
font-weight: var(--sidebar-mobile-list-header-font-weight, var(--font-weight-semibold));
|
|
1011
1011
|
line-height: var(--sidebar-mobile-list-header-line-height, 25px);
|
|
1012
|
-
letter-spacing:
|
|
1012
|
+
letter-spacing: var(--font-sans-tracking);
|
|
1013
1013
|
}
|
|
1014
1014
|
|
|
1015
1015
|
/* The card. The page's surface sets its color: white on a grouped page. */
|
|
@@ -1210,7 +1210,7 @@
|
|
|
1210
1210
|
font-size: var(--sidebar-mobile-list-header-font-size, 20px);
|
|
1211
1211
|
font-weight: var(--sidebar-mobile-list-header-font-weight, var(--font-weight-semibold));
|
|
1212
1212
|
line-height: var(--sidebar-mobile-list-header-line-height, 25px);
|
|
1213
|
-
letter-spacing:
|
|
1213
|
+
letter-spacing: var(--font-sans-tracking);
|
|
1214
1214
|
}
|
|
1215
1215
|
|
|
1216
1216
|
/* The card. The page's surface sets its color: white on a grouped page. */
|
|
@@ -836,8 +836,8 @@
|
|
|
836
836
|
/* The native segment already includes its final gutter; pill scaling is desktop-only. */
|
|
837
837
|
/* The label keeps the base colors, the selected one primary and the others secondary, and touch.css makes the
|
|
838
838
|
secondary role primary: iOS 27.2 draws every label of the control in the label color, in content and in a bar,
|
|
839
|
-
as Calendar does in its sheet header (IMG_5433). No tracking
|
|
840
|
-
(17pt "All Inboxes" 241 at @3x in Mail
|
|
839
|
+
as Calendar does in its sheet header (IMG_5433). No tracking of its own: the label takes --font-sans-tracking at its
|
|
840
|
+
size, as every text (native SF tracks itself: 17pt "All Inboxes" 241 at @3x in Mail). */
|
|
841
841
|
.Tabs[data-orientation="horizontal"] .Tab {
|
|
842
842
|
padding-inline: var(--segmented-control-option-gutter);
|
|
843
843
|
border-radius: var(--segmented-control-option-radius);
|
|
@@ -1088,8 +1088,8 @@
|
|
|
1088
1088
|
/* The native segment already includes its final gutter; pill scaling is desktop-only. */
|
|
1089
1089
|
/* The label keeps the base colors, the selected one primary and the others secondary, and touch.css makes the
|
|
1090
1090
|
secondary role primary: iOS 27.2 draws every label of the control in the label color, in content and in a bar,
|
|
1091
|
-
as Calendar does in its sheet header (IMG_5433). No tracking
|
|
1092
|
-
(17pt "All Inboxes" 241 at @3x in Mail
|
|
1091
|
+
as Calendar does in its sheet header (IMG_5433). No tracking of its own: the label takes --font-sans-tracking at its
|
|
1092
|
+
size, as every text (native SF tracks itself: 17pt "All Inboxes" 241 at @3x in Mail). */
|
|
1093
1093
|
:where([data-plex-layout="phone"]) .Tabs[data-orientation="horizontal"] .Tab {
|
|
1094
1094
|
padding-inline: var(--segmented-control-option-gutter);
|
|
1095
1095
|
border-radius: var(--segmented-control-option-radius);
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
right: 0 !important;
|
|
27
27
|
margin-inline: auto !important;
|
|
28
28
|
/* Tight gap between icon and content; action button gets extra breathing
|
|
29
|
-
room via its own margin-
|
|
29
|
+
room via its own margin-inline-start below. */
|
|
30
30
|
gap: calc(var(--spacing) * 2) !important;
|
|
31
31
|
padding: calc(var(--spacing) * 3) !important;
|
|
32
32
|
font-size: var(--font-text-sm-size);
|
|
@@ -86,7 +86,8 @@
|
|
|
86
86
|
width: 20px;
|
|
87
87
|
height: 20px;
|
|
88
88
|
}.ActionButton {
|
|
89
|
-
|
|
89
|
+
/* Logical, so the gap stays between the message and the button in a right-to-left toaster */
|
|
90
|
+
margin-inline-start: calc(var(--spacing) * 2) !important;
|
|
90
91
|
background: var(--color-background-primary-solid) !important;
|
|
91
92
|
color: var(--color-text-primary-solid) !important;
|
|
92
93
|
font-weight: var(--font-weight-medium);
|
|
@@ -99,7 +100,7 @@
|
|
|
99
100
|
}.CancelButton {
|
|
100
101
|
color: var(--color-text-secondary) !important;
|
|
101
102
|
font-weight: var(--font-weight-medium);
|
|
102
|
-
}/* The close face: 20 across at the toast's
|
|
103
|
+
}/* The close face: 20 across at the toast's trailing end (below), its X in the text color and a
|
|
103
104
|
ring an outline Button draws, which shows on the dark surface too (Sonner's
|
|
104
105
|
dark ring takes --normal-border, transparent here). An invisible 4px rim
|
|
105
106
|
around its 18px inner box makes the target 26, past the 24 of WCAG 2.5.8.
|
|
@@ -117,6 +118,23 @@
|
|
|
117
118
|
inset: -4px;
|
|
118
119
|
border-radius: 50%;
|
|
119
120
|
content: "";
|
|
121
|
+
}/* The close button stands at the trailing end of the toast, inside it, where the message's row ends, not over the
|
|
122
|
+
leading corner where Sonner puts it (owner 12.11: «зачем X тут слева»). The message keeps clear of it: the 12px
|
|
123
|
+
padding, the 20px face and 8px between them. Without a description it is centred on the toast, on a title of one
|
|
124
|
+
line or more; with a description it stays level with the title. Vue's `closeButtonPosition` no longer moves it. */.Toast[data-styled="true"]:has(> [data-close-button]) {
|
|
125
|
+
padding-inline-end: 40px !important;
|
|
126
|
+
}.Toast[data-styled="true"] > [data-close-button] {
|
|
127
|
+
top: 50% !important;
|
|
128
|
+
right: 12px !important;
|
|
129
|
+
bottom: auto !important;
|
|
130
|
+
left: auto !important;
|
|
131
|
+
transform: translateY(-50%) !important;
|
|
132
|
+
}.Toast[data-styled="true"]:where(:has(.Description)) > [data-close-button] {
|
|
133
|
+
top: 12px !important;
|
|
134
|
+
transform: none !important;
|
|
135
|
+
}.Toaster[dir="rtl"] .Toast[data-styled="true"] > [data-close-button] {
|
|
136
|
+
right: auto !important;
|
|
137
|
+
left: 12px !important;
|
|
120
138
|
}.Toast :is([data-button], [data-close-button]):disabled {
|
|
121
139
|
cursor: not-allowed;
|
|
122
140
|
opacity: 0.5;
|
|
@@ -193,18 +211,20 @@
|
|
|
193
211
|
overflow-wrap: anywhere;
|
|
194
212
|
}
|
|
195
213
|
|
|
196
|
-
/* The 20px close face stays compact inside a separate 44px target
|
|
197
|
-
the
|
|
214
|
+
/* The 20px close face stays compact inside a separate 44px target at the
|
|
215
|
+
trailing top corner. Reserve the trailing space so neither its target nor
|
|
216
|
+
its ring covers the message or a button. */
|
|
198
217
|
.Toast[data-styled="true"]:has([data-close-button]) {
|
|
199
218
|
/* The 44px target inside the padding box and Sonner's 1px border above and below */
|
|
200
219
|
min-height: 46px;
|
|
201
|
-
padding-inline-
|
|
220
|
+
padding-inline-end: 56px !important;
|
|
202
221
|
}
|
|
203
222
|
|
|
204
223
|
.Toast[data-styled="true"] > [data-close-button] {
|
|
205
224
|
top: 0 !important;
|
|
206
|
-
|
|
207
|
-
|
|
225
|
+
right: 0 !important;
|
|
226
|
+
bottom: auto !important;
|
|
227
|
+
left: auto !important;
|
|
208
228
|
width: 44px !important;
|
|
209
229
|
height: 44px !important;
|
|
210
230
|
border: 0 !important;
|
|
@@ -235,8 +255,8 @@
|
|
|
235
255
|
}
|
|
236
256
|
|
|
237
257
|
.Toaster[dir="rtl"] .Toast[data-styled="true"] > [data-close-button] {
|
|
238
|
-
|
|
239
|
-
|
|
258
|
+
right: auto !important;
|
|
259
|
+
left: 0 !important;
|
|
240
260
|
}
|
|
241
261
|
}
|
|
242
262
|
:where([data-plex-layout="phone"]) .Toast[data-styled="true"] {
|
|
@@ -276,18 +296,20 @@
|
|
|
276
296
|
overflow-wrap: anywhere;
|
|
277
297
|
}
|
|
278
298
|
|
|
279
|
-
/* The 20px close face stays compact inside a separate 44px target
|
|
280
|
-
the
|
|
299
|
+
/* The 20px close face stays compact inside a separate 44px target at the
|
|
300
|
+
trailing top corner. Reserve the trailing space so neither its target nor
|
|
301
|
+
its ring covers the message or a button. */
|
|
281
302
|
:where([data-plex-layout="phone"]) .Toast[data-styled="true"]:has([data-close-button]) {
|
|
282
303
|
/* The 44px target inside the padding box and Sonner's 1px border above and below */
|
|
283
304
|
min-height: 46px;
|
|
284
|
-
padding-inline-
|
|
305
|
+
padding-inline-end: 56px !important;
|
|
285
306
|
}
|
|
286
307
|
|
|
287
308
|
:where([data-plex-layout="phone"]) .Toast[data-styled="true"] > [data-close-button] {
|
|
288
309
|
top: 0 !important;
|
|
289
|
-
|
|
290
|
-
|
|
310
|
+
right: 0 !important;
|
|
311
|
+
bottom: auto !important;
|
|
312
|
+
left: auto !important;
|
|
291
313
|
width: 44px !important;
|
|
292
314
|
height: 44px !important;
|
|
293
315
|
border: 0 !important;
|
|
@@ -318,13 +340,13 @@
|
|
|
318
340
|
}
|
|
319
341
|
|
|
320
342
|
:where([data-plex-layout="phone"]) .Toaster[dir="rtl"] .Toast[data-styled="true"] > [data-close-button] {
|
|
321
|
-
|
|
322
|
-
|
|
343
|
+
right: auto !important;
|
|
344
|
+
left: 0 !important;
|
|
323
345
|
}/* On a phone a toast takes the corners, padding and text of the iOS notification banner, the
|
|
324
346
|
system's own message at the top of the screen (kit iOS 27, Notifications, Notification - Collapsed
|
|
325
347
|
Stack=1 0:11292): corners 24, padding 12 above and below and 14 at the sides, a 10px gap, the
|
|
326
|
-
title at 15/17 semibold and the description at 15/18. The kit's -0.23 tracking of 15pt text
|
|
327
|
-
|
|
348
|
+
title at 15/17 semibold and the description at 15/18. The kit's -0.23 tracking of 15pt SF text gives
|
|
349
|
+
way to the kit face's own, --font-sans-tracking at each size. It keeps its own width and opaque surface, not
|
|
328
350
|
the banner's glass and width. Its buttons are the 34px capsule of a medium phone Button (touch.css) with
|
|
329
351
|
the banner's 15/20 regular label and a 14px gutter (a medium Button's 17pt label would outsize the
|
|
330
352
|
banner's text), its 44px target reaching 5px past it into the padding, so a one-line toast with a
|
|
@@ -333,7 +355,7 @@
|
|
|
333
355
|
gap: 10px !important;
|
|
334
356
|
padding: 12px 14px !important;
|
|
335
357
|
border-radius: 24px !important;
|
|
336
|
-
letter-spacing:
|
|
358
|
+
letter-spacing: var(--font-sans-tracking);
|
|
337
359
|
}
|
|
338
360
|
|
|
339
361
|
.Toast[data-styled="true"] .Title,
|
|
@@ -367,7 +389,7 @@
|
|
|
367
389
|
gap: 10px !important;
|
|
368
390
|
padding: 12px 14px !important;
|
|
369
391
|
border-radius: 24px !important;
|
|
370
|
-
letter-spacing:
|
|
392
|
+
letter-spacing: var(--font-sans-tracking);
|
|
371
393
|
}
|
|
372
394
|
|
|
373
395
|
:where([data-plex-layout="phone"]) .Toast[data-styled="true"] .Title,
|