@plexui/styles 0.12.1 → 0.13.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/Alert/Alert.module.css +120 -0
- package/dist/es/components/Button/Button.module.css +95 -0
- package/dist/es/components/ColorPicker/ColorPicker.module.css +23 -3
- package/dist/es/components/Field/Field.module.css +24 -0
- package/dist/es/components/FieldGroup/FieldGroup.module.css +39 -0
- package/dist/es/components/NavigationRow/NavigationRow.module.css +32 -0
- package/dist/es/styles/variables-components.css +9 -0
- package/package.json +1 -1
|
@@ -240,6 +240,56 @@
|
|
|
240
240
|
border-radius: 0;
|
|
241
241
|
}
|
|
242
242
|
|
|
243
|
+
/* A soft or outline alert is gray, as iOS draws a tip (TipKit Hint View: the secondary fill, no border, the title
|
|
244
|
+
in the primary label and the description in the secondary one), and only its icon keeps the alert's color
|
|
245
|
+
(owner 15.11: «они серым делают все», «разве что иконку могут зеленой сделать»). The fill is the kit's gray of
|
|
246
|
+
iOS fills/secondary (236 on white and 42 on black, native 233 and 38); `--alert-phone-background` takes another,
|
|
247
|
+
such as the row's own background for an alert inside a list. A neutral alert's icon is the secondary label, as
|
|
248
|
+
Apple's. A solid alert keeps its color, the one emphatic message of a screen. */
|
|
249
|
+
.Alert[data-variant]:is([data-variant="soft"], [data-variant="outline"]) {
|
|
250
|
+
background-color: var(--alert-phone-background, var(--color-background-secondary-soft-alpha));
|
|
251
|
+
box-shadow: none;
|
|
252
|
+
color: var(--color-text);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/* The icon takes the color's text color, which keeps 3:1 on the gray in both themes (the outline colors did not,
|
|
256
|
+
and in the dark warning, danger and discovery take a lighter orange, red and purple, Codex 15.11); a neutral alert's icon is the secondary label */
|
|
257
|
+
.Alert[data-variant]:is([data-variant="soft"], [data-variant="outline"]) > .Indicator {
|
|
258
|
+
color: var(--alert-phone-indicator-color, var(--mobile-label-secondary, var(--color-text-secondary)));
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.Alert[data-variant]:is([data-variant="soft"], [data-variant="outline"]):not([data-color="primary"]) > .Indicator {
|
|
262
|
+
color: var(--alert-phone-indicator-color, var(--alert-phone-tint));
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.Alert[data-color="success"] { --alert-phone-tint: var(--color-text-success); }
|
|
266
|
+
.Alert[data-color="warning"], :where([data-theme="light"]) .Alert[data-color="warning"] {
|
|
267
|
+
--alert-phone-tint: var(--color-text-warning);
|
|
268
|
+
}
|
|
269
|
+
:where([data-theme="dark"]) .Alert[data-color="warning"] {
|
|
270
|
+
--alert-phone-tint: var(--orange-300);
|
|
271
|
+
}
|
|
272
|
+
.Alert[data-color="caution"] { --alert-phone-tint: var(--color-text-caution); }
|
|
273
|
+
.Alert[data-color="danger"], :where([data-theme="light"]) .Alert[data-color="danger"] {
|
|
274
|
+
--alert-phone-tint: var(--color-text-danger);
|
|
275
|
+
}
|
|
276
|
+
:where([data-theme="dark"]) .Alert[data-color="danger"] {
|
|
277
|
+
--alert-phone-tint: var(--red-300);
|
|
278
|
+
}
|
|
279
|
+
.Alert[data-color="info"] { --alert-phone-tint: var(--color-text-info); }
|
|
280
|
+
.Alert[data-color="discovery"], :where([data-theme="light"]) .Alert[data-color="discovery"] {
|
|
281
|
+
--alert-phone-tint: var(--color-text-discovery);
|
|
282
|
+
}
|
|
283
|
+
:where([data-theme="dark"]) .Alert[data-color="discovery"] {
|
|
284
|
+
--alert-phone-tint: var(--purple-200);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/* The description in the secondary label at its native 60%, 70% in the dark (the kit's 50% read 3.5:1 on the gray,
|
|
288
|
+
and under 4.5:1 on a dark sheet, Codex 15.11) */
|
|
289
|
+
.Alert[data-variant]:is([data-variant="soft"], [data-variant="outline"]) .Description {
|
|
290
|
+
color: var(--alert-phone-description-color, light-dark(var(--alpha-60), var(--alpha-70)));
|
|
291
|
+
}
|
|
292
|
+
|
|
243
293
|
/* The actions take a line of their own under the icon and the message */
|
|
244
294
|
.Content {
|
|
245
295
|
display: contents;
|
|
@@ -337,6 +387,16 @@
|
|
|
337
387
|
overflow-wrap: anywhere;
|
|
338
388
|
}
|
|
339
389
|
|
|
390
|
+
/* Buttons of their own size start where the text starts, under it (owner 15.11: «слева паддинг не верный, не на
|
|
391
|
+
уровне текста»): after the icon's column and the gap, or the message's 6 without an icon */
|
|
392
|
+
.Alert[data-mobile-actions="own"] .Actions {
|
|
393
|
+
padding-inline-start: 6px;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.Alert[data-mobile-actions="own"]:has(> .Indicator) .Actions {
|
|
397
|
+
padding-inline-start: calc(6px + var(--alert-indicator-size) + 4px + 8px);
|
|
398
|
+
}
|
|
399
|
+
|
|
340
400
|
.Alert .Actions > .DismissButton {
|
|
341
401
|
display: none;
|
|
342
402
|
}
|
|
@@ -376,6 +436,56 @@
|
|
|
376
436
|
border-radius: 0;
|
|
377
437
|
}
|
|
378
438
|
|
|
439
|
+
/* A soft or outline alert is gray, as iOS draws a tip (TipKit Hint View: the secondary fill, no border, the title
|
|
440
|
+
in the primary label and the description in the secondary one), and only its icon keeps the alert's color
|
|
441
|
+
(owner 15.11: «они серым делают все», «разве что иконку могут зеленой сделать»). The fill is the kit's gray of
|
|
442
|
+
iOS fills/secondary (236 on white and 42 on black, native 233 and 38); `--alert-phone-background` takes another,
|
|
443
|
+
such as the row's own background for an alert inside a list. A neutral alert's icon is the secondary label, as
|
|
444
|
+
Apple's. A solid alert keeps its color, the one emphatic message of a screen. */
|
|
445
|
+
:where([data-plex-layout="phone"]) .Alert[data-variant]:is([data-variant="soft"], [data-variant="outline"]) {
|
|
446
|
+
background-color: var(--alert-phone-background, var(--color-background-secondary-soft-alpha));
|
|
447
|
+
box-shadow: none;
|
|
448
|
+
color: var(--color-text);
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
/* The icon takes the color's text color, which keeps 3:1 on the gray in both themes (the outline colors did not,
|
|
452
|
+
and in the dark warning, danger and discovery take a lighter orange, red and purple, Codex 15.11); a neutral alert's icon is the secondary label */
|
|
453
|
+
:where([data-plex-layout="phone"]) .Alert[data-variant]:is([data-variant="soft"], [data-variant="outline"]) > .Indicator {
|
|
454
|
+
color: var(--alert-phone-indicator-color, var(--mobile-label-secondary, var(--color-text-secondary)));
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
:where([data-plex-layout="phone"]) .Alert[data-variant]:is([data-variant="soft"], [data-variant="outline"]):not([data-color="primary"]) > .Indicator {
|
|
458
|
+
color: var(--alert-phone-indicator-color, var(--alert-phone-tint));
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
:where([data-plex-layout="phone"]) .Alert[data-color="success"] { --alert-phone-tint: var(--color-text-success); }
|
|
462
|
+
:where([data-plex-layout="phone"]) .Alert[data-color="warning"], :where([data-theme="light"]) :where([data-plex-layout="phone"]) .Alert[data-color="warning"] {
|
|
463
|
+
--alert-phone-tint: var(--color-text-warning);
|
|
464
|
+
}
|
|
465
|
+
:where([data-theme="dark"]) :where([data-plex-layout="phone"]) .Alert[data-color="warning"] {
|
|
466
|
+
--alert-phone-tint: var(--orange-300);
|
|
467
|
+
}
|
|
468
|
+
:where([data-plex-layout="phone"]) .Alert[data-color="caution"] { --alert-phone-tint: var(--color-text-caution); }
|
|
469
|
+
:where([data-plex-layout="phone"]) .Alert[data-color="danger"], :where([data-theme="light"]) :where([data-plex-layout="phone"]) .Alert[data-color="danger"] {
|
|
470
|
+
--alert-phone-tint: var(--color-text-danger);
|
|
471
|
+
}
|
|
472
|
+
:where([data-theme="dark"]) :where([data-plex-layout="phone"]) .Alert[data-color="danger"] {
|
|
473
|
+
--alert-phone-tint: var(--red-300);
|
|
474
|
+
}
|
|
475
|
+
:where([data-plex-layout="phone"]) .Alert[data-color="info"] { --alert-phone-tint: var(--color-text-info); }
|
|
476
|
+
:where([data-plex-layout="phone"]) .Alert[data-color="discovery"], :where([data-theme="light"]) :where([data-plex-layout="phone"]) .Alert[data-color="discovery"] {
|
|
477
|
+
--alert-phone-tint: var(--color-text-discovery);
|
|
478
|
+
}
|
|
479
|
+
:where([data-theme="dark"]) :where([data-plex-layout="phone"]) .Alert[data-color="discovery"] {
|
|
480
|
+
--alert-phone-tint: var(--purple-200);
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/* The description in the secondary label at its native 60%, 70% in the dark (the kit's 50% read 3.5:1 on the gray,
|
|
484
|
+
and under 4.5:1 on a dark sheet, Codex 15.11) */
|
|
485
|
+
:where([data-plex-layout="phone"]) .Alert[data-variant]:is([data-variant="soft"], [data-variant="outline"]) .Description {
|
|
486
|
+
color: var(--alert-phone-description-color, light-dark(var(--alpha-60), var(--alpha-70)));
|
|
487
|
+
}
|
|
488
|
+
|
|
379
489
|
/* The actions take a line of their own under the icon and the message */
|
|
380
490
|
:where([data-plex-layout="phone"]) .Content {
|
|
381
491
|
display: contents;
|
|
@@ -473,6 +583,16 @@
|
|
|
473
583
|
overflow-wrap: anywhere;
|
|
474
584
|
}
|
|
475
585
|
|
|
586
|
+
/* Buttons of their own size start where the text starts, under it (owner 15.11: «слева паддинг не верный, не на
|
|
587
|
+
уровне текста»): after the icon's column and the gap, or the message's 6 without an icon */
|
|
588
|
+
:where([data-plex-layout="phone"]) .Alert[data-mobile-actions="own"] .Actions {
|
|
589
|
+
padding-inline-start: 6px;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
:where([data-plex-layout="phone"]) .Alert[data-mobile-actions="own"]:has(> .Indicator) .Actions {
|
|
593
|
+
padding-inline-start: calc(6px + var(--alert-indicator-size) + 4px + 8px);
|
|
594
|
+
}
|
|
595
|
+
|
|
476
596
|
:where([data-plex-layout="phone"]) .Alert .Actions > .DismissButton {
|
|
477
597
|
display: none;
|
|
478
598
|
}
|
|
@@ -953,6 +953,54 @@
|
|
|
953
953
|
line-height: var(--button-glass-line-height, var(--button-line-height, 1));
|
|
954
954
|
}
|
|
955
955
|
|
|
956
|
+
/* A press as iOS 27.2 highlights a button (ref-app press, UIButton configurations held, light and dark): nothing
|
|
957
|
+
scales; the label lightens toward white, 30% in light (0,157,255 to 77,183,255) and 22% in dark (0,165,255 to
|
|
958
|
+
60,183,255); a borderless (ghost) button draws no fill, only its label changes; a filled (solid) one lightens
|
|
959
|
+
its fill by the same mix; a tinted (soft) or gray one fades its fill (217,238,255 to 231,244,255 on white, 237 to
|
|
960
|
+
242 for gray), and an outline one with it. It shows at once and fades when the finger lifts. A glass button keeps
|
|
961
|
+
its own press, and a row of a list its gray fill (FieldGroup); so does a button a bar or a group makes glass
|
|
962
|
+
(--button-mobile-material-opacity 1, Toolbar, Page, ButtonGroup): its fill stays and its label does not change. */
|
|
963
|
+
.Button[data-variant]:not([data-mobile-material="glass"], [data-disabled]):active {
|
|
964
|
+
color: var(
|
|
965
|
+
--button-press-text-color,
|
|
966
|
+
light-dark(
|
|
967
|
+
color-mix(in srgb, var(--button-text-color), #fff calc(30% * (1 - var(--button-mobile-material-opacity, 0)))),
|
|
968
|
+
color-mix(in srgb, var(--button-text-color), #fff calc(22% * (1 - var(--button-mobile-material-opacity, 0))))
|
|
969
|
+
)
|
|
970
|
+
);
|
|
971
|
+
transition-duration: 0s;
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
.Button[data-variant]:not([data-mobile-material="glass"], [data-disabled]):active::before,
|
|
975
|
+
.Button[data-variant]:not([data-mobile-material="glass"], [data-disabled]):active::after {
|
|
976
|
+
transform: none;
|
|
977
|
+
transition-duration: 0s;
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
.Button[data-variant="ghost"]:not([data-mobile-material="glass"], [data-disabled]):active::before {
|
|
981
|
+
opacity: var(--button-press-fill-opacity, var(--button-mobile-material-opacity, 0));
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
.Button:is([data-variant="soft"], [data-variant="outline"]):not([data-mobile-material="glass"], [data-disabled]):active::before {
|
|
985
|
+
opacity: var(--button-press-fill-opacity, calc(0.7 + 0.3 * var(--button-mobile-material-opacity, 0)));
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
.Button[data-variant="soft"]:not([data-mobile-material="glass"], [data-disabled]):active::before {
|
|
989
|
+
background-color: var(--button-mobile-material-active, var(--button-background-color));
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
.Button[data-variant="outline"]:not([data-mobile-material="glass"], [data-disabled]):active::before {
|
|
993
|
+
background-color: var(--button-mobile-material-active, var(--button-outline-context-background, var(--button-outline-background)));
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
.Button[data-variant="solid"]:not([data-mobile-material="glass"], [data-disabled]):active::before, :where([data-theme="light"]) .Button[data-variant="solid"]:not([data-mobile-material="glass"], [data-disabled]):active::before {
|
|
997
|
+
background-color: color-mix(in srgb, var(--button-background-color), #fff 30%);
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
:where([data-theme="dark"]) .Button[data-variant="solid"]:not([data-mobile-material="glass"], [data-disabled]):active::before {
|
|
1001
|
+
background-color: color-mix(in srgb, var(--button-background-color), #fff 22%);
|
|
1002
|
+
}
|
|
1003
|
+
|
|
956
1004
|
/* A disabled button labels in the tertiary label, as the iOS 27 kit's content-area button (Button - Content Area
|
|
957
1005
|
40:58696, Is Enabled=False: 60,60,67 at 30%, 196 on white, in every style, destructive too), where the desktop
|
|
958
1006
|
gray-400 read 143. With touch.css its fill is the gray of an enabled gray button, as iOS 27.2 draws a disabled
|
|
@@ -1018,6 +1066,53 @@
|
|
|
1018
1066
|
line-height: var(--button-glass-line-height, var(--button-line-height, 1));
|
|
1019
1067
|
}
|
|
1020
1068
|
|
|
1069
|
+
/* A press as iOS 27.2 highlights a button (ref-app press, UIButton configurations held, light and dark): nothing
|
|
1070
|
+
scales; the label lightens toward white, 30% in light (0,157,255 to 77,183,255) and 22% in dark (0,165,255 to
|
|
1071
|
+
60,183,255); a borderless (ghost) button draws no fill, only its label changes; a filled (solid) one lightens
|
|
1072
|
+
its fill by the same mix; a tinted (soft) or gray one fades its fill (217,238,255 to 231,244,255 on white, 237 to
|
|
1073
|
+
242 for gray), and an outline one with it. It shows at once and fades when the finger lifts. A glass button keeps
|
|
1074
|
+
its own press, and a row of a list its gray fill (FieldGroup); so does a button a bar or a group makes glass
|
|
1075
|
+
(--button-mobile-material-opacity 1, Toolbar, Page, ButtonGroup): its fill stays and its label does not change. */
|
|
1076
|
+
:where([data-plex-layout="phone"]) .Button[data-variant]:not([data-mobile-material="glass"], [data-disabled]):active {
|
|
1077
|
+
color: var(
|
|
1078
|
+
--button-press-text-color,
|
|
1079
|
+
light-dark(
|
|
1080
|
+
color-mix(in srgb, var(--button-text-color), #fff calc(30% * (1 - var(--button-mobile-material-opacity, 0)))),
|
|
1081
|
+
color-mix(in srgb, var(--button-text-color), #fff calc(22% * (1 - var(--button-mobile-material-opacity, 0))))
|
|
1082
|
+
)
|
|
1083
|
+
);
|
|
1084
|
+
transition-duration: 0s;
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
:where([data-plex-layout="phone"]) .Button[data-variant]:not([data-mobile-material="glass"], [data-disabled]):active::before, :where([data-plex-layout="phone"]) .Button[data-variant]:not([data-mobile-material="glass"], [data-disabled]):active::after {
|
|
1088
|
+
transform: none;
|
|
1089
|
+
transition-duration: 0s;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
:where([data-plex-layout="phone"]) .Button[data-variant="ghost"]:not([data-mobile-material="glass"], [data-disabled]):active::before {
|
|
1093
|
+
opacity: var(--button-press-fill-opacity, var(--button-mobile-material-opacity, 0));
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
:where([data-plex-layout="phone"]) .Button:is([data-variant="soft"], [data-variant="outline"]):not([data-mobile-material="glass"], [data-disabled]):active::before {
|
|
1097
|
+
opacity: var(--button-press-fill-opacity, calc(0.7 + 0.3 * var(--button-mobile-material-opacity, 0)));
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
:where([data-plex-layout="phone"]) .Button[data-variant="soft"]:not([data-mobile-material="glass"], [data-disabled]):active::before {
|
|
1101
|
+
background-color: var(--button-mobile-material-active, var(--button-background-color));
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
:where([data-plex-layout="phone"]) .Button[data-variant="outline"]:not([data-mobile-material="glass"], [data-disabled]):active::before {
|
|
1105
|
+
background-color: var(--button-mobile-material-active, var(--button-outline-context-background, var(--button-outline-background)));
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
:where([data-plex-layout="phone"]) .Button[data-variant="solid"]:not([data-mobile-material="glass"], [data-disabled]):active::before, :where([data-theme="light"]) :where([data-plex-layout="phone"]) .Button[data-variant="solid"]:not([data-mobile-material="glass"], [data-disabled]):active::before {
|
|
1109
|
+
background-color: color-mix(in srgb, var(--button-background-color), #fff 30%);
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
:where([data-theme="dark"]) :where([data-plex-layout="phone"]) .Button[data-variant="solid"]:not([data-mobile-material="glass"], [data-disabled]):active::before {
|
|
1113
|
+
background-color: color-mix(in srgb, var(--button-background-color), #fff 22%);
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1021
1116
|
/* A disabled button labels in the tertiary label, as the iOS 27 kit's content-area button (Button - Content Area
|
|
1022
1117
|
40:58696, Is Enabled=False: 60,60,67 at 30%, 196 on white, in every style, destructive too), where the desktop
|
|
1023
1118
|
gray-400 read 143. With touch.css its fill is the gray of an enabled gray button, as iOS 27.2 draws a disabled
|
|
@@ -15,13 +15,23 @@
|
|
|
15
15
|
position: relative;
|
|
16
16
|
aspect-ratio: var(--color-picker-body-aspect-ratio);
|
|
17
17
|
}/* ===== Grid ===== */.Grid {
|
|
18
|
+
position: relative;
|
|
18
19
|
display: grid;
|
|
19
20
|
grid-template-columns: repeat(12, 1fr);
|
|
20
21
|
grid-template-rows: repeat(10, 1fr);
|
|
21
22
|
height: 100%;
|
|
22
23
|
overflow: hidden;
|
|
23
24
|
border-radius: var(--color-picker-body-radius);
|
|
24
|
-
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.Grid::after {
|
|
28
|
+
position: absolute;
|
|
29
|
+
inset: 0;
|
|
30
|
+
border-radius: inherit;
|
|
31
|
+
box-shadow: inset 0 0 0 1px var(--color-picker-edge-color);
|
|
32
|
+
content: "";
|
|
33
|
+
pointer-events: none;
|
|
34
|
+
}.Cell {
|
|
25
35
|
position: relative;
|
|
26
36
|
margin: 0;
|
|
27
37
|
padding: 0;
|
|
@@ -50,6 +60,7 @@
|
|
|
50
60
|
background:
|
|
51
61
|
linear-gradient(to right, #fff, rgb(255 255 255 / 0%) 50%, rgb(0 0 0 / 0%) 50%, #000),
|
|
52
62
|
linear-gradient(to bottom, #f00, #ff0 16.667%, #0f0 33.333%, #0ff 50%, #00f 66.667%, #f0f 83.333%, #f00);
|
|
63
|
+
box-shadow: inset 0 0 0 1px var(--color-picker-edge-color);
|
|
53
64
|
cursor: crosshair;
|
|
54
65
|
touch-action: none;
|
|
55
66
|
-webkit-tap-highlight-color: transparent;
|
|
@@ -69,7 +80,8 @@
|
|
|
69
80
|
box-sizing: border-box;
|
|
70
81
|
border: var(--color-picker-knob-border) solid var(--color-picker-selection-color);
|
|
71
82
|
border-radius: var(--radius-full);
|
|
72
|
-
|
|
83
|
+
/* Ringed in the edge color here, so an override of it at any scope reaches the ring */
|
|
84
|
+
box-shadow: 0 0 0 1px var(--color-picker-edge-color), var(--color-picker-knob-shadow);
|
|
73
85
|
transform: translate(-50%, -50%);
|
|
74
86
|
pointer-events: none;
|
|
75
87
|
}/* ===== Sliders ===== */.Sliders {
|
|
@@ -116,6 +128,7 @@
|
|
|
116
128
|
padding: var(--color-picker-track-inset);
|
|
117
129
|
box-sizing: border-box;
|
|
118
130
|
border-radius: var(--radius-full);
|
|
131
|
+
box-shadow: inset 0 0 0 1px var(--color-picker-edge-color);
|
|
119
132
|
background:
|
|
120
133
|
var(--color-picker-track),
|
|
121
134
|
var(--color-picker-checker) 0 0 / calc(2 * var(--color-picker-checker-size)) calc(2 * var(--color-picker-checker-size));
|
|
@@ -140,7 +153,8 @@
|
|
|
140
153
|
box-sizing: border-box;
|
|
141
154
|
border: var(--color-picker-knob-border) solid var(--color-picker-selection-color);
|
|
142
155
|
border-radius: var(--radius-full);
|
|
143
|
-
|
|
156
|
+
/* Ringed in the edge color here, so an override of it at any scope reaches the ring */
|
|
157
|
+
box-shadow: 0 0 0 1px var(--color-picker-edge-color), var(--color-picker-knob-shadow);
|
|
144
158
|
cursor: grab;
|
|
145
159
|
}
|
|
146
160
|
|
|
@@ -202,6 +216,7 @@
|
|
|
202
216
|
position: absolute;
|
|
203
217
|
inset: 0;
|
|
204
218
|
border-radius: inherit;
|
|
219
|
+
box-shadow: inset 0 0 0 1px var(--color-picker-edge-color);
|
|
205
220
|
}.Saved {
|
|
206
221
|
display: flex;
|
|
207
222
|
flex: 1;
|
|
@@ -299,6 +314,11 @@
|
|
|
299
314
|
-webkit-tap-highlight-color: transparent;
|
|
300
315
|
}
|
|
301
316
|
|
|
317
|
+
/* For a field: a 24 ring in a 32 input keeps 4 to its edge all round (console 15.11) */
|
|
318
|
+
.Well[data-size="xs"] {
|
|
319
|
+
--color-well-size: var(--color-well-size-xs);
|
|
320
|
+
}
|
|
321
|
+
|
|
302
322
|
.Well[data-size="sm"] {
|
|
303
323
|
--color-well-size: var(--color-well-size-sm);
|
|
304
324
|
}
|
|
@@ -432,6 +432,18 @@
|
|
|
432
432
|
padding-block: calc((var(--field-row-min-height) - var(--field-row-label-line-height)) / 2);
|
|
433
433
|
}
|
|
434
434
|
|
|
435
|
+
/* A held choice row (a check or a radio) is highlighted as a row of a list (FieldGroup, ref-app press): the cell's
|
|
436
|
+
gray to the card's corners, at once, fading when the finger lifts. A switch row does not light, as in iOS. */
|
|
437
|
+
.Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], input[type="checkbox"], input[type="radio"]):not([disabled], [data-disabled], [aria-disabled="true"], [aria-hidden="true"])) {
|
|
438
|
+
transition: background-color var(--transition-duration-basic) var(--transition-ease-basic);
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
/* Not when the finger is on an action of its own (a label's details, a description's link), which skips the choice */
|
|
442
|
+
.Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], input[type="checkbox"], input[type="radio"]):not([disabled], [data-disabled], [aria-disabled="true"], [aria-hidden="true"])):active:not(:has(:is(button, a, [role="button"]):not([role="checkbox"], [role="radio"]):active)) {
|
|
443
|
+
background: var(--field-row-press-background);
|
|
444
|
+
transition-duration: 0s;
|
|
445
|
+
}
|
|
446
|
+
|
|
435
447
|
/* Mobile choice rows keep keyboard focus and activation without a drawn ring. */
|
|
436
448
|
.Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):focus-visible {
|
|
437
449
|
outline: none;
|
|
@@ -835,6 +847,18 @@
|
|
|
835
847
|
padding-block: calc((var(--field-row-min-height) - var(--field-row-label-line-height)) / 2);
|
|
836
848
|
}
|
|
837
849
|
|
|
850
|
+
/* A held choice row (a check or a radio) is highlighted as a row of a list (FieldGroup, ref-app press): the cell's
|
|
851
|
+
gray to the card's corners, at once, fading when the finger lifts. A switch row does not light, as in iOS. */
|
|
852
|
+
:where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], input[type="checkbox"], input[type="radio"]):not([disabled], [data-disabled], [aria-disabled="true"], [aria-hidden="true"])) {
|
|
853
|
+
transition: background-color var(--transition-duration-basic) var(--transition-ease-basic);
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
/* Not when the finger is on an action of its own (a label's details, a description's link), which skips the choice */
|
|
857
|
+
:where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], input[type="checkbox"], input[type="radio"]):not([disabled], [data-disabled], [aria-disabled="true"], [aria-hidden="true"])):active:not(:has(:is(button, a, [role="button"]):not([role="checkbox"], [role="radio"]):active)) {
|
|
858
|
+
background: var(--field-row-press-background);
|
|
859
|
+
transition-duration: 0s;
|
|
860
|
+
}
|
|
861
|
+
|
|
838
862
|
/* Mobile choice rows keep keyboard focus and activation without a drawn ring. */
|
|
839
863
|
:where([data-plex-layout="phone"]) .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):focus-visible {
|
|
840
864
|
outline: none;
|
|
@@ -12,6 +12,13 @@
|
|
|
12
12
|
padding-bottom: var(--field-group-header-padding-bottom, calc(var(--spacing) * 2));
|
|
13
13
|
}.HeaderText {
|
|
14
14
|
min-width: 0;
|
|
15
|
+
}/* The action does not set the header's height, as a button in an iOS section header does not: it stands centred and
|
|
16
|
+
overflows its line by up to 8px each way (6 on a phone), into the header's own space, so the rows below do not move when it comes
|
|
17
|
+
and goes (console 15.11: «прыгают контролы»): a 34 button on a phone's 22 line, a 40 one in a desktop header. A
|
|
18
|
+
taller action grows the header rather than cover the first row. A phone's text action keeps its place on the
|
|
19
|
+
title's last line (below). */.Header > :not(.HeaderText) {
|
|
20
|
+
align-self: center;
|
|
21
|
+
margin-block: calc(-1 * var(--field-group-header-action-overflow, 8px));
|
|
15
22
|
}.Title {
|
|
16
23
|
margin: 0;
|
|
17
24
|
padding-inline: var(--field-group-title-padding-inline);
|
|
@@ -79,6 +86,9 @@
|
|
|
79
86
|
--button-gutter-md: var(--field-row-padding-inline);
|
|
80
87
|
--button-icon-size-md: var(--field-row-icon-symbol-size);
|
|
81
88
|
--button-touch-radius: 0px;
|
|
89
|
+
/* The row is a cell, never a pill: a global or provider pill default does not round it or widen its inset */
|
|
90
|
+
--button-radius: 0px;
|
|
91
|
+
--control-gutter-pill-scaling: 1;
|
|
82
92
|
--button-justify-content: flex-start;
|
|
83
93
|
text-align: start;
|
|
84
94
|
}
|
|
@@ -122,6 +132,8 @@
|
|
|
122
132
|
/* Each group reads its own pairing: a group inside another does not take the outer one's (Codex #39) */
|
|
123
133
|
--field-group-gap-footer-offset: 0px;
|
|
124
134
|
--field-group-gap-header-offset: 0px;
|
|
135
|
+
/* The phone header keeps 6 under its line: a 34 action fits its 22 line exactly */
|
|
136
|
+
--field-group-header-action-overflow: 6px;
|
|
125
137
|
}
|
|
126
138
|
|
|
127
139
|
/* With touch.css, groups one after another space themselves as Settings does in iOS 27 (IMG_5944–5966, 430pt; checked
|
|
@@ -195,6 +207,7 @@
|
|
|
195
207
|
--button-mobile-material-backdrop-filter: none;
|
|
196
208
|
|
|
197
209
|
flex-shrink: 0;
|
|
210
|
+
align-self: flex-end;
|
|
198
211
|
min-width: 44px;
|
|
199
212
|
margin-block: calc((var(--field-row-label-line-height) - 44px) / 2);
|
|
200
213
|
margin-inline-end: var(--field-group-title-padding-inline);
|
|
@@ -240,6 +253,19 @@
|
|
|
240
253
|
border-end-end-radius: var(--field-group-radius);
|
|
241
254
|
}
|
|
242
255
|
|
|
256
|
+
/* A held row is a cell highlighted as iOS 27.2 draws one (ref-app press): systemGray4 over the whole cell to the
|
|
257
|
+
card's corners (209,209,214 on white, 58,58,60 on #1c1c1e), the nearest PlexUI alpha of each theme (alpha-20
|
|
258
|
+
shows 207 on white, alpha-12 55 on gray-150), the same gray under every tint, a destructive row too. Its words
|
|
259
|
+
keep their color and nothing scales; it shows at once and fades when the finger lifts (Button.module.css). */
|
|
260
|
+
.Body > [data-row] > :is(button, a)[data-block][data-variant="ghost"],
|
|
261
|
+
.Body > [data-sortable] > [data-row] > :is(button, a)[data-block][data-variant="ghost"],
|
|
262
|
+
.Body > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"],
|
|
263
|
+
.Body > [data-sortable] > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"] {
|
|
264
|
+
--button-background-color-active: var(--field-row-press-background);
|
|
265
|
+
--button-press-fill-opacity: 1;
|
|
266
|
+
--button-press-text-color: var(--button-text-color);
|
|
267
|
+
}
|
|
268
|
+
|
|
243
269
|
/* An open popup is not a held press. Keep selection and explicit glass
|
|
244
270
|
surfaces independent; the trigger remains focusable and expanded. */
|
|
245
271
|
.Body > [data-row] > :is(button, a)[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before,
|
|
@@ -284,6 +310,8 @@
|
|
|
284
310
|
/* Each group reads its own pairing: a group inside another does not take the outer one's (Codex #39) */
|
|
285
311
|
--field-group-gap-footer-offset: 0px;
|
|
286
312
|
--field-group-gap-header-offset: 0px;
|
|
313
|
+
/* The phone header keeps 6 under its line: a 34 action fits its 22 line exactly */
|
|
314
|
+
--field-group-header-action-overflow: 6px;
|
|
287
315
|
}
|
|
288
316
|
|
|
289
317
|
/* With touch.css, groups one after another space themselves as Settings does in iOS 27 (IMG_5944–5966, 430pt; checked
|
|
@@ -357,6 +385,7 @@
|
|
|
357
385
|
--button-mobile-material-backdrop-filter: none;
|
|
358
386
|
|
|
359
387
|
flex-shrink: 0;
|
|
388
|
+
align-self: flex-end;
|
|
360
389
|
min-width: 44px;
|
|
361
390
|
margin-block: calc((var(--field-row-label-line-height) - 44px) / 2);
|
|
362
391
|
margin-inline-end: var(--field-group-title-padding-inline);
|
|
@@ -397,6 +426,16 @@
|
|
|
397
426
|
border-end-end-radius: var(--field-group-radius);
|
|
398
427
|
}
|
|
399
428
|
|
|
429
|
+
/* A held row is a cell highlighted as iOS 27.2 draws one (ref-app press): systemGray4 over the whole cell to the
|
|
430
|
+
card's corners (209,209,214 on white, 58,58,60 on #1c1c1e), the nearest PlexUI alpha of each theme (alpha-20
|
|
431
|
+
shows 207 on white, alpha-12 55 on gray-150), the same gray under every tint, a destructive row too. Its words
|
|
432
|
+
keep their color and nothing scales; it shows at once and fades when the finger lifts (Button.module.css). */
|
|
433
|
+
:where([data-plex-layout="phone"]) .Body > [data-row] > :is(button, a)[data-block][data-variant="ghost"], :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row] > :is(button, a)[data-block][data-variant="ghost"], :where([data-plex-layout="phone"]) .Body > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"], :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"] {
|
|
434
|
+
--button-background-color-active: var(--field-row-press-background);
|
|
435
|
+
--button-press-fill-opacity: 1;
|
|
436
|
+
--button-press-text-color: var(--button-text-color);
|
|
437
|
+
}
|
|
438
|
+
|
|
400
439
|
/* An open popup is not a held press. Keep selection and explicit glass
|
|
401
440
|
surfaces independent; the trigger remains focusable and expanded. */
|
|
402
441
|
:where([data-plex-layout="phone"]) .Body > [data-row] > :is(button, a)[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before, :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row] > :is(button, a)[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before, :where([data-plex-layout="phone"]) .Body > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before, :where([data-plex-layout="phone"]) .Body > [data-sortable] > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before {
|
|
@@ -92,5 +92,37 @@
|
|
|
92
92
|
text-align: start;
|
|
93
93
|
}[data-field-columns] .NavigationRow:not([data-value]) .Text {
|
|
94
94
|
grid-column: 1 / 3;
|
|
95
|
+
}/* valuePlacement="below", or "auto" when the value does not fit beside the label on one line (as Calendar sets a long
|
|
96
|
+
value): the value stands under the label at the full width of the text, in the secondary label, and the description
|
|
97
|
+
under it, also at full width; the chevron stays at the end, centred on the row. The row's padding is unchanged. */.NavigationRow[data-value-below] .Content {
|
|
98
|
+
display: grid;
|
|
99
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
100
|
+
-moz-column-gap: var(--field-row-disclosure-gap, 8px);
|
|
101
|
+
column-gap: var(--field-row-disclosure-gap, 8px);
|
|
102
|
+
align-items: center;
|
|
103
|
+
}.NavigationRow[data-value-below] .Text {
|
|
104
|
+
display: contents;
|
|
105
|
+
}.NavigationRow[data-value-below] .Label {
|
|
106
|
+
grid-area: 1 / 1;
|
|
107
|
+
}.NavigationRow[data-value-below] .Value {
|
|
108
|
+
grid-area: 2 / 1;
|
|
109
|
+
max-width: none;
|
|
110
|
+
margin: 0;
|
|
111
|
+
overflow-wrap: break-word;
|
|
112
|
+
text-align: start;
|
|
113
|
+
}/* In the secondary label, with columns too; a disabled row keeps its grey */.NavigationRow[data-value-below] .Pressable:not([data-disabled]) .Value {
|
|
114
|
+
color: var(--navigation-row-value-color, var(--mobile-label-secondary, var(--color-text-secondary)));
|
|
115
|
+
}.NavigationRow[data-value-below] .Description {
|
|
116
|
+
grid-area: 3 / 1;
|
|
117
|
+
}.NavigationRow[data-value-below] .Disclosure {
|
|
118
|
+
grid-area: 1 / 2 / span 3 / 3;
|
|
119
|
+
}/* "auto" measures the label and the value on one line each, beside each other, in the end layout's own limits (the
|
|
120
|
+
value's cap, a columns label's column): it fits when neither overflows its box and the row does not overflow. */.NavigationRow[data-measuring] .Text {
|
|
121
|
+
flex: none;
|
|
122
|
+
}/* The description wraps under the label in the end layout, so it does not count */.NavigationRow[data-measuring] .Description {
|
|
123
|
+
display: none;
|
|
124
|
+
}.NavigationRow[data-measuring] :is(.Label, .Value) {
|
|
125
|
+
overflow: hidden;
|
|
126
|
+
white-space: nowrap;
|
|
95
127
|
}
|
|
96
128
|
}
|
|
@@ -295,6 +295,7 @@
|
|
|
295
295
|
an app's picture 8 (touch.css). */
|
|
296
296
|
/* A full row's hover with a mouse: the light fill of a table row, not a button's (owner 14.11: «цвет hover
|
|
297
297
|
слишком темный») */
|
|
298
|
+
/* A held row on a phone: iOS systemGray4 (FieldGroup.module.css) */
|
|
298
299
|
--field-row-icon-size: 32px;
|
|
299
300
|
--field-row-icon-gap: 12px;
|
|
300
301
|
--field-row-icon-offset: 0px;
|
|
@@ -799,6 +800,9 @@
|
|
|
799
800
|
--color-picker-checker-size: 6px;
|
|
800
801
|
--color-picker-knob-size: 24px;
|
|
801
802
|
--color-picker-knob-border: 2px;
|
|
803
|
+
/* A hairline inside the edge of every color surface (the grid, the spectrum, the tracks, the current and saved
|
|
804
|
+
colors), as iOS draws one round a color well, so white reads on a white popover and black on a dark one; the
|
|
805
|
+
knobs and the loupe ring themselves with it (owner 15.11 via the console: «не хватает рамки»). */
|
|
802
806
|
--color-picker-knob-shadow: 0 0 3px rgb(0 0 0 / 10%);
|
|
803
807
|
--color-picker-loupe-size: 22px;
|
|
804
808
|
--color-picker-field-gap: 8px;
|
|
@@ -834,6 +838,7 @@
|
|
|
834
838
|
============================================= */
|
|
835
839
|
/* The kit's Picker Button (5739:34128): an angular rainbow from yellow at the top, a 3px ring 2px from the color;
|
|
836
840
|
28px and 36px. */
|
|
841
|
+
--color-well-size-xs: 24px;
|
|
837
842
|
--color-well-size-sm: 28px;
|
|
838
843
|
--color-well-size-lg: 36px;
|
|
839
844
|
--color-well-ring-width: 3px;
|
|
@@ -1227,6 +1232,7 @@
|
|
|
1227
1232
|
--avatar-image-border-color: var(--alpha-04);
|
|
1228
1233
|
--input-outline-border-color-hover: var(--alpha-25);
|
|
1229
1234
|
--field-row-hover-background: var(--alpha-03);
|
|
1235
|
+
--field-row-press-background: var(--alpha-20);
|
|
1230
1236
|
--floating-input-border-color: rgb(0 0 0 / 15%);
|
|
1231
1237
|
--floating-input-border-color-hover: rgb(0 0 0 / 20%);
|
|
1232
1238
|
--file-upload-separator-color: rgb(0 0 0 / 8%);
|
|
@@ -1264,6 +1270,7 @@
|
|
|
1264
1270
|
inset 0 12px 12px -6px rgb(0 0 0 / 5%),
|
|
1265
1271
|
0 2px 4px rgb(0 0 0 / 6%);
|
|
1266
1272
|
--segmented-control-option-highlight-background-color: var(--gray-200);
|
|
1273
|
+
--color-picker-edge-color: var(--alpha-10);
|
|
1267
1274
|
--color-picker-mobile-separator-color: var(--alpha-20);
|
|
1268
1275
|
--context-menu-dimming-background: rgb(0 0 0 / 20%);
|
|
1269
1276
|
--stepper-background: var(--gray-100);
|
|
@@ -1292,6 +1299,7 @@
|
|
|
1292
1299
|
--avatar-image-border-color: var(--alpha-15);
|
|
1293
1300
|
--input-outline-border-color-hover: var(--alpha-30);
|
|
1294
1301
|
--field-row-hover-background: var(--alpha-05);
|
|
1302
|
+
--field-row-press-background: var(--alpha-12);
|
|
1295
1303
|
--floating-input-border-color: rgb(255 255 255 / 16%);
|
|
1296
1304
|
--floating-input-border-color-hover: rgb(255 255 255 / 24%);
|
|
1297
1305
|
--file-upload-separator-color: rgb(255 255 255 / 8%);
|
|
@@ -1329,6 +1337,7 @@
|
|
|
1329
1337
|
inset 0 12px 12px -6px rgb(0 0 0 / 10%),
|
|
1330
1338
|
0 2px 4px rgb(0 0 0 / 6%);
|
|
1331
1339
|
--segmented-control-option-highlight-background-color: var(--alpha-08);
|
|
1340
|
+
--color-picker-edge-color: var(--alpha-15);
|
|
1332
1341
|
--color-picker-mobile-separator-color: var(--alpha-15);
|
|
1333
1342
|
--context-menu-dimming-background: rgb(0 0 0 / 50%);
|
|
1334
1343
|
--stepper-background: var(--alpha-08);
|