@plexui/styles 0.3.3 → 0.5.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 +0 -2
- package/dist/es/components/ButtonGroup/ButtonGroup.module.css +338 -31
- package/dist/es/components/Dialog/Dialog.module.css +136 -12
- package/dist/es/components/Input/Input.module.css +14 -14
- package/dist/es/components/Page/Page.module.css +267 -14
- package/dist/es/components/Slider/Slider.module.css +25 -19
- package/dist/es/components/TabBar/TabBar.module.css +54 -2
- package/dist/es/components/Tabs/Tabs.module.css +24 -8
- package/dist/es/components/Toolbar/Toolbar.module.css +516 -163
- package/dist/es/styles/touch.css +35 -21
- package/dist/es/styles/variables-components.css +51 -6
- package/package.json +1 -1
package/dist/es/styles/touch.css
CHANGED
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
--button-size-3xl: var(--control-size-3xl);
|
|
188
188
|
}
|
|
189
189
|
:where(:is(button, a, [role="link"])[data-variant]:not([data-variant="ghost"])[data-color][data-size]) {
|
|
190
|
-
--button-font-weight:
|
|
190
|
+
--button-font-weight: 510;
|
|
191
191
|
}
|
|
192
192
|
:where(:is(button, a, [role="link"])[data-size]:not([data-uniform])) {
|
|
193
193
|
--button-icon-only-min-width: var(--button-size);
|
|
@@ -477,6 +477,7 @@
|
|
|
477
477
|
--page-control-dot-color: var(--mobile-label-tertiary);
|
|
478
478
|
--toggle-group-round-size: 35px;
|
|
479
479
|
--toggle-group-round-font-size: 17px;
|
|
480
|
+
--toggle-group-round-font-weight: 590;
|
|
480
481
|
--checkbox-target-size: 44px;
|
|
481
482
|
--checkbox-target-offset: 0px;
|
|
482
483
|
--checkbox-label-inset: 11px;
|
|
@@ -501,7 +502,6 @@
|
|
|
501
502
|
--radio-group-ring: none;
|
|
502
503
|
--radio-group-dot-display: none;
|
|
503
504
|
--radio-group-checkmark-display: block;
|
|
504
|
-
--slider-reset-size: 44px;
|
|
505
505
|
--slider-label-height: 44px;
|
|
506
506
|
--slider-label-gap: 0px;
|
|
507
507
|
--slider-label-font-size: 17px;
|
|
@@ -511,8 +511,6 @@
|
|
|
511
511
|
--slider-value-color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
512
512
|
--slider-value-color-focus: var(--color-text);
|
|
513
513
|
--slider-unit-color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
514
|
-
--slider-reset-icon-size: 20px;
|
|
515
|
-
--slider-reset-color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
516
514
|
--slider-control-height: 52px;
|
|
517
515
|
--slider-padding-bottom: 0px;
|
|
518
516
|
--slider-track-size: 6px;
|
|
@@ -670,17 +668,17 @@
|
|
|
670
668
|
--segmented-control-symbol-size: 20px;
|
|
671
669
|
--segmented-control-option-disabled-color: var(--alpha-20);
|
|
672
670
|
}
|
|
673
|
-
html [data-mobile-material="glass"]:is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"]:where([data-mobile-size="small"], [data-size="3xs"], [data-size="2xs"], [data-size="xs"], [data-size="sm"]) {
|
|
671
|
+
html [data-mobile-material="glass"]:is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"]:where([data-mobile-size="small"], [data-size="3xs"], [data-size="2xs"], [data-size="xs"], [data-size="sm"], [data-toolbar-row] [data-size="md"]) {
|
|
674
672
|
--segmented-control-background: var(--mobile-glass-background);
|
|
675
673
|
--segmented-control-sheen: linear-gradient(var(--segmented-control-mobile-plain-background), var(--segmented-control-mobile-plain-background));
|
|
676
674
|
--segmented-control-shadow: var(--mobile-glass-shadow);
|
|
677
675
|
--segmented-control-backdrop-filter: var(--mobile-glass-backdrop-filter);
|
|
678
676
|
}
|
|
679
|
-
html [data-mobile-material="flat"]:is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"]:where(:not([data-mobile-size="small"], [data-size="3xs"], [data-size="2xs"], [data-size="xs"], [data-size="sm"])) {
|
|
677
|
+
html [data-mobile-material="flat"]:is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"]:where(:not([data-mobile-size="small"], [data-size="3xs"], [data-size="2xs"], [data-size="xs"], [data-size="sm"], [data-toolbar-row] [data-size="md"])) {
|
|
680
678
|
--segmented-control-size: 49px;
|
|
681
679
|
}
|
|
682
|
-
html :is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"]:where(:not([data-mobile-material="flat"], [data-mobile-size="small"], [data-size="3xs"], [data-size="2xs"], [data-size="xs"], [data-size="sm"])),
|
|
683
|
-
html [data-toolbar] :is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"] {
|
|
680
|
+
html :is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"]:where(:not([data-mobile-material="flat"], [data-mobile-size="small"], [data-size="3xs"], [data-size="2xs"], [data-size="xs"], [data-size="sm"], [data-toolbar-row] [data-size="md"])),
|
|
681
|
+
html [data-toolbar] :is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"]:not([data-toolbar-row] *) {
|
|
684
682
|
--segmented-control-size: 48px;
|
|
685
683
|
--segmented-control-gutter: 4px;
|
|
686
684
|
--segmented-control-gap: 8px;
|
|
@@ -704,13 +702,13 @@
|
|
|
704
702
|
--segmented-control-thumb-lens-shadow: var(--segmented-control-mobile-thumb-lens-shadow);
|
|
705
703
|
}
|
|
706
704
|
@media (prefers-reduced-motion: no-preference) {
|
|
707
|
-
html :is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"]:where(:not([data-mobile-material="flat"], [data-mobile-size="small"], [data-size="3xs"], [data-size="2xs"], [data-size="xs"], [data-size="sm"])),
|
|
708
|
-
html [data-toolbar] :is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"] {
|
|
705
|
+
html :is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"]:where(:not([data-mobile-material="flat"], [data-mobile-size="small"], [data-size="3xs"], [data-size="2xs"], [data-size="xs"], [data-size="sm"], [data-toolbar-row] [data-size="md"])),
|
|
706
|
+
html [data-toolbar] :is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"]:not([data-toolbar-row] *) {
|
|
709
707
|
--tabs-thumb-transition-duration: 400ms;
|
|
710
708
|
}
|
|
711
709
|
@supports (transition-timing-function: linear(0, 1)) {
|
|
712
|
-
html :is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"]:where(:not([data-mobile-material="flat"], [data-mobile-size="small"], [data-size="3xs"], [data-size="2xs"], [data-size="xs"], [data-size="sm"])),
|
|
713
|
-
html [data-toolbar] :is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"] {
|
|
710
|
+
html :is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"]:where(:not([data-mobile-material="flat"], [data-mobile-size="small"], [data-size="3xs"], [data-size="2xs"], [data-size="xs"], [data-size="sm"], [data-toolbar-row] [data-size="md"])),
|
|
711
|
+
html [data-toolbar] :is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"]:not([data-toolbar-row] *) {
|
|
714
712
|
--tabs-thumb-transition-easing: linear(0, 0.2 3%, 0.33 6.25%, 0.45 10%, 0.538 12.25%, 0.623 16.25%, 0.69 20%, 0.747 24.25%, 0.793 28.75%, 0.83 32.5%, 0.862 36.75%, 0.887 41%, 0.908 45%, 0.925 49.25%, 0.943 53.5%, 0.956 58%, 0.975 66%, 0.981 70%, 0.989 74.75%, 0.994 82.5%, 1);
|
|
715
713
|
}
|
|
716
714
|
}
|
|
@@ -735,6 +733,7 @@
|
|
|
735
733
|
--button-font-size-xl: var(--toggle-group-round-font-size);
|
|
736
734
|
--button-font-size-2xl: var(--toggle-group-round-font-size);
|
|
737
735
|
--button-font-size-3xl: var(--toggle-group-round-font-size);
|
|
736
|
+
--button-font-weight: var(--toggle-group-round-font-weight);
|
|
738
737
|
}
|
|
739
738
|
html [data-variant][data-orientation="horizontal"][data-block] {
|
|
740
739
|
--tabs-block-min-width: 0px;
|
|
@@ -776,6 +775,14 @@
|
|
|
776
775
|
--field-label-horizontal-offset: calc((var(--control-size-sm) - var(--font-text-xs-line-height)) / 2);
|
|
777
776
|
}
|
|
778
777
|
}
|
|
778
|
+
html [data-slot="input"][data-variant="soft"]:has(> input[type="search"]):not(:where([data-row] *)) {
|
|
779
|
+
--input-soft-background-color: var(--mobile-glass-background);
|
|
780
|
+
background-image: var(--mobile-glass-sheen);
|
|
781
|
+
backdrop-filter: var(--mobile-glass-backdrop-filter);
|
|
782
|
+
}
|
|
783
|
+
html [data-slot="input"][data-variant="soft"]:has(> input[type="search"]):not(:where([data-row] *)):not([data-invalid]) {
|
|
784
|
+
box-shadow: var(--mobile-glass-shadow);
|
|
785
|
+
}
|
|
779
786
|
html [role="menu"]:not([data-layout="horizontal"]) [role="menuitem"]:not(:where([role="group"][data-layout="horizontal"] *, [data-menu-header] *)) > :is(div, span) > svg:first-child:not([class*="SubTriggerIcon"]) {
|
|
780
787
|
flex-shrink: 0;
|
|
781
788
|
width: var(--menu-leading-icon-size);
|
|
@@ -840,7 +847,7 @@
|
|
|
840
847
|
--button-size-3xl: var(--control-size-3xl);
|
|
841
848
|
}
|
|
842
849
|
:where([data-plex-layout="phone"]) :where(:is(button, a, [role="link"])[data-variant]:not([data-variant="ghost"])[data-color][data-size]) {
|
|
843
|
-
--button-font-weight:
|
|
850
|
+
--button-font-weight: 510;
|
|
844
851
|
}
|
|
845
852
|
:where([data-plex-layout="phone"]) :where(:is(button, a, [role="link"])[data-size]:not([data-uniform])) {
|
|
846
853
|
--button-icon-only-min-width: var(--button-size);
|
|
@@ -1130,6 +1137,7 @@ html:root :where([data-plex-layout="phone"]) {
|
|
|
1130
1137
|
--page-control-dot-color: var(--mobile-label-tertiary);
|
|
1131
1138
|
--toggle-group-round-size: 35px;
|
|
1132
1139
|
--toggle-group-round-font-size: 17px;
|
|
1140
|
+
--toggle-group-round-font-weight: 590;
|
|
1133
1141
|
--checkbox-target-size: 44px;
|
|
1134
1142
|
--checkbox-target-offset: 0px;
|
|
1135
1143
|
--checkbox-label-inset: 11px;
|
|
@@ -1154,7 +1162,6 @@ html:root :where([data-plex-layout="phone"]) {
|
|
|
1154
1162
|
--radio-group-ring: none;
|
|
1155
1163
|
--radio-group-dot-display: none;
|
|
1156
1164
|
--radio-group-checkmark-display: block;
|
|
1157
|
-
--slider-reset-size: 44px;
|
|
1158
1165
|
--slider-label-height: 44px;
|
|
1159
1166
|
--slider-label-gap: 0px;
|
|
1160
1167
|
--slider-label-font-size: 17px;
|
|
@@ -1164,8 +1171,6 @@ html:root :where([data-plex-layout="phone"]) {
|
|
|
1164
1171
|
--slider-value-color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
1165
1172
|
--slider-value-color-focus: var(--color-text);
|
|
1166
1173
|
--slider-unit-color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
1167
|
-
--slider-reset-icon-size: 20px;
|
|
1168
|
-
--slider-reset-color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
1169
1174
|
--slider-control-height: 52px;
|
|
1170
1175
|
--slider-padding-bottom: 0px;
|
|
1171
1176
|
--slider-track-size: 6px;
|
|
@@ -1323,16 +1328,16 @@ html:root:where([data-theme="dark"]) :where([data-plex-layout="phone"]), html:ro
|
|
|
1323
1328
|
--segmented-control-symbol-size: 20px;
|
|
1324
1329
|
--segmented-control-option-disabled-color: var(--alpha-20);
|
|
1325
1330
|
}
|
|
1326
|
-
html :where([data-plex-layout="phone"]) [data-mobile-material="glass"]:is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"]:where([data-mobile-size="small"], [data-size="3xs"], [data-size="2xs"], [data-size="xs"], [data-size="sm"]) {
|
|
1331
|
+
html :where([data-plex-layout="phone"]) [data-mobile-material="glass"]:is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"]:where([data-mobile-size="small"], [data-size="3xs"], [data-size="2xs"], [data-size="xs"], [data-size="sm"], [data-toolbar-row] [data-size="md"]) {
|
|
1327
1332
|
--segmented-control-background: var(--mobile-glass-background);
|
|
1328
1333
|
--segmented-control-sheen: linear-gradient(var(--segmented-control-mobile-plain-background), var(--segmented-control-mobile-plain-background));
|
|
1329
1334
|
--segmented-control-shadow: var(--mobile-glass-shadow);
|
|
1330
1335
|
--segmented-control-backdrop-filter: var(--mobile-glass-backdrop-filter);
|
|
1331
1336
|
}
|
|
1332
|
-
html :where([data-plex-layout="phone"]) [data-mobile-material="flat"]:is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"]:where(:not([data-mobile-size="small"], [data-size="3xs"], [data-size="2xs"], [data-size="xs"], [data-size="sm"])) {
|
|
1337
|
+
html :where([data-plex-layout="phone"]) [data-mobile-material="flat"]:is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"]:where(:not([data-mobile-size="small"], [data-size="3xs"], [data-size="2xs"], [data-size="xs"], [data-size="sm"], [data-toolbar-row] [data-size="md"])) {
|
|
1333
1338
|
--segmented-control-size: 49px;
|
|
1334
1339
|
}
|
|
1335
|
-
html :where([data-plex-layout="phone"]) :is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"]:where(:not([data-mobile-material="flat"], [data-mobile-size="small"], [data-size="3xs"], [data-size="2xs"], [data-size="xs"], [data-size="sm"])), html :where([data-plex-layout="phone"]) [data-toolbar] :is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"] {
|
|
1340
|
+
html :where([data-plex-layout="phone"]) :is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"]:where(:not([data-mobile-material="flat"], [data-mobile-size="small"], [data-size="3xs"], [data-size="2xs"], [data-size="xs"], [data-size="sm"], [data-toolbar-row] [data-size="md"])), html :where([data-plex-layout="phone"]) [data-toolbar] :is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"]:not([data-toolbar-row] *) {
|
|
1336
1341
|
--segmented-control-size: 48px;
|
|
1337
1342
|
--segmented-control-gutter: 4px;
|
|
1338
1343
|
--segmented-control-gap: 8px;
|
|
@@ -1356,11 +1361,11 @@ html:root:where([data-theme="dark"]) :where([data-plex-layout="phone"]), html:ro
|
|
|
1356
1361
|
--segmented-control-thumb-lens-shadow: var(--segmented-control-mobile-thumb-lens-shadow);
|
|
1357
1362
|
}
|
|
1358
1363
|
@media (prefers-reduced-motion: no-preference) {
|
|
1359
|
-
html :where([data-plex-layout="phone"]) :is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"]:where(:not([data-mobile-material="flat"], [data-mobile-size="small"], [data-size="3xs"], [data-size="2xs"], [data-size="xs"], [data-size="sm"])), html :where([data-plex-layout="phone"]) [data-toolbar] :is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"] {
|
|
1364
|
+
html :where([data-plex-layout="phone"]) :is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"]:where(:not([data-mobile-material="flat"], [data-mobile-size="small"], [data-size="3xs"], [data-size="2xs"], [data-size="xs"], [data-size="sm"], [data-toolbar-row] [data-size="md"])), html :where([data-plex-layout="phone"]) [data-toolbar] :is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"]:not([data-toolbar-row] *) {
|
|
1360
1365
|
--tabs-thumb-transition-duration: 400ms;
|
|
1361
1366
|
}
|
|
1362
1367
|
@supports (transition-timing-function: linear(0, 1)) {
|
|
1363
|
-
html :where([data-plex-layout="phone"]) :is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"]:where(:not([data-mobile-material="flat"], [data-mobile-size="small"], [data-size="3xs"], [data-size="2xs"], [data-size="xs"], [data-size="sm"])), html :where([data-plex-layout="phone"]) [data-toolbar] :is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"] {
|
|
1368
|
+
html :where([data-plex-layout="phone"]) :is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"]:where(:not([data-mobile-material="flat"], [data-mobile-size="small"], [data-size="3xs"], [data-size="2xs"], [data-size="xs"], [data-size="sm"], [data-toolbar-row] [data-size="md"])), html :where([data-plex-layout="phone"]) [data-toolbar] :is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"]:not([data-toolbar-row] *) {
|
|
1364
1369
|
--tabs-thumb-transition-easing: linear(0, 0.2 3%, 0.33 6.25%, 0.45 10%, 0.538 12.25%, 0.623 16.25%, 0.69 20%, 0.747 24.25%, 0.793 28.75%, 0.83 32.5%, 0.862 36.75%, 0.887 41%, 0.908 45%, 0.925 49.25%, 0.943 53.5%, 0.956 58%, 0.975 66%, 0.981 70%, 0.989 74.75%, 0.994 82.5%, 1);
|
|
1365
1370
|
}
|
|
1366
1371
|
}
|
|
@@ -1385,6 +1390,7 @@ html:root:where([data-theme="dark"]) :where([data-plex-layout="phone"]), html:ro
|
|
|
1385
1390
|
--button-font-size-xl: var(--toggle-group-round-font-size);
|
|
1386
1391
|
--button-font-size-2xl: var(--toggle-group-round-font-size);
|
|
1387
1392
|
--button-font-size-3xl: var(--toggle-group-round-font-size);
|
|
1393
|
+
--button-font-weight: var(--toggle-group-round-font-weight);
|
|
1388
1394
|
}
|
|
1389
1395
|
html :where([data-plex-layout="phone"]) [data-variant][data-orientation="horizontal"][data-block] {
|
|
1390
1396
|
--tabs-block-min-width: 0px;
|
|
@@ -1426,6 +1432,14 @@ html :where([data-plex-layout="phone"]) [data-variant][data-orientation="horizon
|
|
|
1426
1432
|
--field-label-horizontal-offset: calc((var(--control-size-sm) - var(--font-text-xs-line-height)) / 2);
|
|
1427
1433
|
}
|
|
1428
1434
|
}
|
|
1435
|
+
html :where([data-plex-layout="phone"]) [data-slot="input"][data-variant="soft"]:has(> input[type="search"]):not(:where([data-row] *)) {
|
|
1436
|
+
--input-soft-background-color: var(--mobile-glass-background);
|
|
1437
|
+
background-image: var(--mobile-glass-sheen);
|
|
1438
|
+
backdrop-filter: var(--mobile-glass-backdrop-filter);
|
|
1439
|
+
}
|
|
1440
|
+
html :where([data-plex-layout="phone"]) [data-slot="input"][data-variant="soft"]:has(> input[type="search"]):not(:where([data-row] *)):not([data-invalid]) {
|
|
1441
|
+
box-shadow: var(--mobile-glass-shadow);
|
|
1442
|
+
}
|
|
1429
1443
|
html :where([data-plex-layout="phone"]) [role="menu"]:not([data-layout="horizontal"]) [role="menuitem"]:not(:where([role="group"][data-layout="horizontal"] *, [data-menu-header] *)) > :is(div, span) > svg:first-child:not([class*="SubTriggerIcon"]) {
|
|
1430
1444
|
flex-shrink: 0;
|
|
1431
1445
|
width: var(--menu-leading-icon-size);
|
|
@@ -172,6 +172,12 @@
|
|
|
172
172
|
--button-group-glass-vertical-padding: 4px;
|
|
173
173
|
--button-group-glass-nested-gap: var(--toolbar-top-item-gap);
|
|
174
174
|
--button-group-glass-label-gutter: var(--toolbar-label-gutter);
|
|
175
|
+
/* A field among glass buttons floating over the content, the composer of iOS 27.2 Messages (New Message, @3x in the
|
|
176
|
+
simulator): a 40pt circle of the plus and a 40pt field, their edges drawn 0.67 outside, 12 apart, the caret
|
|
177
|
+
15.67 inside the field. In a Toolbar the field and its buttons take the bar's size and gap. */
|
|
178
|
+
--button-group-glass-field-size: 40px;
|
|
179
|
+
--button-group-glass-field-gap: 12px;
|
|
180
|
+
--button-group-glass-field-gutter: 16px;
|
|
175
181
|
|
|
176
182
|
/* =============================================
|
|
177
183
|
Accordion
|
|
@@ -513,6 +519,10 @@
|
|
|
513
519
|
viewport-fit=cover) they keep 16 to the window's edge. */
|
|
514
520
|
--toolbar-bottom-padding-bottom: max(16px, calc(var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)) - 6px));
|
|
515
521
|
--toolbar-search-padding-bottom: 14px;
|
|
522
|
+
/* A row under the controls, part of the bar (Toolbar.Row, owner 13.11): 10 under them, and 10 between two rows, as
|
|
523
|
+
iOS 27.2 sets a safeAreaBar under a bar's controls and under the search field of its drawer (ref-app segrow-inline,
|
|
524
|
+
segsearch-inline). */
|
|
525
|
+
--toolbar-row-gap: 10px;
|
|
516
526
|
/* The search field of those bars: the magnifier draws 16.33 of ink with a stroke of 2, 14.0 from the field's
|
|
517
527
|
edge, and "Search" starts at 41.67, set in Regular in the secondary label color (rgb 148 to 150 on the
|
|
518
528
|
glass). SearchSm in a 23.75px box draws that ink: 3.46 of the box lies before it, so the gutter is 10.54. The
|
|
@@ -532,6 +542,10 @@
|
|
|
532
542
|
under it, as at 168 on iOS 27.2: the part of the 41px line below the baseline, and of a subtitle's 20px. */
|
|
533
543
|
--toolbar-large-title-descent: 8.3px;
|
|
534
544
|
--toolbar-large-subtitle-descent: 4.6px;
|
|
545
|
+
/* Once a large title has gone under the bar, the bar's inline title comes in over this time, as iOS 27.2 swaps
|
|
546
|
+
them (a swipe recorded in the simulator: a crossfade of about 0.3s once the title is under the row, not tied
|
|
547
|
+
to the scroll). */
|
|
548
|
+
--toolbar-large-title-swap-duration: 300ms;
|
|
535
549
|
/* A bar symbol, sized by its drawn glyph (plan 162): the kit's 44pt bar button holds a 29pt symbol box
|
|
536
550
|
that draws about 22pt (Apps 2.4, Toolbar button top 39972:316665: a check of 21.75 × 15.7, a heart of
|
|
537
551
|
22 × 20), and native Freeform draws its ellipsis 19.7pt wide with 4pt dots (IMG_5684). A PlexUI icon
|
|
@@ -600,15 +614,48 @@
|
|
|
600
614
|
--page-bar-gap: 24px;
|
|
601
615
|
/* A glass bar: thin enough that what scrolls under it reads through the blur (owner 08.11: 72% was too
|
|
602
616
|
opaque); the Thin material of the iOS kit (Materials 224:56302) is white 40% under a 50px blur. */
|
|
603
|
-
/* The soft scroll edge
|
|
604
|
-
|
|
605
|
-
|
|
617
|
+
/* The soft scroll edge of iOS 26 (UIScrollEdgeEffect soft), as iOS 27.2 draws it over a scrolled list (ref-app
|
|
618
|
+
edge-uikit-soft-grouped, light and dark; owner 13.11): no band and no line, a blur that grows toward the top
|
|
619
|
+
under a thin veil of the canvas color. The veil holds 55% of the canvas color to 56pt above the bar's bottom,
|
|
620
|
+
then thins out: 38% 32 above it, 31% 16 above, 20% at the bottom, 8% 12 below, none 24 below. The blur hides
|
|
621
|
+
the text under the row of controls and lets go of it by 12pt under the bar. Both lie over the bar and this
|
|
622
|
+
tail past it; the veil is the mask of a layer of the canvas color, so one gradient serves every canvas. The
|
|
623
|
+
hard edge (Settings, IMG_5503; ref-app edge-uikit-hard-plain: a nearly opaque cover to the bar's bottom and a
|
|
624
|
+
hairline) is `"hard"`. */
|
|
606
625
|
--page-bar-soft-tail: 32px;
|
|
626
|
+
--page-bar-soft-veil: linear-gradient(to bottom, rgb(0 0 0 / 55%) calc(100% - var(--page-bar-soft-tail) - 56px), rgb(0 0 0 / 38%) calc(100% - var(--page-bar-soft-tail) - 32px), rgb(0 0 0 / 31%) calc(100% - var(--page-bar-soft-tail) - 16px), rgb(0 0 0 / 20%) calc(100% - var(--page-bar-soft-tail)), rgb(0 0 0 / 8%) calc(100% - var(--page-bar-soft-tail) + 12px), transparent calc(100% - var(--page-bar-soft-tail) + 24px));
|
|
627
|
+
--page-bar-soft-blur: 10px;
|
|
628
|
+
--page-bar-soft-blur-mask: linear-gradient(to bottom, #000 calc(100% - var(--page-bar-soft-tail) - 16px), transparent calc(100% - var(--page-bar-soft-tail) + 12px));
|
|
629
|
+
/* The soft edge of a bottom bar (a bottom Toolbar, Page.Footer), as iOS 27.2 draws it over a scrolled list
|
|
630
|
+
(ref-app bottomedge-soft, owner 13.11): the top bar's, turned over and measured from the top of the bar's
|
|
631
|
+
items. It reaches 34pt above them; the veil holds 8% of the canvas color 25 above them, 15% from 9 above to 3
|
|
632
|
+
into them, 23% 11 in, 31% 23 in and 46% from 43 in down to the screen's edge. The blur lets go of the content
|
|
633
|
+
22 above the items (a row's text a little soft 27 above them, a separator 6 above them smeared) and hides it
|
|
634
|
+
from 6 into them. The stops are measured from the top of the layer, --page-bar-soft-bottom-reach above the
|
|
635
|
+
items. */
|
|
636
|
+
--page-bar-soft-bottom-reach: 34px;
|
|
637
|
+
--page-bar-soft-bottom-veil: linear-gradient(to bottom, transparent, rgb(0 0 0 / 8%) 9px, rgb(0 0 0 / 15%) 25px, rgb(0 0 0 / 15%) 37px, rgb(0 0 0 / 23%) 45px, rgb(0 0 0 / 31%) 57px, rgb(0 0 0 / 46%) 77px);
|
|
638
|
+
--page-bar-soft-bottom-blur-mask: linear-gradient(to bottom, transparent 12px, #000 40px);
|
|
639
|
+
/* The blur background of a bar (owner 13.11, the top bar of a third-party app): no veil and no line, only the
|
|
640
|
+
content under the bar blurred, the more the nearer the screen's edge. Measured on the owner's screenshot: text
|
|
641
|
+
under the row of controls smeared out from 40px above the bar's edge, a few pixels of blur 13 above it, about
|
|
642
|
+
one 14 past it, and clear 27 past it. A light blur covers the bar and fades out over --page-bar-soft-tail past
|
|
643
|
+
it; a heavy one lies over it toward the screen's edge. The masks run from the edge of a top bar down and of
|
|
644
|
+
a bottom bar up. */
|
|
645
|
+
--page-bar-blur-light: 3px;
|
|
646
|
+
--page-bar-blur-heavy: 12px;
|
|
647
|
+
--page-bar-blur-top-mask: linear-gradient(to bottom, #000 calc(100% - var(--page-bar-soft-tail) - 16px), transparent);
|
|
648
|
+
--page-bar-blur-top-heavy-mask: linear-gradient(to bottom, #000 calc(100% - var(--page-bar-soft-tail) - 40px), transparent calc(100% - var(--page-bar-soft-tail) - 8px));
|
|
649
|
+
--page-bar-blur-bottom-mask: linear-gradient(to top, #000 calc(100% - var(--page-bar-soft-tail) - 16px), transparent);
|
|
650
|
+
--page-bar-blur-bottom-heavy-mask: linear-gradient(to top, #000 calc(100% - var(--page-bar-soft-tail) - 40px), transparent calc(100% - var(--page-bar-soft-tail) - 8px));
|
|
607
651
|
/* The blur of a glass bar: light enough that the lines scrolled under it still read as smudged text
|
|
608
652
|
(owner 08.11: at 20px the 17px text of a sheet vanished and the bar read as opaque white; 10px still
|
|
609
653
|
nearly hides it, 6px shows it). The saturation is Apple's bar material (180%). */
|
|
610
654
|
--page-bar-glass-filter: blur(6px) saturate(180%);
|
|
611
|
-
/* The line of a hard scroll edge
|
|
655
|
+
/* The line of a hard scroll edge, a hairline as iOS 27.2 draws it (ref-app edge-uikit-hard-plain, owner 13.11):
|
|
656
|
+
one device pixel, black 10% in light and white about 10% over the bar in dark, the line of a glass bar. The
|
|
657
|
+
kit's 1pt black 12% (Materials 5661:26978) drew it three times as thick on an iPhone. */
|
|
658
|
+
--page-bar-hard-line: var(--page-bar-line);
|
|
612
659
|
--page-title-font-size: 20px;
|
|
613
660
|
--page-title-line-height: 26px;
|
|
614
661
|
--page-content-padding-top: 16px;
|
|
@@ -1188,7 +1235,6 @@
|
|
|
1188
1235
|
--page-bar-veil-opacity: 55%;
|
|
1189
1236
|
--page-bar-veil: rgb(255 255 255 / 55%);
|
|
1190
1237
|
--page-bar-line: rgb(0 0 0 / 10%);
|
|
1191
|
-
--page-bar-hard-line: rgb(0 0 0 / 12%);
|
|
1192
1238
|
--segmented-control-background: var(--gray-100);
|
|
1193
1239
|
--segmented-control-thumb-background: var(--gray-0);
|
|
1194
1240
|
--segmented-control-mobile-plain-background: var(--alpha-06);
|
|
@@ -1253,7 +1299,6 @@
|
|
|
1253
1299
|
--page-bar-veil-opacity: 50%;
|
|
1254
1300
|
--page-bar-veil: rgb(0 0 0 / 50%);
|
|
1255
1301
|
--page-bar-line: var(--color-border);
|
|
1256
|
-
--page-bar-hard-line: var(--color-border);
|
|
1257
1302
|
--segmented-control-background: var(--alpha-08);
|
|
1258
1303
|
--segmented-control-thumb-background: var(--alpha-12);
|
|
1259
1304
|
--segmented-control-mobile-plain-background: var(--alpha-12);
|