@plexui/styles 0.17.13 → 0.17.15
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/Tip/Tip.module.css +135 -49
- package/dist/es/components/Toolbar/Toolbar.module.css +115 -8
- package/dist/es/styles/variables-components.css +4 -0
- package/dist/es/tokens/tokens.generated.js +13 -7
- package/dist/es/tokens/tokens.generated.js.map +1 -1
- package/package.json +1 -1
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
clip-path: path("M0 0C1.71 0 3.42 -.01 5.14 .01C6.78 .03 8.61 .06 10.21 .66C11.93 1.31 13.07 2.44 14.22 3.78C15.04 4.74 16.67 6.8 17.46 7.79C18.1 8.6 19.37 10.21 20.06 10.98C20.93 11.96 22.01 13 23.5 13C24.99 13 26.07 11.96 26.94 10.98C27.63 10.21 28.9 8.6 29.54 7.79C30.33 6.8 31.96 4.74 32.78 3.78C33.93 2.44 35.07 1.31 36.79 .66C38.39 .06 40.22 .03 41.86 .01C43.58 -.01 45.29 0 47 0Z");
|
|
181
181
|
}/* iPhone (plan 171, owner 08.11, comments 46 to 50). Apple's cards differ from app to app (IMG_5723, 5725,
|
|
182
182
|
5726, 5728, 5729, 5730); a tip takes the shape TipKit's own tip and most of them share. It is the card of a
|
|
183
|
-
grouped list
|
|
183
|
+
grouped list in shape, 26 corners, no shadow, its content at the iOS
|
|
184
184
|
layout margin (20 at 430pt). The symbol is a 36 tile at the margin and the text starts 12 after it (IMG_5726);
|
|
185
185
|
the title line starts 14 down, the 15/20 description right under it in the secondary label, and the whole
|
|
186
186
|
message stops short of Close. Close is a bare 12pt glyph in the tertiary label (197,197,199), its center 28
|
|
@@ -201,8 +201,43 @@
|
|
|
201
201
|
--tip-close-offset: 17px;
|
|
202
202
|
--tip-close-icon-size: 22px;
|
|
203
203
|
border-radius: 26px;
|
|
204
|
-
|
|
205
|
-
|
|
204
|
+
/* TipKit's own card (TipView, iOS 27.2 on the simulator): 242,242,247 on a white screen (28,28,30 on black), the
|
|
205
|
+
label color at 5% (10% at night) over the screen, so it reads on a plain and on a grouped background alike
|
|
206
|
+
(owner 29.11: a white card «почти сливается» with the grouped gray), and its hairline rim, the label color at 5%
|
|
207
|
+
fading inward over 1pt (230 at the edge in light, 38 in dark) */
|
|
208
|
+
background: var(--tip-mobile-background);
|
|
209
|
+
box-shadow: inset 0 0 1px 0.5px var(--tip-mobile-rim-color);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/* With an arrow the rim leaves the arrow's foot open, so no line parts the card from its arrow (owner 29.11:
|
|
213
|
+
«появилась полоска между карточкой и клювом/стрелкой тултипа»): it is drawn over the card, the foot masked out */
|
|
214
|
+
.Tip[data-arrow-edge]:not(:where([data-platform="android"] *)) {
|
|
215
|
+
--tip-arrow-foot: var(--tip-arrow-width);
|
|
216
|
+
--tip-arrow-foot-position: 50% 100%;
|
|
217
|
+
--tip-arrow-foot-size: var(--tip-arrow-foot) 2px;
|
|
218
|
+
box-shadow: none;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.Tip[data-arrow-edge]:not(:where([data-platform="android"] *))::after {
|
|
222
|
+
position: absolute;
|
|
223
|
+
inset: 0;
|
|
224
|
+
border-radius: inherit;
|
|
225
|
+
box-shadow: inset 0 0 1px 0.5px var(--tip-mobile-rim-color);
|
|
226
|
+
content: "";
|
|
227
|
+
pointer-events: none;
|
|
228
|
+
-webkit-mask:
|
|
229
|
+
linear-gradient(#000 0 0),
|
|
230
|
+
linear-gradient(#000 0 0) var(--tip-arrow-foot-position) / var(--tip-arrow-foot-size) no-repeat;
|
|
231
|
+
mask:
|
|
232
|
+
linear-gradient(#000 0 0),
|
|
233
|
+
linear-gradient(#000 0 0) var(--tip-arrow-foot-position) / var(--tip-arrow-foot-size) no-repeat;
|
|
234
|
+
-webkit-mask-composite: xor;
|
|
235
|
+
mask-composite: exclude;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.Tip[data-arrow-edge="top"] { --tip-arrow-foot-position: 50% 0; }
|
|
239
|
+
.Tip[data-arrow-edge="left"] { --tip-arrow-foot-position: 0 50%; --tip-arrow-foot-size: 2px var(--tip-arrow-foot); }
|
|
240
|
+
.Tip[data-arrow-edge="right"] { --tip-arrow-foot-position: 100% 50%; --tip-arrow-foot-size: 2px var(--tip-arrow-foot); }
|
|
206
241
|
|
|
207
242
|
.Icon {
|
|
208
243
|
margin-inline-start: 0;
|
|
@@ -306,36 +341,33 @@
|
|
|
306
341
|
max-width: none;
|
|
307
342
|
}
|
|
308
343
|
|
|
309
|
-
/* On iOS a tip with button actions is TipKit's
|
|
310
|
-
title and the message, 22 from the words to the
|
|
311
|
-
|
|
312
|
-
|
|
344
|
+
/* On iOS a tip with button actions is TipKit's (TipView on iOS 26 and 27.2, measured on the simulator): 22 over
|
|
345
|
+
the title, 4 between the title and the message, 22 from the words to the actions and 16 under them; the actions
|
|
346
|
+
capsules side by side, 8 apart, 48 tall with a 17/22 label, each its Button's own color and variant. TipKit's own
|
|
347
|
+
look is an accent action (`color="accent"`) beside iOS's Gray (`variant="outline"`, or a soft secondary one with
|
|
348
|
+
the words in the text color). The Android look keeps them across the tip. */
|
|
313
349
|
.Tip[data-mobile-actions="buttons"]:has(> .Actions):not(:where([data-platform="android"] *)) {
|
|
314
350
|
--tip-padding-top: 22px;
|
|
315
351
|
--tip-gap: 22px;
|
|
316
352
|
--tip-description-gap: 4px;
|
|
317
353
|
}
|
|
318
354
|
|
|
319
|
-
.Tip[data-mobile-actions="buttons"]:has(> .Actions):not(:where([data-platform="android"] *)) > .Actions
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
--button-gutter: 20px;
|
|
323
|
-
--button-font-size: 17px;
|
|
324
|
-
--button-line-height: 18px;
|
|
325
|
-
--button-font-weight: var(--font-weight-semibold);
|
|
326
|
-
font-weight: var(--font-weight-semibold);
|
|
355
|
+
.Tip[data-mobile-actions="buttons"]:has(> .Actions):not(:where([data-platform="android"] *)) > .Actions {
|
|
356
|
+
flex-direction: row;
|
|
357
|
+
gap: 8px;
|
|
327
358
|
}
|
|
328
359
|
|
|
329
|
-
/*
|
|
330
|
-
.Tip[data-mobile-actions="buttons"]:has(> .Actions):not(:where([data-platform="android"] *)) > .Actions > [data-variant]
|
|
331
|
-
--button-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
360
|
+
/* A label too long for its half wraps to a second line and its capsule grows, as the native tip's words do */
|
|
361
|
+
.Tip[data-mobile-actions="buttons"]:has(> .Actions):not(:where([data-platform="android"] *)) > .Actions > [data-variant] {
|
|
362
|
+
--button-gutter: 20px;
|
|
363
|
+
flex: 1 1 0;
|
|
364
|
+
width: auto;
|
|
365
|
+
height: auto;
|
|
366
|
+
min-height: var(--button-size);
|
|
367
|
+
padding-block: calc((var(--button-size) - var(--button-line-height)) / 2);
|
|
368
|
+
text-align: center;
|
|
369
|
+
white-space: normal;
|
|
370
|
+
overflow-wrap: anywhere;
|
|
339
371
|
}
|
|
340
372
|
|
|
341
373
|
.Popover {
|
|
@@ -348,6 +380,15 @@
|
|
|
348
380
|
backdrop-filter: var(--dialog-alert-backdrop-filter, none);
|
|
349
381
|
}
|
|
350
382
|
|
|
383
|
+
/* On the popover's glass a gray action (a soft primary or secondary one, an outline one, iOS's Gray) takes the
|
|
384
|
+
alert's fill, see-through as the Dialog's alert actions, its press that fill faded as a soft button's */
|
|
385
|
+
.Popover > .Tip[data-mobile-actions="buttons"] > .Actions > :is([data-variant="soft"]:where([data-color="primary"], [data-color="secondary"]), [data-variant="outline"]):not([data-disabled]):not(:where([data-platform="android"] *)) {
|
|
386
|
+
--button-background-color: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
|
|
387
|
+
--button-background-color-hover: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
|
|
388
|
+
--button-background-color-active: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
|
|
389
|
+
--button-outline-context-background: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
|
|
390
|
+
}
|
|
391
|
+
|
|
351
392
|
.Arrow {
|
|
352
393
|
background: var(--dialog-alert-background, var(--tip-popover-background));
|
|
353
394
|
backdrop-filter: var(--dialog-alert-backdrop-filter, none);
|
|
@@ -366,8 +407,43 @@
|
|
|
366
407
|
--tip-close-offset: 17px;
|
|
367
408
|
--tip-close-icon-size: 22px;
|
|
368
409
|
border-radius: 26px;
|
|
369
|
-
|
|
370
|
-
|
|
410
|
+
/* TipKit's own card (TipView, iOS 27.2 on the simulator): 242,242,247 on a white screen (28,28,30 on black), the
|
|
411
|
+
label color at 5% (10% at night) over the screen, so it reads on a plain and on a grouped background alike
|
|
412
|
+
(owner 29.11: a white card «почти сливается» with the grouped gray), and its hairline rim, the label color at 5%
|
|
413
|
+
fading inward over 1pt (230 at the edge in light, 38 in dark) */
|
|
414
|
+
background: var(--tip-mobile-background);
|
|
415
|
+
box-shadow: inset 0 0 1px 0.5px var(--tip-mobile-rim-color);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
/* With an arrow the rim leaves the arrow's foot open, so no line parts the card from its arrow (owner 29.11:
|
|
419
|
+
«появилась полоска между карточкой и клювом/стрелкой тултипа»): it is drawn over the card, the foot masked out */
|
|
420
|
+
:where([data-plex-layout="phone"]) .Tip[data-arrow-edge]:not(:where([data-platform="android"] *)) {
|
|
421
|
+
--tip-arrow-foot: var(--tip-arrow-width);
|
|
422
|
+
--tip-arrow-foot-position: 50% 100%;
|
|
423
|
+
--tip-arrow-foot-size: var(--tip-arrow-foot) 2px;
|
|
424
|
+
box-shadow: none;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
:where([data-plex-layout="phone"]) .Tip[data-arrow-edge]:not(:where([data-platform="android"] *))::after {
|
|
428
|
+
position: absolute;
|
|
429
|
+
inset: 0;
|
|
430
|
+
border-radius: inherit;
|
|
431
|
+
box-shadow: inset 0 0 1px 0.5px var(--tip-mobile-rim-color);
|
|
432
|
+
content: "";
|
|
433
|
+
pointer-events: none;
|
|
434
|
+
-webkit-mask:
|
|
435
|
+
linear-gradient(#000 0 0),
|
|
436
|
+
linear-gradient(#000 0 0) var(--tip-arrow-foot-position) / var(--tip-arrow-foot-size) no-repeat;
|
|
437
|
+
mask:
|
|
438
|
+
linear-gradient(#000 0 0),
|
|
439
|
+
linear-gradient(#000 0 0) var(--tip-arrow-foot-position) / var(--tip-arrow-foot-size) no-repeat;
|
|
440
|
+
-webkit-mask-composite: xor;
|
|
441
|
+
mask-composite: exclude;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
:where([data-plex-layout="phone"]) .Tip[data-arrow-edge="top"] { --tip-arrow-foot-position: 50% 0; }
|
|
445
|
+
:where([data-plex-layout="phone"]) .Tip[data-arrow-edge="left"] { --tip-arrow-foot-position: 0 50%; --tip-arrow-foot-size: 2px var(--tip-arrow-foot); }
|
|
446
|
+
:where([data-plex-layout="phone"]) .Tip[data-arrow-edge="right"] { --tip-arrow-foot-position: 100% 50%; --tip-arrow-foot-size: 2px var(--tip-arrow-foot); }
|
|
371
447
|
|
|
372
448
|
:where([data-plex-layout="phone"]) .Icon {
|
|
373
449
|
margin-inline-start: 0;
|
|
@@ -471,36 +547,33 @@
|
|
|
471
547
|
max-width: none;
|
|
472
548
|
}
|
|
473
549
|
|
|
474
|
-
/* On iOS a tip with button actions is TipKit's
|
|
475
|
-
title and the message, 22 from the words to the
|
|
476
|
-
|
|
477
|
-
|
|
550
|
+
/* On iOS a tip with button actions is TipKit's (TipView on iOS 26 and 27.2, measured on the simulator): 22 over
|
|
551
|
+
the title, 4 between the title and the message, 22 from the words to the actions and 16 under them; the actions
|
|
552
|
+
capsules side by side, 8 apart, 48 tall with a 17/22 label, each its Button's own color and variant. TipKit's own
|
|
553
|
+
look is an accent action (`color="accent"`) beside iOS's Gray (`variant="outline"`, or a soft secondary one with
|
|
554
|
+
the words in the text color). The Android look keeps them across the tip. */
|
|
478
555
|
:where([data-plex-layout="phone"]) .Tip[data-mobile-actions="buttons"]:has(> .Actions):not(:where([data-platform="android"] *)) {
|
|
479
556
|
--tip-padding-top: 22px;
|
|
480
557
|
--tip-gap: 22px;
|
|
481
558
|
--tip-description-gap: 4px;
|
|
482
559
|
}
|
|
483
560
|
|
|
484
|
-
:where([data-plex-layout="phone"]) .Tip[data-mobile-actions="buttons"]:has(> .Actions):not(:where([data-platform="android"] *)) > .Actions
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
--button-gutter: 20px;
|
|
488
|
-
--button-font-size: 17px;
|
|
489
|
-
--button-line-height: 18px;
|
|
490
|
-
--button-font-weight: var(--font-weight-semibold);
|
|
491
|
-
font-weight: var(--font-weight-semibold);
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
/* The colors for an action that takes presses: a disabled one keeps the Button's disabled look */
|
|
495
|
-
:where([data-plex-layout="phone"]) .Tip[data-mobile-actions="buttons"]:has(> .Actions):not(:where([data-platform="android"] *)) > .Actions > [data-variant][data-color]:not([data-disabled]) {
|
|
496
|
-
--button-text-color: var(--tip-mini-ink);
|
|
497
|
-
--button-text-color-hover: var(--tip-mini-ink);
|
|
498
|
-
--button-background-color: color-mix(in srgb, var(--tip-mini-ink) 8%, rgb(116 116 128 / 0.08));
|
|
499
|
-
--button-background-color-hover: var(--button-background-color);
|
|
561
|
+
:where([data-plex-layout="phone"]) .Tip[data-mobile-actions="buttons"]:has(> .Actions):not(:where([data-platform="android"] *)) > .Actions {
|
|
562
|
+
flex-direction: row;
|
|
563
|
+
gap: 8px;
|
|
500
564
|
}
|
|
501
565
|
|
|
502
|
-
|
|
503
|
-
|
|
566
|
+
/* A label too long for its half wraps to a second line and its capsule grows, as the native tip's words do */
|
|
567
|
+
:where([data-plex-layout="phone"]) .Tip[data-mobile-actions="buttons"]:has(> .Actions):not(:where([data-platform="android"] *)) > .Actions > [data-variant] {
|
|
568
|
+
--button-gutter: 20px;
|
|
569
|
+
flex: 1 1 0;
|
|
570
|
+
width: auto;
|
|
571
|
+
height: auto;
|
|
572
|
+
min-height: var(--button-size);
|
|
573
|
+
padding-block: calc((var(--button-size) - var(--button-line-height)) / 2);
|
|
574
|
+
text-align: center;
|
|
575
|
+
white-space: normal;
|
|
576
|
+
overflow-wrap: anywhere;
|
|
504
577
|
}
|
|
505
578
|
|
|
506
579
|
:where([data-plex-layout="phone"]) .Popover {
|
|
@@ -513,6 +586,15 @@
|
|
|
513
586
|
backdrop-filter: var(--dialog-alert-backdrop-filter, none);
|
|
514
587
|
}
|
|
515
588
|
|
|
589
|
+
/* On the popover's glass a gray action (a soft primary or secondary one, an outline one, iOS's Gray) takes the
|
|
590
|
+
alert's fill, see-through as the Dialog's alert actions, its press that fill faded as a soft button's */
|
|
591
|
+
:where([data-plex-layout="phone"]) .Popover > .Tip[data-mobile-actions="buttons"] > .Actions > :is([data-variant="soft"]:where([data-color="primary"], [data-color="secondary"]), [data-variant="outline"]):not([data-disabled]):not(:where([data-platform="android"] *)) {
|
|
592
|
+
--button-background-color: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
|
|
593
|
+
--button-background-color-hover: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
|
|
594
|
+
--button-background-color-active: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
|
|
595
|
+
--button-outline-context-background: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
|
|
596
|
+
}
|
|
597
|
+
|
|
516
598
|
:where([data-plex-layout="phone"]) .Arrow {
|
|
517
599
|
background: var(--dialog-alert-background, var(--tip-popover-background));
|
|
518
600
|
backdrop-filter: var(--dialog-alert-backdrop-filter, none);
|
|
@@ -537,6 +619,8 @@
|
|
|
537
619
|
-moz-column-gap: 16px;
|
|
538
620
|
column-gap: 16px;
|
|
539
621
|
border-radius: 16px;
|
|
622
|
+
background: var(--mobile-surface-grouped-secondary, var(--tip-background));
|
|
623
|
+
box-shadow: none;
|
|
540
624
|
}
|
|
541
625
|
|
|
542
626
|
[data-platform="android"] .Tip .Title {
|
|
@@ -628,6 +712,8 @@
|
|
|
628
712
|
-moz-column-gap: 16px;
|
|
629
713
|
column-gap: 16px;
|
|
630
714
|
border-radius: 16px;
|
|
715
|
+
background: var(--mobile-surface-grouped-secondary, var(--tip-background));
|
|
716
|
+
box-shadow: none;
|
|
631
717
|
}
|
|
632
718
|
|
|
633
719
|
:where([data-plex-layout="phone"]) [data-platform="android"] .Tip .Title {
|
|
@@ -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);
|
|
@@ -730,6 +730,8 @@
|
|
|
730
730
|
--tip-arrow-width: 47px;
|
|
731
731
|
--tip-arrow-height: 13px;
|
|
732
732
|
--tip-background: var(--alpha-05);
|
|
733
|
+
/* A tip on a phone (iOS): TipKit's card, 242 on white and 28 on black as iOS 27.2 draws it, and its rim */
|
|
734
|
+
--tip-mobile-rim-color: var(--alpha-05);
|
|
733
735
|
--tip-popover-background: var(--color-surface-elevated);
|
|
734
736
|
--tip-popover-shadow: 0 10px 30px rgb(0 0 0 / 20%);
|
|
735
737
|
|
|
@@ -1293,6 +1295,7 @@
|
|
|
1293
1295
|
--page-bar-veil-opacity: 55%;
|
|
1294
1296
|
--page-bar-veil: rgb(255 255 255 / 55%);
|
|
1295
1297
|
--page-bar-line: rgb(0 0 0 / 10%);
|
|
1298
|
+
--tip-mobile-background: var(--alpha-05);
|
|
1296
1299
|
--segmented-control-background: var(--gray-100);
|
|
1297
1300
|
--segmented-control-thumb-background: var(--gray-0);
|
|
1298
1301
|
--segmented-control-mobile-plain-background: var(--alpha-06);
|
|
@@ -1361,6 +1364,7 @@
|
|
|
1361
1364
|
--page-bar-veil-opacity: 50%;
|
|
1362
1365
|
--page-bar-veil: rgb(0 0 0 / 50%);
|
|
1363
1366
|
--page-bar-line: var(--color-border);
|
|
1367
|
+
--tip-mobile-background: var(--alpha-10);
|
|
1364
1368
|
--segmented-control-background: var(--alpha-08);
|
|
1365
1369
|
--segmented-control-thumb-background: var(--alpha-12);
|
|
1366
1370
|
--segmented-control-mobile-plain-background: var(--alpha-12);
|
|
@@ -1306,6 +1306,8 @@ export const tokenLayers = [
|
|
|
1306
1306
|
"--tip-arrow-width": "47px",
|
|
1307
1307
|
"--tip-arrow-height": "13px",
|
|
1308
1308
|
"--tip-background": "var(--alpha-05)",
|
|
1309
|
+
"--tip-mobile-background": "light-dark(var(--alpha-05), var(--alpha-10))",
|
|
1310
|
+
"--tip-mobile-rim-color": "var(--alpha-05)",
|
|
1309
1311
|
"--tip-popover-background": "var(--color-surface-elevated)",
|
|
1310
1312
|
"--tip-popover-shadow": "0 10px 30px rgb(0 0 0 / 20%)",
|
|
1311
1313
|
"--radio-group-col-gap": "spacing(2.5)",
|
|
@@ -1676,7 +1678,7 @@ export const tokenLayers = [
|
|
|
1676
1678
|
1,
|
|
1677
1679
|
0
|
|
1678
1680
|
],
|
|
1679
|
-
"order":
|
|
1681
|
+
"order": 1499,
|
|
1680
1682
|
"tokens": {
|
|
1681
1683
|
"--radius-2xs": "0.125rem",
|
|
1682
1684
|
"--radius-xs": "0.25rem",
|
|
@@ -1708,7 +1710,7 @@ export const tokenLayers = [
|
|
|
1708
1710
|
1,
|
|
1709
1711
|
0
|
|
1710
1712
|
],
|
|
1711
|
-
"order":
|
|
1713
|
+
"order": 1520,
|
|
1712
1714
|
"when": {
|
|
1713
1715
|
"maxWidth": 767
|
|
1714
1716
|
},
|
|
@@ -1740,7 +1742,7 @@ export const tokenLayers = [
|
|
|
1740
1742
|
1,
|
|
1741
1743
|
0
|
|
1742
1744
|
],
|
|
1743
|
-
"order":
|
|
1745
|
+
"order": 1536,
|
|
1744
1746
|
"when": {
|
|
1745
1747
|
"maxWidth": 767
|
|
1746
1748
|
},
|
|
@@ -1786,7 +1788,7 @@ export const tokenLayers = [
|
|
|
1786
1788
|
1,
|
|
1787
1789
|
0
|
|
1788
1790
|
],
|
|
1789
|
-
"order":
|
|
1791
|
+
"order": 1566,
|
|
1790
1792
|
"when": {
|
|
1791
1793
|
"maxWidth": 767
|
|
1792
1794
|
},
|
|
@@ -1803,7 +1805,7 @@ export const tokenLayers = [
|
|
|
1803
1805
|
1,
|
|
1804
1806
|
1
|
|
1805
1807
|
],
|
|
1806
|
-
"order":
|
|
1808
|
+
"order": 1593,
|
|
1807
1809
|
"when": {
|
|
1808
1810
|
"maxWidth": 767
|
|
1809
1811
|
},
|
|
@@ -2279,7 +2281,7 @@ export const tokenLayers = [
|
|
|
2279
2281
|
1,
|
|
2280
2282
|
1
|
|
2281
2283
|
],
|
|
2282
|
-
"order":
|
|
2284
|
+
"order": 2146,
|
|
2283
2285
|
"when": {
|
|
2284
2286
|
"minWidth": 414,
|
|
2285
2287
|
"maxWidth": 767
|
|
@@ -2297,7 +2299,7 @@ export const tokenLayers = [
|
|
|
2297
2299
|
1,
|
|
2298
2300
|
1
|
|
2299
2301
|
],
|
|
2300
|
-
"order":
|
|
2302
|
+
"order": 2147,
|
|
2301
2303
|
"when": {
|
|
2302
2304
|
"maxWidth": 575
|
|
2303
2305
|
},
|
|
@@ -3997,6 +3999,8 @@ export const resolvedTokens = {
|
|
|
3997
3999
|
"--tip-icon-frame-height": 54,
|
|
3998
4000
|
"--tip-icon-frame-width": 44,
|
|
3999
4001
|
"--tip-icon-size": 40,
|
|
4002
|
+
"--tip-mobile-background": "rgba(13, 13, 13, 0.05)",
|
|
4003
|
+
"--tip-mobile-rim-color": "rgba(13, 13, 13, 0.05)",
|
|
4000
4004
|
"--tip-padding-bottom": 16,
|
|
4001
4005
|
"--tip-padding-inline": 16,
|
|
4002
4006
|
"--tip-padding-top": 22,
|
|
@@ -5788,6 +5792,8 @@ export const resolvedTokens = {
|
|
|
5788
5792
|
"--tip-icon-frame-height": 54,
|
|
5789
5793
|
"--tip-icon-frame-width": 44,
|
|
5790
5794
|
"--tip-icon-size": 40,
|
|
5795
|
+
"--tip-mobile-background": "rgba(255, 255, 255, 0.1)",
|
|
5796
|
+
"--tip-mobile-rim-color": "rgba(255, 255, 255, 0.05)",
|
|
5791
5797
|
"--tip-padding-bottom": 16,
|
|
5792
5798
|
"--tip-padding-inline": 16,
|
|
5793
5799
|
"--tip-padding-top": 22,
|