@plexui/styles 0.17.12 → 0.17.14
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.
|
@@ -2676,9 +2676,14 @@
|
|
|
2676
2676
|
out of the button to the bar's end, from after a back circle in the leading place (the gutter, the circle and the
|
|
2677
2677
|
gap: 6 + 46 + 6 = 58 to the width less 6 on a full screen, as the reference messenger's), while the title fades out
|
|
2678
2678
|
to 0.94 of its size and the trailing actions to 0.7, the leading action gives way to the back arrow, and the text
|
|
2679
|
-
comes in. Back reverses it.
|
|
2679
|
+
comes in. Back reverses it. On iOS the field stands before a glass close instead, the leading action staying beside
|
|
2680
|
+
it (iOS 26 Podcasts and Files). All of it runs 380ms on the reference's
|
|
2681
|
+
EASE_OUT_QUINT (android.css); a Sheet stands at
|
|
2680
2682
|
the full screen meanwhile (Dialog.module.css), its bar 5 under the status bar and 6 from the sides, as a page's.
|
|
2681
|
-
=============================================
|
|
2683
|
+
============================================= *//* The other platform's way out stands hidden in the layer, so the field never moves as the platform changes; a slot sets
|
|
2684
|
+
its own display, so the hidden one is taken out here, at any width (with no Tailwind preflight too) */.SearchLayer > :is(.SearchBack, .SearchClose)[hidden] {
|
|
2685
|
+
display: none;
|
|
2686
|
+
}@media (max-width: 767px) {
|
|
2682
2687
|
.Toolbar[data-toolbar][data-search][data-placement="top"] {
|
|
2683
2688
|
--toolbar-search-duration: var(--android-search-duration, 380ms);
|
|
2684
2689
|
--toolbar-search-easing: var(--android-search-easing, cubic-bezier(0.23, 1, 0.32, 1));
|
|
@@ -2735,17 +2740,18 @@
|
|
|
2735
2740
|
scale: 0.7;
|
|
2736
2741
|
}
|
|
2737
2742
|
|
|
2738
|
-
|
|
2743
|
+
/* The Plex Android look's back circle takes the leading place; iOS keeps its leading action beside the field. */
|
|
2744
|
+
.Toolbar[data-toolbar][data-search-open][data-placement="top"]:is([data-platform="android"] *) > .Leading {
|
|
2739
2745
|
visibility: hidden;
|
|
2740
2746
|
}
|
|
2741
2747
|
|
|
2742
|
-
.Toolbar[data-toolbar][data-search][data-placement="top"]:not(:has(> .Leading [data-navigation-action="back"])) > .Leading svg {
|
|
2748
|
+
.Toolbar[data-toolbar][data-search][data-placement="top"]:is([data-platform="android"] *):not(:has(> .Leading [data-navigation-action="back"])) > .Leading svg {
|
|
2743
2749
|
transition:
|
|
2744
2750
|
opacity var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
2745
2751
|
rotate var(--toolbar-search-duration) var(--toolbar-search-easing);
|
|
2746
2752
|
}
|
|
2747
2753
|
|
|
2748
|
-
.Toolbar[data-toolbar][data-search-open][data-placement="top"]:not(:has(> .Leading [data-navigation-action="back"])) > .Leading svg {
|
|
2754
|
+
.Toolbar[data-toolbar][data-search-open][data-placement="top"]:is([data-platform="android"] *):not(:has(> .Leading [data-navigation-action="back"])) > .Leading svg {
|
|
2749
2755
|
opacity: 0;
|
|
2750
2756
|
rotate: 45deg;
|
|
2751
2757
|
}
|
|
@@ -2880,6 +2886,56 @@
|
|
|
2880
2886
|
opacity: 1;
|
|
2881
2887
|
}
|
|
2882
2888
|
|
|
2889
|
+
/* iOS 26 (Podcasts, Files): the open field stands before a glass close, the close growing in where the trailing
|
|
2890
|
+
actions shrink away; a leading action stays beside the field (Files' More), else the field starts at the gutter. */
|
|
2891
|
+
.Toolbar[data-search-open]:not([data-platform="android"] *) > .SearchLayer > .SearchField {
|
|
2892
|
+
right: calc(var(--toolbar-gutter) + var(--toolbar-item-size) + var(--toolbar-item-gap));
|
|
2893
|
+
left: var(--toolbar-gutter);
|
|
2894
|
+
}
|
|
2895
|
+
|
|
2896
|
+
.Toolbar[data-search-open]:not([data-platform="android"] *) > .SearchLayer > .SearchField:dir(rtl) {
|
|
2897
|
+
right: var(--toolbar-gutter);
|
|
2898
|
+
left: calc(var(--toolbar-gutter) + var(--toolbar-item-size) + var(--toolbar-item-gap));
|
|
2899
|
+
}
|
|
2900
|
+
|
|
2901
|
+
/* After the leading actions as far as they reach (Toolbar.tsx measures them: a Back, a Cancel, more than one) */
|
|
2902
|
+
.Toolbar[data-search-open]:not([data-platform="android"] *):has(> .Leading > *) > .SearchLayer > .SearchField {
|
|
2903
|
+
left: calc(var(--toolbar-gutter) + var(--toolbar-search-leading, var(--toolbar-item-size)) + var(--toolbar-item-gap));
|
|
2904
|
+
}
|
|
2905
|
+
|
|
2906
|
+
.Toolbar[data-search-open]:not([data-platform="android"] *):has(> .Leading > *) > .SearchLayer > .SearchField:dir(rtl) {
|
|
2907
|
+
right: calc(var(--toolbar-gutter) + var(--toolbar-search-leading, var(--toolbar-item-size)) + var(--toolbar-item-gap));
|
|
2908
|
+
left: calc(var(--toolbar-gutter) + var(--toolbar-item-size) + var(--toolbar-item-gap));
|
|
2909
|
+
}
|
|
2910
|
+
|
|
2911
|
+
.SearchClose {
|
|
2912
|
+
position: absolute;
|
|
2913
|
+
top: 0;
|
|
2914
|
+
right: var(--toolbar-gutter);
|
|
2915
|
+
visibility: hidden;
|
|
2916
|
+
opacity: 0;
|
|
2917
|
+
scale: 0.7;
|
|
2918
|
+
transition:
|
|
2919
|
+
opacity var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
2920
|
+
scale var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
2921
|
+
visibility 0s var(--toolbar-search-duration);
|
|
2922
|
+
}
|
|
2923
|
+
|
|
2924
|
+
.SearchClose:dir(rtl) {
|
|
2925
|
+
right: auto;
|
|
2926
|
+
left: var(--toolbar-gutter);
|
|
2927
|
+
}
|
|
2928
|
+
|
|
2929
|
+
.Toolbar[data-search-open] > .SearchLayer > .SearchClose {
|
|
2930
|
+
visibility: visible;
|
|
2931
|
+
opacity: 1;
|
|
2932
|
+
scale: 1;
|
|
2933
|
+
transition:
|
|
2934
|
+
opacity var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
2935
|
+
scale var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
2936
|
+
visibility 0s;
|
|
2937
|
+
}
|
|
2938
|
+
|
|
2883
2939
|
/* A Sheet's bar at the full screen: 5 under the status bar and 6 from the sides, as a page's. */
|
|
2884
2940
|
[data-platform="android"] .Toolbar[data-host="dialog"][data-placement="top"][data-search-open] {
|
|
2885
2941
|
--toolbar-padding-top: calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + 5px);
|
|
@@ -2957,17 +3013,18 @@
|
|
|
2957
3013
|
scale: 0.7;
|
|
2958
3014
|
}
|
|
2959
3015
|
|
|
2960
|
-
|
|
3016
|
+
/* The Plex Android look's back circle takes the leading place; iOS keeps its leading action beside the field. */
|
|
3017
|
+
:where([data-plex-layout="phone"]) .Toolbar[data-toolbar][data-search-open][data-placement="top"]:is([data-platform="android"] *) > .Leading {
|
|
2961
3018
|
visibility: hidden;
|
|
2962
3019
|
}
|
|
2963
3020
|
|
|
2964
|
-
:where([data-plex-layout="phone"]) .Toolbar[data-toolbar][data-search][data-placement="top"]:not(:has(> .Leading [data-navigation-action="back"])) > .Leading svg {
|
|
3021
|
+
:where([data-plex-layout="phone"]) .Toolbar[data-toolbar][data-search][data-placement="top"]:is([data-platform="android"] *):not(:has(> .Leading [data-navigation-action="back"])) > .Leading svg {
|
|
2965
3022
|
transition:
|
|
2966
3023
|
opacity var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
2967
3024
|
rotate var(--toolbar-search-duration) var(--toolbar-search-easing);
|
|
2968
3025
|
}
|
|
2969
3026
|
|
|
2970
|
-
:where([data-plex-layout="phone"]) .Toolbar[data-toolbar][data-search-open][data-placement="top"]:not(:has(> .Leading [data-navigation-action="back"])) > .Leading svg {
|
|
3027
|
+
:where([data-plex-layout="phone"]) .Toolbar[data-toolbar][data-search-open][data-placement="top"]:is([data-platform="android"] *):not(:has(> .Leading [data-navigation-action="back"])) > .Leading svg {
|
|
2971
3028
|
opacity: 0;
|
|
2972
3029
|
rotate: 45deg;
|
|
2973
3030
|
}
|
|
@@ -3102,6 +3159,56 @@
|
|
|
3102
3159
|
opacity: 1;
|
|
3103
3160
|
}
|
|
3104
3161
|
|
|
3162
|
+
/* iOS 26 (Podcasts, Files): the open field stands before a glass close, the close growing in where the trailing
|
|
3163
|
+
actions shrink away; a leading action stays beside the field (Files' More), else the field starts at the gutter. */
|
|
3164
|
+
:where([data-plex-layout="phone"]) .Toolbar[data-search-open]:not([data-platform="android"] *) > .SearchLayer > .SearchField {
|
|
3165
|
+
right: calc(var(--toolbar-gutter) + var(--toolbar-item-size) + var(--toolbar-item-gap));
|
|
3166
|
+
left: var(--toolbar-gutter);
|
|
3167
|
+
}
|
|
3168
|
+
|
|
3169
|
+
:where([data-plex-layout="phone"]) .Toolbar[data-search-open]:not([data-platform="android"] *) > .SearchLayer > .SearchField:dir(rtl) {
|
|
3170
|
+
right: var(--toolbar-gutter);
|
|
3171
|
+
left: calc(var(--toolbar-gutter) + var(--toolbar-item-size) + var(--toolbar-item-gap));
|
|
3172
|
+
}
|
|
3173
|
+
|
|
3174
|
+
/* After the leading actions as far as they reach (Toolbar.tsx measures them: a Back, a Cancel, more than one) */
|
|
3175
|
+
:where([data-plex-layout="phone"]) .Toolbar[data-search-open]:not([data-platform="android"] *):has(> .Leading > *) > .SearchLayer > .SearchField {
|
|
3176
|
+
left: calc(var(--toolbar-gutter) + var(--toolbar-search-leading, var(--toolbar-item-size)) + var(--toolbar-item-gap));
|
|
3177
|
+
}
|
|
3178
|
+
|
|
3179
|
+
:where([data-plex-layout="phone"]) .Toolbar[data-search-open]:not([data-platform="android"] *):has(> .Leading > *) > .SearchLayer > .SearchField:dir(rtl) {
|
|
3180
|
+
right: calc(var(--toolbar-gutter) + var(--toolbar-search-leading, var(--toolbar-item-size)) + var(--toolbar-item-gap));
|
|
3181
|
+
left: calc(var(--toolbar-gutter) + var(--toolbar-item-size) + var(--toolbar-item-gap));
|
|
3182
|
+
}
|
|
3183
|
+
|
|
3184
|
+
:where([data-plex-layout="phone"]) .SearchClose {
|
|
3185
|
+
position: absolute;
|
|
3186
|
+
top: 0;
|
|
3187
|
+
right: var(--toolbar-gutter);
|
|
3188
|
+
visibility: hidden;
|
|
3189
|
+
opacity: 0;
|
|
3190
|
+
scale: 0.7;
|
|
3191
|
+
transition:
|
|
3192
|
+
opacity var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
3193
|
+
scale var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
3194
|
+
visibility 0s var(--toolbar-search-duration);
|
|
3195
|
+
}
|
|
3196
|
+
|
|
3197
|
+
:where([data-plex-layout="phone"]) .SearchClose:dir(rtl) {
|
|
3198
|
+
right: auto;
|
|
3199
|
+
left: var(--toolbar-gutter);
|
|
3200
|
+
}
|
|
3201
|
+
|
|
3202
|
+
:where([data-plex-layout="phone"]) .Toolbar[data-search-open] > .SearchLayer > .SearchClose {
|
|
3203
|
+
visibility: visible;
|
|
3204
|
+
opacity: 1;
|
|
3205
|
+
scale: 1;
|
|
3206
|
+
transition:
|
|
3207
|
+
opacity var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
3208
|
+
scale var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
3209
|
+
visibility 0s;
|
|
3210
|
+
}
|
|
3211
|
+
|
|
3105
3212
|
/* A Sheet's bar at the full screen: 5 under the status bar and 6 from the sides, as a page's. */
|
|
3106
3213
|
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-host="dialog"][data-placement="top"][data-search-open] {
|
|
3107
3214
|
--toolbar-padding-top: calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + 5px);
|
|
@@ -82,9 +82,11 @@
|
|
|
82
82
|
/* An Alert is glass in both themes, as native iOS alerts are. Light: Files (iOS-menu, Screenshot 18.22.08,
|
|
83
83
|
08.11) shows 237 over a page dimmed to 204, as white at 65% does; kit iOS 27 (Alerts 65:57149) comes to
|
|
84
84
|
235, an older frame to 233 (iOS2 IMG_5533). Dark: 34 to 45 over a page dimmed to 0 to 14 (IMG_5532). The
|
|
85
|
-
backdrop is blurred
|
|
85
|
+
backdrop is blurred hard: a SwiftUI alert on the iOS 27.2 simulator over a page half black, half white (dimmed
|
|
86
|
+
to 0 and 204, the scrim 20%) reads 133 and 232, and smears the halves' edge over some 50pt, a blur of about
|
|
87
|
+
20pt, so no line under it reads through (blur(10px) left the rows legible). The shadow is the raised glass one: 16 levels under the alert, gone within 33pt,
|
|
86
88
|
with the light rim along its edge (Files). */
|
|
87
|
-
--dialog-alert-backdrop-filter: blur(
|
|
89
|
+
--dialog-alert-backdrop-filter: blur(20px);
|
|
88
90
|
--dialog-alert-shadow: var(--mobile-glass-shadow-raised);
|
|
89
91
|
/* Native frames take precedence over the kit (plan 162): the message is the secondary label under a primary
|
|
90
92
|
title, as Files shows it (125 on 237) and iOS 26 did (IMG_5532, 5533); kit iOS 27 draws it primary. In dark
|
|
@@ -195,9 +197,11 @@
|
|
|
195
197
|
/* An Alert is glass in both themes, as native iOS alerts are. Light: Files (iOS-menu, Screenshot 18.22.08,
|
|
196
198
|
08.11) shows 237 over a page dimmed to 204, as white at 65% does; kit iOS 27 (Alerts 65:57149) comes to
|
|
197
199
|
235, an older frame to 233 (iOS2 IMG_5533). Dark: 34 to 45 over a page dimmed to 0 to 14 (IMG_5532). The
|
|
198
|
-
backdrop is blurred
|
|
200
|
+
backdrop is blurred hard: a SwiftUI alert on the iOS 27.2 simulator over a page half black, half white (dimmed
|
|
201
|
+
to 0 and 204, the scrim 20%) reads 133 and 232, and smears the halves' edge over some 50pt, a blur of about
|
|
202
|
+
20pt, so no line under it reads through (blur(10px) left the rows legible). The shadow is the raised glass one: 16 levels under the alert, gone within 33pt,
|
|
199
203
|
with the light rim along its edge (Files). */
|
|
200
|
-
--dialog-alert-backdrop-filter: blur(
|
|
204
|
+
--dialog-alert-backdrop-filter: blur(20px);
|
|
201
205
|
--dialog-alert-shadow: var(--mobile-glass-shadow-raised);
|
|
202
206
|
/* Native frames take precedence over the kit (plan 162): the message is the secondary label under a primary
|
|
203
207
|
title, as Files shows it (125 on 237) and iOS 26 did (IMG_5532, 5533); kit iOS 27 draws it primary. In dark
|
package/dist/es/styles/touch.css
CHANGED
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
--popover-mobile-backdrop-filter: var(--menu-mobile-backdrop-filter);
|
|
87
87
|
--toast-mobile-backdrop-filter: var(--menu-mobile-backdrop-filter);
|
|
88
88
|
--toast-mobile-shadow: var(--mobile-glass-shadow-raised);
|
|
89
|
-
--dialog-alert-backdrop-filter: blur(
|
|
89
|
+
--dialog-alert-backdrop-filter: blur(20px);
|
|
90
90
|
--dialog-alert-shadow: var(--mobile-glass-shadow-raised);
|
|
91
91
|
--dialog-alert-message-color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
92
92
|
}
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
--popover-mobile-backdrop-filter: var(--menu-mobile-backdrop-filter);
|
|
136
136
|
--toast-mobile-backdrop-filter: var(--menu-mobile-backdrop-filter);
|
|
137
137
|
--toast-mobile-shadow: var(--mobile-glass-shadow-raised);
|
|
138
|
-
--dialog-alert-backdrop-filter: blur(
|
|
138
|
+
--dialog-alert-backdrop-filter: blur(20px);
|
|
139
139
|
--dialog-alert-shadow: var(--mobile-glass-shadow-raised);
|
|
140
140
|
--dialog-alert-message-color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
141
141
|
}
|
|
@@ -1771,7 +1771,7 @@ export const tokenLayers = [
|
|
|
1771
1771
|
"--toast-mobile-backdrop-filter": "var(--menu-mobile-backdrop-filter)",
|
|
1772
1772
|
"--toast-mobile-shadow": "var(--mobile-glass-shadow-raised)",
|
|
1773
1773
|
"--dialog-alert-background": "light-dark(rgb(255 255 255 / 65%), var(--alpha-12))",
|
|
1774
|
-
"--dialog-alert-backdrop-filter": "blur(
|
|
1774
|
+
"--dialog-alert-backdrop-filter": "blur(20px)",
|
|
1775
1775
|
"--dialog-alert-shadow": "var(--mobile-glass-shadow-raised)",
|
|
1776
1776
|
"--dialog-alert-message-color": "var(--mobile-label-secondary, var(--color-text-secondary))",
|
|
1777
1777
|
"--dialog-alert-fill": "light-dark(var(--alpha-15), var(--alpha-12))"
|
|
@@ -2966,7 +2966,7 @@ export const resolvedTokens = {
|
|
|
2966
2966
|
"--data-table-pagination-wrap": "wrap",
|
|
2967
2967
|
"--date-range-cell-size": "min(44px, calc((100vw - 64px) / 7))",
|
|
2968
2968
|
"--dialog-alert-action-height": 48,
|
|
2969
|
-
"--dialog-alert-backdrop-filter": "blur(
|
|
2969
|
+
"--dialog-alert-backdrop-filter": "blur(20px)",
|
|
2970
2970
|
"--dialog-alert-background": "rgba(255, 255, 255, 0.65)",
|
|
2971
2971
|
"--dialog-alert-fill": "rgba(13, 13, 13, 0.15)",
|
|
2972
2972
|
"--dialog-alert-message-color": "rgba(13, 13, 13, 0.5)",
|
|
@@ -4757,7 +4757,7 @@ export const resolvedTokens = {
|
|
|
4757
4757
|
"--data-table-pagination-wrap": "wrap",
|
|
4758
4758
|
"--date-range-cell-size": "min(44px, calc((100vw - 64px) / 7))",
|
|
4759
4759
|
"--dialog-alert-action-height": 48,
|
|
4760
|
-
"--dialog-alert-backdrop-filter": "blur(
|
|
4760
|
+
"--dialog-alert-backdrop-filter": "blur(20px)",
|
|
4761
4761
|
"--dialog-alert-background": "rgba(255, 255, 255, 0.12)",
|
|
4762
4762
|
"--dialog-alert-fill": "rgba(255, 255, 255, 0.12)",
|
|
4763
4763
|
"--dialog-alert-message-color": "rgba(255, 255, 255, 0.5)",
|