@plexui/styles 0.16.7 → 0.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/Accordion/Accordion.module.css +74 -12
- package/dist/es/components/Alert/Alert.module.css +196 -0
- package/dist/es/components/Breadcrumb/Breadcrumb.module.css +32 -1
- package/dist/es/components/Button/Button.module.css +483 -5
- package/dist/es/components/Button/NavigationButton.module.css +195 -0
- package/dist/es/components/Checkbox/Checkbox.module.css +246 -0
- package/dist/es/components/CodeBlock/CodeBlock.module.css +15 -1
- package/dist/es/components/DatePicker/Calendar.module.css +216 -0
- package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +19 -0
- package/dist/es/components/DateRangePicker/Calendar.module.css +200 -0
- package/dist/es/components/DateRangePicker/Trigger.module.css +15 -1
- package/dist/es/components/Dialog/Dialog.module.css +456 -0
- package/dist/es/components/Field/Field.module.css +713 -0
- package/dist/es/components/FieldGroup/FieldGroup.module.css +272 -0
- package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +49 -0
- package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +81 -0
- package/dist/es/components/Input/Input.module.css +184 -0
- package/dist/es/components/InputGroup/InputGroup.module.css +17 -0
- package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +60 -0
- package/dist/es/components/Menu/Menu.module.css +244 -0
- package/dist/es/components/NavigationRow/NavigationRow.module.css +82 -0
- package/dist/es/components/Page/Page.module.css +278 -0
- package/dist/es/components/PageControl/PageControl.module.css +35 -0
- package/dist/es/components/Popover/Popover.module.css +20 -0
- package/dist/es/components/RadioGroup/RadioGroup.module.css +151 -0
- package/dist/es/components/Select/Select.module.css +315 -0
- package/dist/es/components/SelectControl/SelectControl.module.css +104 -0
- package/dist/es/components/Sidebar/Sidebar.module.css +210 -4
- package/dist/es/components/Skeleton/Skeleton.module.css +50 -0
- package/dist/es/components/Slider/Slider.module.css +12 -1
- package/dist/es/components/Switch/Switch.module.css +143 -0
- package/dist/es/components/TabBar/TabBar.module.css +354 -0
- package/dist/es/components/Tabs/Tabs.module.css +162 -0
- package/dist/es/components/Tip/Tip.module.css +225 -0
- package/dist/es/components/Toast/Toast.module.css +207 -0
- package/dist/es/components/Toolbar/Toolbar.module.css +1542 -0
- package/dist/es/components/Tooltip/Tooltip.module.css +44 -0
- package/dist/es/styles/android.css +882 -0
- package/dist/es/styles/touch.css +672 -0
- package/dist/es/styles/variables-components.css +4 -0
- package/dist/es/styles/variables-semantic.css +28 -0
- package/dist/es/tokens/resolve.js +2 -0
- package/dist/es/tokens/resolve.js.map +1 -1
- package/dist/es/tokens/tokens.generated.js +64 -10
- package/dist/es/tokens/tokens.generated.js.map +1 -1
- package/dist/types/tokens/resolve.d.ts +2 -0
- package/package.json +1 -1
|
@@ -322,6 +322,183 @@
|
|
|
322
322
|
flex: 1 1 0;
|
|
323
323
|
height: var(--tab-bar-minimized-size);
|
|
324
324
|
}
|
|
325
|
+
|
|
326
|
+
/* =============================================
|
|
327
|
+
The Plex Android look (`data-platform="android"`, android.css), after @plexui/react-native's TabBar on Android
|
|
328
|
+
(decision 0026): the tabs in a 56px capsule of the tabs' glass (the card at 76%, a thin rim, a tight shadow) 12
|
|
329
|
+
from the screen's sides and 8 over the gesture bar, 4 inside it; each tab 48 tall, a 24px symbol over a 12/16
|
|
330
|
+
Medium label (Bold when selected), as wide as its label and 16 a side, the tabs growing together to fill 320;
|
|
331
|
+
the selected one in the accent on its own pill of the accent at 9%. Search or a prominent tab is a 56px circle
|
|
332
|
+
8 beside the capsule. A badge is the accent's 16px capsule ringed in the card's color. No minimized state: a
|
|
333
|
+
minimized bar keeps its tabs. Soft is the screen's color at 81% fading in over 60px from the bar's top.
|
|
334
|
+
============================================= */
|
|
335
|
+
[data-platform="android"] .TabBar {
|
|
336
|
+
--tab-bar-gutter: 12px;
|
|
337
|
+
--tab-bar-gap: 8px;
|
|
338
|
+
--tab-bar-padding-top: 8px;
|
|
339
|
+
--tab-bar-padding-bottom: calc(var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)) + 8px);
|
|
340
|
+
--tab-bar-capsule-padding-block: 4px;
|
|
341
|
+
--tab-bar-capsule-padding-inline: 4px;
|
|
342
|
+
--tab-bar-item-height: 48px;
|
|
343
|
+
--tab-bar-pill-outset: 0px;
|
|
344
|
+
--tab-bar-icon-box: 24px;
|
|
345
|
+
--tab-bar-icon-size: 24px;
|
|
346
|
+
--tab-bar-label-font-size: 12px;
|
|
347
|
+
--tab-bar-label-line-height: 16px;
|
|
348
|
+
--tab-bar-label-font-weight: var(--font-weight-medium);
|
|
349
|
+
--tab-bar-search-size: 56px;
|
|
350
|
+
--tab-bar-item-color: var(--color-text);
|
|
351
|
+
--tab-bar-item-color-selected: var(--android-tab-selected);
|
|
352
|
+
--tab-bar-item-background-selected: color-mix(in srgb, var(--color-background-accent-solid) 9%, transparent);
|
|
353
|
+
--tab-bar-badge-size: 16px;
|
|
354
|
+
--tab-bar-badge-padding-inline: 4px;
|
|
355
|
+
--tab-bar-badge-font-size: 12px;
|
|
356
|
+
--tab-bar-badge-font-weight: var(--font-weight-medium);
|
|
357
|
+
--tab-bar-badge-top: 0.67px;
|
|
358
|
+
--tab-bar-badge-start: 1.67px;
|
|
359
|
+
--tab-bar-badge-background: var(--color-background-accent-solid);
|
|
360
|
+
--tab-bar-badge-color: var(--color-text-accent-solid);
|
|
361
|
+
--tab-bar-accessory-height: 56px;
|
|
362
|
+
--mobile-glass-background: var(--android-tabs-glass);
|
|
363
|
+
--mobile-glass-sheen: none;
|
|
364
|
+
--mobile-glass-shadow: var(--android-tabs-shadow);
|
|
365
|
+
--mobile-glass-shadow-raised: var(--android-tabs-shadow);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
[data-platform="android"] .TabBar[data-minimized] {
|
|
369
|
+
padding: var(--tab-bar-padding-top) var(--tab-bar-gutter) var(--tab-bar-padding-bottom);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
[data-platform="android"] .TabBar:is([data-search], [data-prominent], [data-minimized]) {
|
|
373
|
+
justify-content: center;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
[data-platform="android"] .TabBar[data-background="soft"]::before {
|
|
377
|
+
display: block;
|
|
378
|
+
inset: 0;
|
|
379
|
+
background: color-mix(in srgb, var(--tab-bar-edge-background, var(--page-background)) 81.4%, transparent);
|
|
380
|
+
backdrop-filter: none;
|
|
381
|
+
-webkit-mask-image: linear-gradient(to bottom, transparent, rgb(0 0 0 / 41.4%) 20px, rgb(0 0 0 / 75.9%) 40px, #000 60px);
|
|
382
|
+
mask-image: linear-gradient(to bottom, transparent, rgb(0 0 0 / 41.4%) 20px, rgb(0 0 0 / 75.9%) 40px, #000 60px);
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
[data-platform="android"] .TabBar:is([data-background="hard"], [data-background="glass"])::before {
|
|
386
|
+
border-top-color: transparent;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
[data-platform="android"] .Tabs {
|
|
390
|
+
min-width: min(328px, 100%);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
[data-platform="android"] .Tabs > .Item {
|
|
394
|
+
flex: 1 1 auto;
|
|
395
|
+
justify-content: center;
|
|
396
|
+
gap: 0;
|
|
397
|
+
width: auto;
|
|
398
|
+
padding: 0 16px;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
[data-platform="android"] .Tabs > .Item[data-selected] > .Label {
|
|
402
|
+
font-weight: var(--font-weight-bold);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
[data-platform="android"] .Tabs > .Item[data-selected] > .Icon {
|
|
406
|
+
color: var(--color-background-accent-solid);
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
[data-platform="android"] .Tabs > .Item[data-disabled] {
|
|
410
|
+
color: color-mix(in srgb, var(--color-text) 38%, transparent);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
[data-platform="android"] .Badge {
|
|
414
|
+
box-sizing: content-box;
|
|
415
|
+
border: 1.33px solid var(--android-card);
|
|
416
|
+
line-height: 16px;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
[data-platform="android"] .Item[data-selected] .Badge {
|
|
420
|
+
border-color: color-mix(in srgb, var(--color-background-accent-solid) 9%, var(--android-card));
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/* The circle beside the capsule: a symbol in the text color, the accent when selected; a prominent one the accent
|
|
424
|
+
with its ink. Held, it ripples as a bar's glass circle (android.css, Android press ripple): a circle of 20px round
|
|
425
|
+
its center in the list selector, a prominent one in its ink at 20%, as the reference's accent Done pill. */
|
|
426
|
+
[data-platform="android"] .Item:is(.Search, .Prominent) {
|
|
427
|
+
--android-ripple-radius: 20px;
|
|
428
|
+
color: var(--color-text);
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
[data-platform="android"] .Item:is(.Search, .Prominent)::before {
|
|
432
|
+
inset: 0;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
[data-platform="android"] .Item:is(.Search, .Prominent)[data-selected] {
|
|
436
|
+
color: var(--color-background-accent-solid);
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
[data-platform="android"] .Item:is(.Search, .Prominent)[data-selected]::before {
|
|
440
|
+
background: transparent;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
[data-platform="android"] .Item:is(.Search, .Prominent)[data-ripple]:not([data-disabled])::before {
|
|
444
|
+
background-image: var(--android-ripple-image);
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
[data-platform="android"] .Item.Prominent {
|
|
448
|
+
--android-ripple-ink: color-mix(in srgb, var(--color-text-accent-solid) 20%, transparent);
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
[data-platform="android"] .Item.Prominent:not([data-disabled]) {
|
|
452
|
+
background-color: var(--color-background-accent-solid);
|
|
453
|
+
color: var(--color-text-accent-solid);
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
/* Minimized, the Android bar keeps every tab with its label. */
|
|
457
|
+
[data-platform="android"] .TabBar[data-minimized] .Tabs {
|
|
458
|
+
flex: 0 1 auto;
|
|
459
|
+
padding: var(--tab-bar-capsule-padding-block) var(--tab-bar-capsule-padding-inline);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
[data-platform="android"] .TabBar[data-minimized] .Tabs > .Item,
|
|
463
|
+
[data-platform="android"] .TabBar[data-minimized] .Tabs > .Item[data-selected],
|
|
464
|
+
[data-platform="android"] .TabBar[data-minimized] .Tabs:not(:has(> .Item[data-selected])) > .Item:first-child {
|
|
465
|
+
display: flex;
|
|
466
|
+
flex: 1 1 auto;
|
|
467
|
+
width: auto;
|
|
468
|
+
height: var(--tab-bar-item-height);
|
|
469
|
+
padding: 0 16px;
|
|
470
|
+
color: var(--tab-bar-item-color);
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
[data-platform="android"] .TabBar[data-minimized] .Tabs > .Item::before, [data-platform="android"] .TabBar[data-minimized] .Tabs > .Item[data-selected]::before, [data-platform="android"] .TabBar[data-minimized] .Tabs:not(:has(> .Item[data-selected])) > .Item:first-child::before {
|
|
474
|
+
background: transparent;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
[data-platform="android"] .TabBar[data-minimized] .Tabs > .Item[data-selected] {
|
|
478
|
+
color: var(--tab-bar-item-color-selected);
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
[data-platform="android"] .TabBar[data-minimized] .Tabs > .Item[data-selected]::before {
|
|
482
|
+
background: var(--tab-bar-item-background-selected);
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
[data-platform="android"] .TabBar[data-minimized] .Tabs .Badge {
|
|
486
|
+
top: var(--tab-bar-badge-top);
|
|
487
|
+
left: calc(50% + var(--tab-bar-badge-start));
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
[data-platform="android"] .TabBar[data-minimized] .Tabs .Label {
|
|
491
|
+
position: static;
|
|
492
|
+
width: auto;
|
|
493
|
+
height: auto;
|
|
494
|
+
overflow: hidden;
|
|
495
|
+
clip-path: none;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
[data-platform="android"] .TabBar[data-minimized] .Item:is(.Search, .Prominent) {
|
|
499
|
+
width: var(--tab-bar-search-size);
|
|
500
|
+
height: var(--tab-bar-search-size);
|
|
501
|
+
}
|
|
325
502
|
}
|
|
326
503
|
/* 402 x 95: the capsule 62 tall, 21px from the sides and the bottom, 12px below the top of the bar. */
|
|
327
504
|
:where([data-plex-layout="phone"]) .TabBar {
|
|
@@ -643,4 +820,181 @@
|
|
|
643
820
|
flex: 1 1 0;
|
|
644
821
|
height: var(--tab-bar-minimized-size);
|
|
645
822
|
}
|
|
823
|
+
|
|
824
|
+
/* =============================================
|
|
825
|
+
The Plex Android look (`data-platform="android"`, android.css), after @plexui/react-native's TabBar on Android
|
|
826
|
+
(decision 0026): the tabs in a 56px capsule of the tabs' glass (the card at 76%, a thin rim, a tight shadow) 12
|
|
827
|
+
from the screen's sides and 8 over the gesture bar, 4 inside it; each tab 48 tall, a 24px symbol over a 12/16
|
|
828
|
+
Medium label (Bold when selected), as wide as its label and 16 a side, the tabs growing together to fill 320;
|
|
829
|
+
the selected one in the accent on its own pill of the accent at 9%. Search or a prominent tab is a 56px circle
|
|
830
|
+
8 beside the capsule. A badge is the accent's 16px capsule ringed in the card's color. No minimized state: a
|
|
831
|
+
minimized bar keeps its tabs. Soft is the screen's color at 81% fading in over 60px from the bar's top.
|
|
832
|
+
============================================= */
|
|
833
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .TabBar {
|
|
834
|
+
--tab-bar-gutter: 12px;
|
|
835
|
+
--tab-bar-gap: 8px;
|
|
836
|
+
--tab-bar-padding-top: 8px;
|
|
837
|
+
--tab-bar-padding-bottom: calc(var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)) + 8px);
|
|
838
|
+
--tab-bar-capsule-padding-block: 4px;
|
|
839
|
+
--tab-bar-capsule-padding-inline: 4px;
|
|
840
|
+
--tab-bar-item-height: 48px;
|
|
841
|
+
--tab-bar-pill-outset: 0px;
|
|
842
|
+
--tab-bar-icon-box: 24px;
|
|
843
|
+
--tab-bar-icon-size: 24px;
|
|
844
|
+
--tab-bar-label-font-size: 12px;
|
|
845
|
+
--tab-bar-label-line-height: 16px;
|
|
846
|
+
--tab-bar-label-font-weight: var(--font-weight-medium);
|
|
847
|
+
--tab-bar-search-size: 56px;
|
|
848
|
+
--tab-bar-item-color: var(--color-text);
|
|
849
|
+
--tab-bar-item-color-selected: var(--android-tab-selected);
|
|
850
|
+
--tab-bar-item-background-selected: color-mix(in srgb, var(--color-background-accent-solid) 9%, transparent);
|
|
851
|
+
--tab-bar-badge-size: 16px;
|
|
852
|
+
--tab-bar-badge-padding-inline: 4px;
|
|
853
|
+
--tab-bar-badge-font-size: 12px;
|
|
854
|
+
--tab-bar-badge-font-weight: var(--font-weight-medium);
|
|
855
|
+
--tab-bar-badge-top: 0.67px;
|
|
856
|
+
--tab-bar-badge-start: 1.67px;
|
|
857
|
+
--tab-bar-badge-background: var(--color-background-accent-solid);
|
|
858
|
+
--tab-bar-badge-color: var(--color-text-accent-solid);
|
|
859
|
+
--tab-bar-accessory-height: 56px;
|
|
860
|
+
--mobile-glass-background: var(--android-tabs-glass);
|
|
861
|
+
--mobile-glass-sheen: none;
|
|
862
|
+
--mobile-glass-shadow: var(--android-tabs-shadow);
|
|
863
|
+
--mobile-glass-shadow-raised: var(--android-tabs-shadow);
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .TabBar[data-minimized] {
|
|
867
|
+
padding: var(--tab-bar-padding-top) var(--tab-bar-gutter) var(--tab-bar-padding-bottom);
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .TabBar:is([data-search], [data-prominent], [data-minimized]) {
|
|
871
|
+
justify-content: center;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .TabBar[data-background="soft"]::before {
|
|
875
|
+
display: block;
|
|
876
|
+
inset: 0;
|
|
877
|
+
background: color-mix(in srgb, var(--tab-bar-edge-background, var(--page-background)) 81.4%, transparent);
|
|
878
|
+
backdrop-filter: none;
|
|
879
|
+
-webkit-mask-image: linear-gradient(to bottom, transparent, rgb(0 0 0 / 41.4%) 20px, rgb(0 0 0 / 75.9%) 40px, #000 60px);
|
|
880
|
+
mask-image: linear-gradient(to bottom, transparent, rgb(0 0 0 / 41.4%) 20px, rgb(0 0 0 / 75.9%) 40px, #000 60px);
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .TabBar:is([data-background="hard"], [data-background="glass"])::before {
|
|
884
|
+
border-top-color: transparent;
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Tabs {
|
|
888
|
+
min-width: min(328px, 100%);
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Tabs > .Item {
|
|
892
|
+
flex: 1 1 auto;
|
|
893
|
+
justify-content: center;
|
|
894
|
+
gap: 0;
|
|
895
|
+
width: auto;
|
|
896
|
+
padding: 0 16px;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Tabs > .Item[data-selected] > .Label {
|
|
900
|
+
font-weight: var(--font-weight-bold);
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Tabs > .Item[data-selected] > .Icon {
|
|
904
|
+
color: var(--color-background-accent-solid);
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Tabs > .Item[data-disabled] {
|
|
908
|
+
color: color-mix(in srgb, var(--color-text) 38%, transparent);
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Badge {
|
|
912
|
+
box-sizing: content-box;
|
|
913
|
+
border: 1.33px solid var(--android-card);
|
|
914
|
+
line-height: 16px;
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Item[data-selected] .Badge {
|
|
918
|
+
border-color: color-mix(in srgb, var(--color-background-accent-solid) 9%, var(--android-card));
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
/* The circle beside the capsule: a symbol in the text color, the accent when selected; a prominent one the accent
|
|
922
|
+
with its ink. Held, it ripples as a bar's glass circle (android.css, Android press ripple): a circle of 20px round
|
|
923
|
+
its center in the list selector, a prominent one in its ink at 20%, as the reference's accent Done pill. */
|
|
924
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Item:is(.Search, .Prominent) {
|
|
925
|
+
--android-ripple-radius: 20px;
|
|
926
|
+
color: var(--color-text);
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Item:is(.Search, .Prominent)::before {
|
|
930
|
+
inset: 0;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Item:is(.Search, .Prominent)[data-selected] {
|
|
934
|
+
color: var(--color-background-accent-solid);
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Item:is(.Search, .Prominent)[data-selected]::before {
|
|
938
|
+
background: transparent;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Item:is(.Search, .Prominent)[data-ripple]:not([data-disabled])::before {
|
|
942
|
+
background-image: var(--android-ripple-image);
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Item.Prominent {
|
|
946
|
+
--android-ripple-ink: color-mix(in srgb, var(--color-text-accent-solid) 20%, transparent);
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Item.Prominent:not([data-disabled]) {
|
|
950
|
+
background-color: var(--color-background-accent-solid);
|
|
951
|
+
color: var(--color-text-accent-solid);
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
/* Minimized, the Android bar keeps every tab with its label. */
|
|
955
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .TabBar[data-minimized] .Tabs {
|
|
956
|
+
flex: 0 1 auto;
|
|
957
|
+
padding: var(--tab-bar-capsule-padding-block) var(--tab-bar-capsule-padding-inline);
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .TabBar[data-minimized] .Tabs > .Item,
|
|
961
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .TabBar[data-minimized] .Tabs > .Item[data-selected],
|
|
962
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .TabBar[data-minimized] .Tabs:not(:has(> .Item[data-selected])) > .Item:first-child {
|
|
963
|
+
display: flex;
|
|
964
|
+
flex: 1 1 auto;
|
|
965
|
+
width: auto;
|
|
966
|
+
height: var(--tab-bar-item-height);
|
|
967
|
+
padding: 0 16px;
|
|
968
|
+
color: var(--tab-bar-item-color);
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .TabBar[data-minimized] .Tabs > .Item::before, :where([data-plex-layout="phone"]) [data-platform="android"] .TabBar[data-minimized] .Tabs > .Item[data-selected]::before, :where([data-plex-layout="phone"]) [data-platform="android"] .TabBar[data-minimized] .Tabs:not(:has(> .Item[data-selected])) > .Item:first-child::before {
|
|
972
|
+
background: transparent;
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .TabBar[data-minimized] .Tabs > .Item[data-selected] {
|
|
976
|
+
color: var(--tab-bar-item-color-selected);
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .TabBar[data-minimized] .Tabs > .Item[data-selected]::before {
|
|
980
|
+
background: var(--tab-bar-item-background-selected);
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .TabBar[data-minimized] .Tabs .Badge {
|
|
984
|
+
top: var(--tab-bar-badge-top);
|
|
985
|
+
left: calc(50% + var(--tab-bar-badge-start));
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .TabBar[data-minimized] .Tabs .Label {
|
|
989
|
+
position: static;
|
|
990
|
+
width: auto;
|
|
991
|
+
height: auto;
|
|
992
|
+
overflow: hidden;
|
|
993
|
+
clip-path: none;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .TabBar[data-minimized] .Item:is(.Search, .Prominent) {
|
|
997
|
+
width: var(--tab-bar-search-size);
|
|
998
|
+
height: var(--tab-bar-search-size);
|
|
999
|
+
}
|
|
646
1000
|
}
|
|
@@ -1273,5 +1273,167 @@
|
|
|
1273
1273
|
.TabContent {
|
|
1274
1274
|
transition-duration: 0ms;
|
|
1275
1275
|
}
|
|
1276
|
+
}/* The Plex Android segmented control (the reference's content tabs): a 36 capsule of a bar's glass (android.css),
|
|
1277
|
+
the selected segment a 28 pill 4 inside it, the accent at 12% over the card; every label 15 Medium, the selected
|
|
1278
|
+
one in the accent's text, the others the text at 50%. */@media (max-width: 767px) {
|
|
1279
|
+
[data-platform="android"] .Tabs[data-variant="segmented"][data-orientation="horizontal"] {
|
|
1280
|
+
--segmented-control-size: 36px;
|
|
1281
|
+
--segmented-control-gutter: 4px;
|
|
1282
|
+
--segmented-control-gap: 0px;
|
|
1283
|
+
--segmented-control-radius: 100px;
|
|
1284
|
+
--segmented-control-option-radius: 14px;
|
|
1285
|
+
--segmented-control-option-gutter: 14px;
|
|
1286
|
+
--segmented-control-font-size: 15px;
|
|
1287
|
+
--segmented-control-line-height: 20px;
|
|
1288
|
+
--segmented-control-font-weight: var(--font-weight-medium);
|
|
1289
|
+
--segmented-control-active-font-weight: var(--font-weight-medium);
|
|
1290
|
+
--segmented-control-background: var(--android-bar-glass);
|
|
1291
|
+
--segmented-control-shadow: var(--android-bar-shadow);
|
|
1292
|
+
--segmented-control-thumb-background: var(--android-segment-thumb);
|
|
1293
|
+
--segmented-control-thumb-shadow: none;
|
|
1294
|
+
--color-text-secondary: color-mix(in srgb, var(--color-text) 50%, transparent);
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
[data-platform="android"] .Tabs[data-variant="segmented"][data-orientation="horizontal"] .Tab[data-state="on"] {
|
|
1298
|
+
color: var(--android-tab-selected);
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Tabs[data-variant="segmented"][data-orientation="horizontal"] {
|
|
1302
|
+
--segmented-control-size: 36px;
|
|
1303
|
+
--segmented-control-gutter: 4px;
|
|
1304
|
+
--segmented-control-gap: 0px;
|
|
1305
|
+
--segmented-control-radius: 100px;
|
|
1306
|
+
--segmented-control-option-radius: 14px;
|
|
1307
|
+
--segmented-control-option-gutter: 14px;
|
|
1308
|
+
--segmented-control-font-size: 15px;
|
|
1309
|
+
--segmented-control-line-height: 20px;
|
|
1310
|
+
--segmented-control-font-weight: var(--font-weight-medium);
|
|
1311
|
+
--segmented-control-active-font-weight: var(--font-weight-medium);
|
|
1312
|
+
--segmented-control-background: var(--android-bar-glass);
|
|
1313
|
+
--segmented-control-shadow: var(--android-bar-shadow);
|
|
1314
|
+
--segmented-control-thumb-background: var(--android-segment-thumb);
|
|
1315
|
+
--segmented-control-thumb-shadow: none;
|
|
1316
|
+
--color-text-secondary: color-mix(in srgb, var(--color-text) 50%, transparent);
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Tabs[data-variant="segmented"][data-orientation="horizontal"] .Tab[data-state="on"] {
|
|
1320
|
+
color: var(--android-tab-selected);
|
|
1321
|
+
}/* Android press ripple. Held, a segment ripples in its own pill and a tab of the underline in its own box (android.css,
|
|
1322
|
+
Android press ripple), in the list selector, as the reference's tabs: the capsule neither grows nor changes its glass
|
|
1323
|
+
and the held label keeps its color, which iOS does (touch.css). */@media (max-width: 767px) {
|
|
1324
|
+
[data-platform="android"] .Tabs.Tabs:is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"] {
|
|
1325
|
+
--segmented-control-pressed-scale: 1;
|
|
1326
|
+
--segmented-control-pressed-background: var(--segmented-control-background);
|
|
1327
|
+
--segmented-control-option-pressed-opacity: 1;
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
[data-platform="android"] .Tabs[data-variant="segmented"] .Tab[data-ripple]:not([disabled])::before {
|
|
1331
|
+
inset: 0;
|
|
1332
|
+
background: var(--android-ripple-image);
|
|
1333
|
+
opacity: 1;
|
|
1334
|
+
transform: none;
|
|
1335
|
+
transition: none;
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
[data-platform="android"] .Tabs[data-variant="underline"] .Tab[data-ripple]:not([disabled]) {
|
|
1339
|
+
background-image: var(--android-ripple-image);
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Tabs.Tabs:is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"] {
|
|
1343
|
+
--segmented-control-pressed-scale: 1;
|
|
1344
|
+
--segmented-control-pressed-background: var(--segmented-control-background);
|
|
1345
|
+
--segmented-control-option-pressed-opacity: 1;
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Tabs[data-variant="segmented"] .Tab[data-ripple]:not([disabled])::before {
|
|
1349
|
+
inset: 0;
|
|
1350
|
+
background: var(--android-ripple-image);
|
|
1351
|
+
opacity: 1;
|
|
1352
|
+
transform: none;
|
|
1353
|
+
transition: none;
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Tabs[data-variant="underline"] .Tab[data-ripple]:not([disabled]) {
|
|
1357
|
+
background-image: var(--android-ripple-image);
|
|
1358
|
+
}/* The Plex Android segmented control in a bar (a phone Toolbar, a sheet's header). touch.css gives a bar's control
|
|
1359
|
+
the 48 glass capsule of iOS (and a 40 one in a Toolbar.Row) with rules that outrank the ones above, so these name the
|
|
1360
|
+
root's platform and the bar. In a row of the bar (Toolbar.Row) it is the content's control above, as the reference
|
|
1361
|
+
draws its tabs under a bar. In the bar's own row it is the reference's in-bar capsule: 36 tall and as wide as its
|
|
1362
|
+
labels (a `block` one fills its slot), each segment its label and 12 at both ends, no gap; the selection a 28 pill 4
|
|
1363
|
+
inside it in the screen's gray (android.css, --android-bar-segment-thumb); every label 14 Medium, the selected one in
|
|
1364
|
+
the text and the others in the secondary text. The selection slides as in content, without the lens and the timing
|
|
1365
|
+
of iOS. */@media (max-width: 767px) {
|
|
1366
|
+
html[data-platform="android"] [data-toolbar] .Tabs.Tabs[data-variant="segmented"][data-orientation="horizontal"] {
|
|
1367
|
+
--segmented-control-size: 36px;
|
|
1368
|
+
--segmented-control-gutter: 4px;
|
|
1369
|
+
--segmented-control-gap: 0px;
|
|
1370
|
+
--segmented-control-option-gutter: 14px;
|
|
1371
|
+
--segmented-control-font-size: 15px;
|
|
1372
|
+
--segmented-control-line-height: 20px;
|
|
1373
|
+
--segmented-control-font-weight: var(--font-weight-medium);
|
|
1374
|
+
--segmented-control-active-font-weight: var(--font-weight-medium);
|
|
1375
|
+
--segmented-control-background: var(--android-bar-glass);
|
|
1376
|
+
--segmented-control-shadow: var(--android-bar-shadow);
|
|
1377
|
+
--segmented-control-thumb-background: var(--android-segment-thumb);
|
|
1378
|
+
--segmented-control-pressed-scale: 1;
|
|
1379
|
+
--segmented-control-pressed-background: var(--segmented-control-background);
|
|
1380
|
+
--segmented-control-option-pressed-opacity: 1;
|
|
1381
|
+
--segmented-control-thumb-lens-outset: initial;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
html[data-platform="android"] [data-toolbar] .Tabs.Tabs[data-variant="segmented"][data-orientation="horizontal"]:not([data-toolbar-row] *) {
|
|
1385
|
+
--tabs-equal-segments: 0;
|
|
1386
|
+
--segmented-control-option-gutter: 12px;
|
|
1387
|
+
--segmented-control-font-size: 14px;
|
|
1388
|
+
--segmented-control-line-height: 18px;
|
|
1389
|
+
--segmented-control-thumb-background: var(--android-bar-segment-thumb);
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
html[data-platform="android"] [data-toolbar] .Tabs.Tabs[data-variant="segmented"][data-orientation="horizontal"]:not([data-toolbar-row] *) .Tab[data-state="on"] {
|
|
1393
|
+
color: var(--color-text);
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
1397
|
+
html[data-platform="android"] [data-toolbar] .Tabs.Tabs[data-variant="segmented"][data-orientation="horizontal"] {
|
|
1398
|
+
--tabs-thumb-transition-duration: initial;
|
|
1399
|
+
--tabs-thumb-transition-easing: initial;
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1276
1402
|
}
|
|
1403
|
+
html[data-platform="android"] :where([data-plex-layout="phone"]) [data-toolbar] .Tabs.Tabs[data-variant="segmented"][data-orientation="horizontal"] {
|
|
1404
|
+
--segmented-control-size: 36px;
|
|
1405
|
+
--segmented-control-gutter: 4px;
|
|
1406
|
+
--segmented-control-gap: 0px;
|
|
1407
|
+
--segmented-control-option-gutter: 14px;
|
|
1408
|
+
--segmented-control-font-size: 15px;
|
|
1409
|
+
--segmented-control-line-height: 20px;
|
|
1410
|
+
--segmented-control-font-weight: var(--font-weight-medium);
|
|
1411
|
+
--segmented-control-active-font-weight: var(--font-weight-medium);
|
|
1412
|
+
--segmented-control-background: var(--android-bar-glass);
|
|
1413
|
+
--segmented-control-shadow: var(--android-bar-shadow);
|
|
1414
|
+
--segmented-control-thumb-background: var(--android-segment-thumb);
|
|
1415
|
+
--segmented-control-pressed-scale: 1;
|
|
1416
|
+
--segmented-control-pressed-background: var(--segmented-control-background);
|
|
1417
|
+
--segmented-control-option-pressed-opacity: 1;
|
|
1418
|
+
--segmented-control-thumb-lens-outset: initial;
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
html[data-platform="android"] :where([data-plex-layout="phone"]) [data-toolbar] .Tabs.Tabs[data-variant="segmented"][data-orientation="horizontal"]:not([data-toolbar-row] *) {
|
|
1422
|
+
--tabs-equal-segments: 0;
|
|
1423
|
+
--segmented-control-option-gutter: 12px;
|
|
1424
|
+
--segmented-control-font-size: 14px;
|
|
1425
|
+
--segmented-control-line-height: 18px;
|
|
1426
|
+
--segmented-control-thumb-background: var(--android-bar-segment-thumb);
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
html[data-platform="android"] :where([data-plex-layout="phone"]) [data-toolbar] .Tabs.Tabs[data-variant="segmented"][data-orientation="horizontal"]:not([data-toolbar-row] *) .Tab[data-state="on"] {
|
|
1430
|
+
color: var(--color-text);
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
1434
|
+
html[data-platform="android"] :where([data-plex-layout="phone"]) [data-toolbar] .Tabs.Tabs[data-variant="segmented"][data-orientation="horizontal"] {
|
|
1435
|
+
--tabs-thumb-transition-duration: initial;
|
|
1436
|
+
--tabs-thumb-transition-easing: initial;
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1277
1439
|
}
|