@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.
Files changed (47) hide show
  1. package/dist/es/components/Accordion/Accordion.module.css +74 -12
  2. package/dist/es/components/Alert/Alert.module.css +196 -0
  3. package/dist/es/components/Breadcrumb/Breadcrumb.module.css +32 -1
  4. package/dist/es/components/Button/Button.module.css +483 -5
  5. package/dist/es/components/Button/NavigationButton.module.css +195 -0
  6. package/dist/es/components/Checkbox/Checkbox.module.css +246 -0
  7. package/dist/es/components/CodeBlock/CodeBlock.module.css +15 -1
  8. package/dist/es/components/DatePicker/Calendar.module.css +216 -0
  9. package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +19 -0
  10. package/dist/es/components/DateRangePicker/Calendar.module.css +200 -0
  11. package/dist/es/components/DateRangePicker/Trigger.module.css +15 -1
  12. package/dist/es/components/Dialog/Dialog.module.css +456 -0
  13. package/dist/es/components/Field/Field.module.css +713 -0
  14. package/dist/es/components/FieldGroup/FieldGroup.module.css +272 -0
  15. package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +49 -0
  16. package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +81 -0
  17. package/dist/es/components/Input/Input.module.css +184 -0
  18. package/dist/es/components/InputGroup/InputGroup.module.css +17 -0
  19. package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +60 -0
  20. package/dist/es/components/Menu/Menu.module.css +244 -0
  21. package/dist/es/components/NavigationRow/NavigationRow.module.css +82 -0
  22. package/dist/es/components/Page/Page.module.css +278 -0
  23. package/dist/es/components/PageControl/PageControl.module.css +35 -0
  24. package/dist/es/components/Popover/Popover.module.css +20 -0
  25. package/dist/es/components/RadioGroup/RadioGroup.module.css +151 -0
  26. package/dist/es/components/Select/Select.module.css +315 -0
  27. package/dist/es/components/SelectControl/SelectControl.module.css +104 -0
  28. package/dist/es/components/Sidebar/Sidebar.module.css +210 -4
  29. package/dist/es/components/Skeleton/Skeleton.module.css +50 -0
  30. package/dist/es/components/Slider/Slider.module.css +12 -1
  31. package/dist/es/components/Switch/Switch.module.css +143 -0
  32. package/dist/es/components/TabBar/TabBar.module.css +354 -0
  33. package/dist/es/components/Tabs/Tabs.module.css +162 -0
  34. package/dist/es/components/Tip/Tip.module.css +225 -0
  35. package/dist/es/components/Toast/Toast.module.css +207 -0
  36. package/dist/es/components/Toolbar/Toolbar.module.css +1542 -0
  37. package/dist/es/components/Tooltip/Tooltip.module.css +44 -0
  38. package/dist/es/styles/android.css +882 -0
  39. package/dist/es/styles/touch.css +672 -0
  40. package/dist/es/styles/variables-components.css +4 -0
  41. package/dist/es/styles/variables-semantic.css +28 -0
  42. package/dist/es/tokens/resolve.js +2 -0
  43. package/dist/es/tokens/resolve.js.map +1 -1
  44. package/dist/es/tokens/tokens.generated.js +64 -10
  45. package/dist/es/tokens/tokens.generated.js.map +1 -1
  46. package/dist/types/tokens/resolve.d.ts +2 -0
  47. package/package.json +1 -1
@@ -303,6 +303,146 @@
303
303
  .Body > [data-sortable]:has(> [data-swipe-actions][data-revealed]:last-child) + [data-row]::after {
304
304
  opacity: 0;
305
305
  }
306
+
307
+ /* The Plex Android look (`data-platform="android"`), as @plexui/react-native's List on Android: a section of a
308
+ settings screen, one card of 16dp corners (the row tokens are in android.css). The header stands inside the card
309
+ over the rows: a 40dp line of 15sp Medium in the accent 21 in (14 above the text), its description 14sp in the
310
+ secondary label under it (6 below), an action at its end 15sp Medium in its color with a 48dp target. The footer
311
+ stands under the card, 14sp in the secondary label 13 in, 11 above and 17 below. The line between rows runs from
312
+ the text's start to the card's end, in Android's divider gray. Cards stand 12 apart; after a footer its own 17
313
+ parts them. */
314
+ [data-platform="android"] .FieldGroup {
315
+ --field-group-radius: 16px;
316
+ --field-group-title-color: var(--android-accent-text);
317
+ --field-group-title-font-size: 15px;
318
+ --field-group-title-line-height: 20px;
319
+ --field-group-title-font-weight: var(--font-weight-medium);
320
+ --field-group-title-padding-inline: 0px;
321
+ --field-group-description-font-size: 14px;
322
+ --field-group-description-line-height: 18px;
323
+ --field-group-footer-font-size: 14px;
324
+ --field-group-footer-line-height: 18px;
325
+ --field-group-footer-paragraph-gap: 18px;
326
+ --field-group-footer-padding: 11px 13px 17px;
327
+ --field-group-separator-inset-end: 0px;
328
+ }
329
+
330
+ /* A prominent header: 16sp Medium in the text color */
331
+ [data-platform="android"] .FieldGroup[data-header-prominence="increased"] {
332
+ --field-group-title-color: var(--color-text);
333
+ --field-group-title-font-size: 16px;
334
+ --field-group-title-line-height: 20px;
335
+ --field-group-title-font-weight: var(--font-weight-medium);
336
+ }
337
+
338
+ [data-platform="android"] .FieldGroup > .Header {
339
+ align-items: flex-start;
340
+ min-height: 40px;
341
+ padding: 14px var(--list-row-inset) 0;
342
+ border-start-start-radius: var(--field-group-radius);
343
+ border-start-end-radius: var(--field-group-radius);
344
+ background: var(--field-group-background);
345
+ }
346
+
347
+ /* 6 under the title closes its 40dp line, and under the description */
348
+ [data-platform="android"] .FieldGroup > .Header .Title {
349
+ padding-bottom: calc(40px - 14px - var(--field-group-title-line-height));
350
+ }
351
+
352
+ [data-platform="android"] .FieldGroup > .Header .Description {
353
+ padding-bottom: 6px;
354
+ }
355
+
356
+ [data-platform="android"] .FieldGroup:has(> .Header) > .Body {
357
+ border-start-start-radius: 0;
358
+ border-start-end-radius: 0;
359
+ }
360
+
361
+ /* Under a header the first row meets the header, not the card's corners */
362
+ [data-platform="android"] .FieldGroup:has(> .Header) > .Body > [data-row]:first-child,
363
+ [data-platform="android"] .FieldGroup:has(> .Header) > .Body > [data-sortable]:first-child > [data-row]:first-child,
364
+ [data-platform="android"] .FieldGroup:has(> .Header) > .Body > [data-swipe-actions]:first-child,
365
+ [data-platform="android"] .FieldGroup:has(> .Header) > .Body > [data-row]:first-child > :is(button, a)[data-block][data-variant="ghost"]::before,
366
+ [data-platform="android"] .FieldGroup:has(> .Header) > .Body > [data-sortable]:first-child > [data-row]:first-child > :is(button, a)[data-block][data-variant="ghost"]::before {
367
+ border-start-start-radius: 0;
368
+ border-start-end-radius: 0;
369
+ }
370
+
371
+ /* The header's text action: 15sp Medium in its color (the accent), on the title's line, its target 48 */
372
+ [data-platform="android"] .FieldGroup > .Header > button[data-variant="ghost"]:not([data-uniform]) {
373
+ --button-size: 48px;
374
+ --button-font-size: 15px;
375
+ --button-line-height: 20px;
376
+ --button-font-weight: var(--font-weight-medium);
377
+
378
+ align-self: flex-start;
379
+ min-width: 48px;
380
+ margin-block: -14px;
381
+ margin-inline-end: 0;
382
+ }
383
+
384
+ [data-platform="android"] .FieldGroup > .Header > button[data-variant="ghost"]:not([data-uniform]):is([data-color="primary"], [data-color="secondary"], [data-color="info"]) {
385
+ --button-text-color: var(--android-accent-text);
386
+ --button-text-color-hover: var(--android-accent-text);
387
+ }
388
+
389
+ [data-platform="android"] .FieldGroup .Footer a[href] {
390
+ color: var(--android-accent-text);
391
+ }
392
+
393
+ [data-platform="android"] .Body > [data-row] + [data-row]::after,
394
+ [data-platform="android"] .Body > [data-sortable] > [data-row] + [data-row]::after,
395
+ [data-platform="android"] .Body > [data-sortable] + [data-row]::after,
396
+ [data-platform="android"] .Body > [data-row] + [data-sortable] > [data-row]:first-child::after {
397
+ background: var(--android-divider);
398
+ }
399
+
400
+ [data-platform="android"] :is(.FieldGroup, [role="radiogroup"]:has(> .FieldGroup:only-child)) + :is(.FieldGroup, [role="radiogroup"]:has(> .FieldGroup:only-child)) {
401
+ /* 12 apart, 23 less than iOS's 35 rows to rows, so a --field-group-gap that gives a parent's gap back still does */
402
+ margin-top: calc(var(--field-group-stack-spacing, 0) * (var(--field-group-gap, 35px) - 23px));
403
+ }
404
+
405
+ [data-platform="android"] :is(.FieldGroup:has(> .Footer), [role="radiogroup"]:has(> .FieldGroup:only-child > .Footer)) + :is(.FieldGroup, [role="radiogroup"]:has(> .FieldGroup:only-child)) {
406
+ margin-top: calc(var(--field-group-stack-spacing, 0) * (var(--field-group-gap, 35px) - 35px));
407
+ }
408
+
409
+ /* A row of the card ripples in the ink of a card's row, black at 4.7% (android.css, Android press ripple). A
410
+ full-row action is such a row: held, it ripples over the whole row (the Button draws it on its ::after), to the
411
+ card's corners on the first and last rows, with no flat fill under it. */
412
+ [data-platform="android"] .Body > :is([data-row], [data-sortable] > [data-row], [data-swipe-actions] [data-row]) {
413
+ --android-ripple-ink: var(--android-ripple-card-color);
414
+ }
415
+
416
+ [data-platform="android"] .Body > [data-row] > :is(button, a)[data-block][data-variant="ghost"],
417
+ [data-platform="android"] .Body > [data-sortable] > [data-row] > :is(button, a)[data-block][data-variant="ghost"],
418
+ [data-platform="android"] .Body > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"],
419
+ [data-platform="android"] .Body > [data-sortable] > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"] {
420
+ --android-button-press: var(--android-ripple-card-color);
421
+ --button-press-fill-opacity: 0;
422
+ /* Nor a tint of its color: the layer under the ripple is clear at rest, held and while its popup opens, which a
423
+ colored ghost (a danger or an info row) would otherwise fade through as it changes state */
424
+ --button-background-color: transparent;
425
+ }
426
+
427
+ [data-platform="android"] .Body > [data-row]:first-child > :is(button, a)[data-block][data-variant="ghost"]::after,
428
+ [data-platform="android"] .Body > [data-sortable]:first-child > [data-row]:first-child > :is(button, a)[data-block][data-variant="ghost"]::after,
429
+ [data-platform="android"] .Body > [data-row]:first-child > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"]::after {
430
+ border-start-start-radius: var(--field-group-radius);
431
+ border-start-end-radius: var(--field-group-radius);
432
+ }
433
+
434
+ [data-platform="android"] .Body > [data-row]:last-child > :is(button, a)[data-block][data-variant="ghost"]::after,
435
+ [data-platform="android"] .Body > [data-sortable]:last-child > [data-row]:last-child > :is(button, a)[data-block][data-variant="ghost"]::after,
436
+ [data-platform="android"] .Body > [data-row]:last-child > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"]::after {
437
+ border-end-start-radius: var(--field-group-radius);
438
+ border-end-end-radius: var(--field-group-radius);
439
+ }
440
+
441
+ [data-platform="android"] .FieldGroup:has(> .Header) > .Body > [data-row]:first-child > :is(button, a)[data-block][data-variant="ghost"]::after,
442
+ [data-platform="android"] .FieldGroup:has(> .Header) > .Body > [data-sortable]:first-child > [data-row]:first-child > :is(button, a)[data-block][data-variant="ghost"]::after {
443
+ border-start-start-radius: 0;
444
+ border-start-end-radius: 0;
445
+ }
306
446
  }
307
447
  :where([data-plex-layout="phone"]) .FieldGroup {
308
448
  --field-group-description-color: var(--mobile-label-secondary, var(--color-text-secondary));
@@ -469,6 +609,138 @@
469
609
  :where([data-plex-layout="phone"]) .Body > [data-swipe-actions][data-revealed] + [data-sortable] > [data-row]:first-child::after,
470
610
  :where([data-plex-layout="phone"]) .Body > [data-sortable]:has(> [data-swipe-actions][data-revealed]:last-child) + [data-row]::after {
471
611
  opacity: 0;
612
+ }
613
+
614
+ /* The Plex Android look (`data-platform="android"`), as @plexui/react-native's List on Android: a section of a
615
+ settings screen, one card of 16dp corners (the row tokens are in android.css). The header stands inside the card
616
+ over the rows: a 40dp line of 15sp Medium in the accent 21 in (14 above the text), its description 14sp in the
617
+ secondary label under it (6 below), an action at its end 15sp Medium in its color with a 48dp target. The footer
618
+ stands under the card, 14sp in the secondary label 13 in, 11 above and 17 below. The line between rows runs from
619
+ the text's start to the card's end, in Android's divider gray. Cards stand 12 apart; after a footer its own 17
620
+ parts them. */
621
+ :where([data-plex-layout="phone"]) [data-platform="android"] .FieldGroup {
622
+ --field-group-radius: 16px;
623
+ --field-group-title-color: var(--android-accent-text);
624
+ --field-group-title-font-size: 15px;
625
+ --field-group-title-line-height: 20px;
626
+ --field-group-title-font-weight: var(--font-weight-medium);
627
+ --field-group-title-padding-inline: 0px;
628
+ --field-group-description-font-size: 14px;
629
+ --field-group-description-line-height: 18px;
630
+ --field-group-footer-font-size: 14px;
631
+ --field-group-footer-line-height: 18px;
632
+ --field-group-footer-paragraph-gap: 18px;
633
+ --field-group-footer-padding: 11px 13px 17px;
634
+ --field-group-separator-inset-end: 0px;
635
+ }
636
+
637
+ /* A prominent header: 16sp Medium in the text color */
638
+ :where([data-plex-layout="phone"]) [data-platform="android"] .FieldGroup[data-header-prominence="increased"] {
639
+ --field-group-title-color: var(--color-text);
640
+ --field-group-title-font-size: 16px;
641
+ --field-group-title-line-height: 20px;
642
+ --field-group-title-font-weight: var(--font-weight-medium);
643
+ }
644
+
645
+ :where([data-plex-layout="phone"]) [data-platform="android"] .FieldGroup > .Header {
646
+ align-items: flex-start;
647
+ min-height: 40px;
648
+ padding: 14px var(--list-row-inset) 0;
649
+ border-start-start-radius: var(--field-group-radius);
650
+ border-start-end-radius: var(--field-group-radius);
651
+ background: var(--field-group-background);
652
+ }
653
+
654
+ /* 6 under the title closes its 40dp line, and under the description */
655
+ :where([data-plex-layout="phone"]) [data-platform="android"] .FieldGroup > .Header .Title {
656
+ padding-bottom: calc(40px - 14px - var(--field-group-title-line-height));
657
+ }
658
+
659
+ :where([data-plex-layout="phone"]) [data-platform="android"] .FieldGroup > .Header .Description {
660
+ padding-bottom: 6px;
661
+ }
662
+
663
+ :where([data-plex-layout="phone"]) [data-platform="android"] .FieldGroup:has(> .Header) > .Body {
664
+ border-start-start-radius: 0;
665
+ border-start-end-radius: 0;
666
+ }
667
+
668
+ /* Under a header the first row meets the header, not the card's corners */
669
+ :where([data-plex-layout="phone"]) [data-platform="android"] .FieldGroup:has(> .Header) > .Body > [data-row]:first-child,
670
+ :where([data-plex-layout="phone"]) [data-platform="android"] .FieldGroup:has(> .Header) > .Body > [data-sortable]:first-child > [data-row]:first-child,
671
+ :where([data-plex-layout="phone"]) [data-platform="android"] .FieldGroup:has(> .Header) > .Body > [data-swipe-actions]:first-child,
672
+ :where([data-plex-layout="phone"]) [data-platform="android"] .FieldGroup:has(> .Header) > .Body > [data-row]:first-child > :is(button, a)[data-block][data-variant="ghost"]::before,
673
+ :where([data-plex-layout="phone"]) [data-platform="android"] .FieldGroup:has(> .Header) > .Body > [data-sortable]:first-child > [data-row]:first-child > :is(button, a)[data-block][data-variant="ghost"]::before {
674
+ border-start-start-radius: 0;
675
+ border-start-end-radius: 0;
676
+ }
677
+
678
+ /* The header's text action: 15sp Medium in its color (the accent), on the title's line, its target 48 */
679
+ :where([data-plex-layout="phone"]) [data-platform="android"] .FieldGroup > .Header > button[data-variant="ghost"]:not([data-uniform]) {
680
+ --button-size: 48px;
681
+ --button-font-size: 15px;
682
+ --button-line-height: 20px;
683
+ --button-font-weight: var(--font-weight-medium);
684
+
685
+ align-self: flex-start;
686
+ min-width: 48px;
687
+ margin-block: -14px;
688
+ margin-inline-end: 0;
689
+ }
690
+
691
+ :where([data-plex-layout="phone"]) [data-platform="android"] .FieldGroup > .Header > button[data-variant="ghost"]:not([data-uniform]):is([data-color="primary"], [data-color="secondary"], [data-color="info"]) {
692
+ --button-text-color: var(--android-accent-text);
693
+ --button-text-color-hover: var(--android-accent-text);
694
+ }
695
+
696
+ :where([data-plex-layout="phone"]) [data-platform="android"] .FieldGroup .Footer a[href] {
697
+ color: var(--android-accent-text);
698
+ }
699
+
700
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Body > [data-row] + [data-row]::after,
701
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Body > [data-sortable] > [data-row] + [data-row]::after,
702
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Body > [data-sortable] + [data-row]::after,
703
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Body > [data-row] + [data-sortable] > [data-row]:first-child::after {
704
+ background: var(--android-divider);
705
+ }
706
+
707
+ :where([data-plex-layout="phone"]) [data-platform="android"] :is(.FieldGroup, [role="radiogroup"]:has(> .FieldGroup:only-child)) + :is(.FieldGroup, [role="radiogroup"]:has(> .FieldGroup:only-child)) {
708
+ /* 12 apart, 23 less than iOS's 35 rows to rows, so a --field-group-gap that gives a parent's gap back still does */
709
+ margin-top: calc(var(--field-group-stack-spacing, 0) * (var(--field-group-gap, 35px) - 23px));
710
+ }
711
+
712
+ :where([data-plex-layout="phone"]) [data-platform="android"] :is(.FieldGroup:has(> .Footer), [role="radiogroup"]:has(> .FieldGroup:only-child > .Footer)) + :is(.FieldGroup, [role="radiogroup"]:has(> .FieldGroup:only-child)) {
713
+ margin-top: calc(var(--field-group-stack-spacing, 0) * (var(--field-group-gap, 35px) - 35px));
714
+ }
715
+
716
+ /* A row of the card ripples in the ink of a card's row, black at 4.7% (android.css, Android press ripple). A
717
+ full-row action is such a row: held, it ripples over the whole row (the Button draws it on its ::after), to the
718
+ card's corners on the first and last rows, with no flat fill under it. */
719
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Body > :is([data-row], [data-sortable] > [data-row], [data-swipe-actions] [data-row]) {
720
+ --android-ripple-ink: var(--android-ripple-card-color);
721
+ }
722
+
723
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Body > [data-row] > :is(button, a)[data-block][data-variant="ghost"], :where([data-plex-layout="phone"]) [data-platform="android"] .Body > [data-sortable] > [data-row] > :is(button, a)[data-block][data-variant="ghost"], :where([data-plex-layout="phone"]) [data-platform="android"] .Body > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"], :where([data-plex-layout="phone"]) [data-platform="android"] .Body > [data-sortable] > [data-row] > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"] {
724
+ --android-button-press: var(--android-ripple-card-color);
725
+ --button-press-fill-opacity: 0;
726
+ /* Nor a tint of its color: the layer under the ripple is clear at rest, held and while its popup opens, which a
727
+ colored ghost (a danger or an info row) would otherwise fade through as it changes state */
728
+ --button-background-color: transparent;
729
+ }
730
+
731
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Body > [data-row]:first-child > :is(button, a)[data-block][data-variant="ghost"]::after, :where([data-plex-layout="phone"]) [data-platform="android"] .Body > [data-sortable]:first-child > [data-row]:first-child > :is(button, a)[data-block][data-variant="ghost"]::after, :where([data-plex-layout="phone"]) [data-platform="android"] .Body > [data-row]:first-child > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"]::after {
732
+ border-start-start-radius: var(--field-group-radius);
733
+ border-start-end-radius: var(--field-group-radius);
734
+ }
735
+
736
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Body > [data-row]:last-child > :is(button, a)[data-block][data-variant="ghost"]::after, :where([data-plex-layout="phone"]) [data-platform="android"] .Body > [data-sortable]:last-child > [data-row]:last-child > :is(button, a)[data-block][data-variant="ghost"]::after, :where([data-plex-layout="phone"]) [data-platform="android"] .Body > [data-row]:last-child > [data-swipe-content] > :is(button, a)[data-block][data-variant="ghost"]::after {
737
+ border-end-start-radius: var(--field-group-radius);
738
+ border-end-end-radius: var(--field-group-radius);
739
+ }
740
+
741
+ :where([data-plex-layout="phone"]) [data-platform="android"] .FieldGroup:has(> .Header) > .Body > [data-row]:first-child > :is(button, a)[data-block][data-variant="ghost"]::after, :where([data-plex-layout="phone"]) [data-platform="android"] .FieldGroup:has(> .Header) > .Body > [data-sortable]:first-child > [data-row]:first-child > :is(button, a)[data-block][data-variant="ghost"]::after {
742
+ border-start-start-radius: 0;
743
+ border-start-end-radius: 0;
472
744
  }/* Explanations belong below the group, with the list's own text insets. */.Footer {
473
745
  padding: var(--field-group-footer-padding, 8px 0 0);
474
746
  color: var(--field-group-description-color, var(--color-text-secondary));
@@ -295,5 +295,54 @@
295
295
  .LabelText {
296
296
  transition: none;
297
297
  }
298
+ }/* The Plex Android look (android.css holds the sizes and colors): the label is 16 at rest, 12 once it floats; the
299
+ line is 1.5 while the field is edited or invalid. With the label inside, the field is filled with the text at
300
+ 5% and draws no line (an error's line only), its label in the accent while it is edited. */@media (max-width: 767px) {
301
+ [data-platform="android"] .LabelText {
302
+ font-size: 16px;
303
+ }
304
+
305
+ [data-platform="android"] .FieldFootprint:is([data-focused], [data-invalid]):not([data-disabled]) {
306
+ box-shadow: inset 0 0 0 0.5px var(--input-state-color);
307
+ }
308
+
309
+ [data-platform="android"] .Root[data-label-placement="inside"] {
310
+ --floating-input-background: color-mix(in srgb, var(--color-text) 5%, transparent);
311
+ --floating-input-border-color: transparent;
312
+ --floating-input-border-color-hover: transparent;
313
+ --floating-input-border-color-focus: transparent;
314
+ --floating-input-label-color-focus: var(--android-accent-text);
315
+ }
316
+
317
+ [data-platform="android"] .Root[data-label-placement="inside"] .FieldFootprint:not([data-invalid]) {
318
+ box-shadow: none;
319
+ }
320
+
321
+ [data-platform="android"] .Root[data-label-placement="inside"] .TypeableLabel::before {
322
+ background-color: transparent;
323
+ }
298
324
  }
325
+ :where([data-plex-layout="phone"]) [data-platform="android"] .LabelText {
326
+ font-size: 16px;
327
+ }
328
+
329
+ :where([data-plex-layout="phone"]) [data-platform="android"] .FieldFootprint:is([data-focused], [data-invalid]):not([data-disabled]) {
330
+ box-shadow: inset 0 0 0 0.5px var(--input-state-color);
331
+ }
332
+
333
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Root[data-label-placement="inside"] {
334
+ --floating-input-background: color-mix(in srgb, var(--color-text) 5%, transparent);
335
+ --floating-input-border-color: transparent;
336
+ --floating-input-border-color-hover: transparent;
337
+ --floating-input-border-color-focus: transparent;
338
+ --floating-input-label-color-focus: var(--android-accent-text);
339
+ }
340
+
341
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Root[data-label-placement="inside"] .FieldFootprint:not([data-invalid]) {
342
+ box-shadow: none;
343
+ }
344
+
345
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Root[data-label-placement="inside"] .TypeableLabel::before {
346
+ background-color: transparent;
347
+ }
299
348
  }
@@ -200,5 +200,86 @@
200
200
  .LabelText {
201
201
  transition: none;
202
202
  }
203
+ }/* The Plex Android look (android.css holds the sizes and colors): the label is 16 at rest, 12 once it floats; the
204
+ line is 1.5 while the field is edited or invalid. With the label inside, the field is filled with the text at
205
+ 5% and draws no line (an error's line only), its label in the accent while it is edited. */@media (max-width: 767px) {
206
+ [data-platform="android"] .LabelText {
207
+ font-size: 16px;
208
+ }
209
+
210
+ [data-platform="android"] .FieldFootprint:is([data-focused], [data-open], [data-invalid]):not([data-disabled]) {
211
+ box-shadow: inset 0 0 0 0.5px var(--input-state-color);
212
+ }
213
+
214
+ [data-platform="android"] .Root[data-label-placement="inside"] {
215
+ --floating-input-background: color-mix(in srgb, var(--color-text) 5%, transparent);
216
+ --floating-input-border-color: transparent;
217
+ --floating-input-border-color-hover: transparent;
218
+ --floating-input-border-color-focus: transparent;
219
+ --floating-input-label-color-focus: var(--android-accent-text);
220
+ }
221
+
222
+ [data-platform="android"] .Root[data-label-placement="inside"] .FieldFootprint:not([data-invalid]) {
223
+ box-shadow: none;
224
+ }
225
+
226
+ [data-platform="android"] .Root[data-label-placement="inside"] .TypeableLabel::before {
227
+ background-color: transparent;
228
+ }
229
+
230
+ /* Android's menu arrow (arrow_drop_down): 24, 12 from the end, in the secondary text */
231
+ [data-platform="android"] .DropdownIcon {
232
+ width: 24px;
233
+ height: 24px;
234
+ margin-inline-end: -2px;
235
+ background-color: currentcolor;
236
+ color: var(--color-text-secondary);
237
+ opacity: 1;
238
+ -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") center / 24px 24px no-repeat;
239
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") center / 24px 24px no-repeat;
240
+ }
241
+
242
+ [data-platform="android"] .DropdownIcon > * {
243
+ display: none;
244
+ }
203
245
  }
246
+ :where([data-plex-layout="phone"]) [data-platform="android"] .LabelText {
247
+ font-size: 16px;
248
+ }
249
+
250
+ :where([data-plex-layout="phone"]) [data-platform="android"] .FieldFootprint:is([data-focused], [data-open], [data-invalid]):not([data-disabled]) {
251
+ box-shadow: inset 0 0 0 0.5px var(--input-state-color);
252
+ }
253
+
254
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Root[data-label-placement="inside"] {
255
+ --floating-input-background: color-mix(in srgb, var(--color-text) 5%, transparent);
256
+ --floating-input-border-color: transparent;
257
+ --floating-input-border-color-hover: transparent;
258
+ --floating-input-border-color-focus: transparent;
259
+ --floating-input-label-color-focus: var(--android-accent-text);
260
+ }
261
+
262
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Root[data-label-placement="inside"] .FieldFootprint:not([data-invalid]) {
263
+ box-shadow: none;
264
+ }
265
+
266
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Root[data-label-placement="inside"] .TypeableLabel::before {
267
+ background-color: transparent;
268
+ }
269
+
270
+ /* Android's menu arrow (arrow_drop_down): 24, 12 from the end, in the secondary text */
271
+ :where([data-plex-layout="phone"]) [data-platform="android"] .DropdownIcon {
272
+ width: 24px;
273
+ height: 24px;
274
+ margin-inline-end: -2px;
275
+ background-color: currentcolor;
276
+ color: var(--color-text-secondary);
277
+ opacity: 1;
278
+ -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") center / 24px 24px no-repeat;
279
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") center / 24px 24px no-repeat;
280
+ }
281
+
282
+ :where([data-plex-layout="phone"]) [data-platform="android"] .DropdownIcon > * {
283
+ display: none;
284
+ }
204
285
  }
@@ -733,6 +733,78 @@
733
733
  width: 19px;
734
734
  height: 19px;
735
735
  }
736
+
737
+ /* The Plex Android field (@plexui/react-native's Input on Android): 50 tall at every size, corners of 8 (a pill's
738
+ round), the text 16 from 14 in (12 after a leading symbol, the text 12 after it), the hint a light gray, the
739
+ caret in the accent (the text's color in a ghost field). An outlined field draws a hairline in a light gray (the
740
+ text at 24% at night) that becomes a 1.5 line in the accent while it is edited, in the error color when invalid;
741
+ a soft field is the text at 5% with no line; disabled, the whole field fades to half. A search field in the
742
+ content (soft, led by its magnifier) is a 40 pill of the text at 5% (7% at night), its 24 magnifier 12 in at
743
+ 60%, the text 14 at 48, the hint at 50% (android.css takes the glass off). A row and a bar keep their own
744
+ fields. */
745
+ [data-platform="android"] .Container:not(:where([data-row] *, [data-toolbar] *)) {
746
+ --input-size: 50px;
747
+ --input-radius: 8px;
748
+ --input-gutter: 14px;
749
+ --input-gap: 12px;
750
+ --input-font-size: 16px;
751
+ --input-adornment-offset: 0px;
752
+ --input-outline-border-color: var(--android-field-line);
753
+ --input-outline-border-color-hover: var(--android-field-line);
754
+ --input-outline-border-color-focus: var(--android-accent-text);
755
+ --input-border-color-invalid: var(--android-danger-text);
756
+ --input-soft-background-color: color-mix(in srgb, var(--color-text) 5%, transparent);
757
+ --input-placeholder-text-color: var(--android-hint);
758
+ caret-color: var(--android-accent-text);
759
+ }
760
+
761
+ [data-platform="android"] .Container:not(:where([data-row] *, [data-toolbar] *))[data-pill] {
762
+ --input-radius: var(--radius-full);
763
+ }
764
+
765
+ [data-platform="android"] .Container:not(:where([data-row] *, [data-toolbar] *))[data-variant="ghost"] {
766
+ caret-color: var(--color-text);
767
+ }
768
+
769
+ [data-platform="android"] .Container:not(:where([data-row] *, [data-toolbar] *))[data-variant="outline"]:not([data-disabled])[data-focused="true"] {
770
+ box-shadow: 0 0 0 1.5px var(--input-outline-border-color-focus) inset;
771
+ }
772
+
773
+ [data-platform="android"] .Container:not(:where([data-row] *, [data-toolbar] *))[data-variant]:not([data-disabled])[data-invalid][data-focused="true"] {
774
+ box-shadow: 0 0 0 1.5px var(--input-border-color-invalid) inset;
775
+ }
776
+
777
+ [data-platform="android"] .Container:not(:where([data-row] *, [data-toolbar] *))[data-disabled] {
778
+ opacity: 0.5;
779
+ }
780
+
781
+ [data-platform="android"] .Container:not(:where([data-row] *, [data-toolbar] *))[data-disabled] > .Input,
782
+ [data-platform="android"] .Container:not(:where([data-row] *, [data-toolbar] *))[data-disabled] > .Clear {
783
+ opacity: 1;
784
+ }
785
+
786
+ [data-platform="android"] .Container[data-has-start-adornment]:not(:where([data-row] *, [data-toolbar] *)) {
787
+ --input-gutter: 14px;
788
+
789
+ padding-left: 12px;
790
+ }
791
+
792
+ [data-platform="android"] .Container[data-variant="soft"][data-has-start-adornment]:not(:where([data-row] *, [data-toolbar] *)) {
793
+ --input-size: 40px;
794
+ --input-radius: var(--radius-full);
795
+ --input-gap: 12px;
796
+ --input-font-size: 14px;
797
+ --input-placeholder-text-color: color-mix(in srgb, var(--color-text) 50%, transparent);
798
+ --input-soft-background-color: var(--android-search-fill);
799
+ --control-gutter-pill-scaling: 1;
800
+ }
801
+
802
+ [data-platform="android"] .Container[data-variant="soft"][data-has-start-adornment]:not(:where([data-row] *, [data-toolbar] *)) > svg {
803
+ flex: none;
804
+ width: 24px;
805
+ height: 24px;
806
+ color: color-mix(in srgb, var(--color-text) 60%, transparent);
807
+ }
736
808
  }
737
809
  /* A search field (type="search") that stands in the content: under a large title or at the top of a sheet. It is
738
810
  the search field of a Toolbar, one look wherever it stands (owner 13.11 «почему разный стиль? должно быть
@@ -896,6 +968,77 @@
896
968
  :where([data-plex-layout="phone"]) :where([data-row]) .Container > .AdornmentButton:last-child > svg {
897
969
  width: 19px;
898
970
  height: 19px;
971
+ }
972
+
973
+ /* The Plex Android field (@plexui/react-native's Input on Android): 50 tall at every size, corners of 8 (a pill's
974
+ round), the text 16 from 14 in (12 after a leading symbol, the text 12 after it), the hint a light gray, the
975
+ caret in the accent (the text's color in a ghost field). An outlined field draws a hairline in a light gray (the
976
+ text at 24% at night) that becomes a 1.5 line in the accent while it is edited, in the error color when invalid;
977
+ a soft field is the text at 5% with no line; disabled, the whole field fades to half. A search field in the
978
+ content (soft, led by its magnifier) is a 40 pill of the text at 5% (7% at night), its 24 magnifier 12 in at
979
+ 60%, the text 14 at 48, the hint at 50% (android.css takes the glass off). A row and a bar keep their own
980
+ fields. */
981
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Container:not(:where([data-row] *, [data-toolbar] *)) {
982
+ --input-size: 50px;
983
+ --input-radius: 8px;
984
+ --input-gutter: 14px;
985
+ --input-gap: 12px;
986
+ --input-font-size: 16px;
987
+ --input-adornment-offset: 0px;
988
+ --input-outline-border-color: var(--android-field-line);
989
+ --input-outline-border-color-hover: var(--android-field-line);
990
+ --input-outline-border-color-focus: var(--android-accent-text);
991
+ --input-border-color-invalid: var(--android-danger-text);
992
+ --input-soft-background-color: color-mix(in srgb, var(--color-text) 5%, transparent);
993
+ --input-placeholder-text-color: var(--android-hint);
994
+ caret-color: var(--android-accent-text);
995
+ }
996
+
997
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Container:not(:where([data-row] *, [data-toolbar] *))[data-pill] {
998
+ --input-radius: var(--radius-full);
999
+ }
1000
+
1001
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Container:not(:where([data-row] *, [data-toolbar] *))[data-variant="ghost"] {
1002
+ caret-color: var(--color-text);
1003
+ }
1004
+
1005
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Container:not(:where([data-row] *, [data-toolbar] *))[data-variant="outline"]:not([data-disabled])[data-focused="true"] {
1006
+ box-shadow: 0 0 0 1.5px var(--input-outline-border-color-focus) inset;
1007
+ }
1008
+
1009
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Container:not(:where([data-row] *, [data-toolbar] *))[data-variant]:not([data-disabled])[data-invalid][data-focused="true"] {
1010
+ box-shadow: 0 0 0 1.5px var(--input-border-color-invalid) inset;
1011
+ }
1012
+
1013
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Container:not(:where([data-row] *, [data-toolbar] *))[data-disabled] {
1014
+ opacity: 0.5;
1015
+ }
1016
+
1017
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Container:not(:where([data-row] *, [data-toolbar] *))[data-disabled] > .Input, :where([data-plex-layout="phone"]) [data-platform="android"] .Container:not(:where([data-row] *, [data-toolbar] *))[data-disabled] > .Clear {
1018
+ opacity: 1;
1019
+ }
1020
+
1021
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Container[data-has-start-adornment]:not(:where([data-row] *, [data-toolbar] *)) {
1022
+ --input-gutter: 14px;
1023
+
1024
+ padding-left: 12px;
1025
+ }
1026
+
1027
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Container[data-variant="soft"][data-has-start-adornment]:not(:where([data-row] *, [data-toolbar] *)) {
1028
+ --input-size: 40px;
1029
+ --input-radius: var(--radius-full);
1030
+ --input-gap: 12px;
1031
+ --input-font-size: 14px;
1032
+ --input-placeholder-text-color: color-mix(in srgb, var(--color-text) 50%, transparent);
1033
+ --input-soft-background-color: var(--android-search-fill);
1034
+ --control-gutter-pill-scaling: 1;
1035
+ }
1036
+
1037
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Container[data-variant="soft"][data-has-start-adornment]:not(:where([data-row] *, [data-toolbar] *)) > svg {
1038
+ flex: none;
1039
+ width: 24px;
1040
+ height: 24px;
1041
+ color: color-mix(in srgb, var(--color-text) 60%, transparent);
899
1042
  }@keyframes native-autofill-in {
900
1043
  0% {
901
1044
  opacity: 1;
@@ -904,5 +1047,46 @@
904
1047
  100% {
905
1048
  opacity: 1;
906
1049
  }
1050
+ }/* Android press ripple. In the Plex Android look an adornment button and the clear button ripple as the reference's
1051
+ small in-field buttons (its 20dp circle, no mask): a borderless circle of 20px round their center, not clipped to
1052
+ their box, in the list selector (android.css, Android press ripple). */@media (max-width: 767px) {
1053
+ [data-platform="android"] :is(.AdornmentButton, .Clear) {
1054
+ --android-ripple-radius: 20px;
1055
+ --android-ripple-ink: var(--android-ripple-color);
1056
+
1057
+ isolation: isolate;
1058
+ }
1059
+
1060
+ /* Under the glyph, as the reference draws it: the button's background, round the glyph (which a row's 44px target
1061
+ holds at its end) */
1062
+ [data-platform="android"] :is(.AdornmentButton, .Clear):not(:disabled)[data-ripple]::after {
1063
+ position: absolute;
1064
+ z-index: -1;
1065
+ inset: calc(50% - 20px);
1066
+ border-radius: 50%;
1067
+ translate: var(--android-ripple-ox, 0px) var(--android-ripple-oy, 0px);
1068
+ background-image: var(--android-ripple-image);
1069
+ content: "";
1070
+ pointer-events: none;
1071
+ }
907
1072
  }
1073
+ :where([data-plex-layout="phone"]) [data-platform="android"] :is(.AdornmentButton, .Clear) {
1074
+ --android-ripple-radius: 20px;
1075
+ --android-ripple-ink: var(--android-ripple-color);
1076
+
1077
+ isolation: isolate;
1078
+ }
1079
+
1080
+ /* Under the glyph, as the reference draws it: the button's background, round the glyph (which a row's 44px target
1081
+ holds at its end) */
1082
+ :where([data-plex-layout="phone"]) [data-platform="android"] :is(.AdornmentButton, .Clear):not(:disabled)[data-ripple]::after {
1083
+ position: absolute;
1084
+ z-index: -1;
1085
+ inset: calc(50% - 20px);
1086
+ border-radius: 50%;
1087
+ translate: var(--android-ripple-ox, 0px) var(--android-ripple-oy, 0px);
1088
+ background-image: var(--android-ripple-image);
1089
+ content: "";
1090
+ pointer-events: none;
1091
+ }
908
1092
  }
@@ -309,5 +309,22 @@
309
309
  flex-shrink: 0;
310
310
  width: var(--input-group-icon-size);
311
311
  height: var(--input-group-icon-size);
312
+ }/* The Plex Android look (`data-platform="android"`, android.css): a button in an addon that opens a menu (a unit, a
313
+ currency) is a value the reader can change, so it takes the accent, as the reference messenger draws a tappable
314
+ value at a row's end; plain addon text (a fixed "€") stays secondary. It outweighs a color an author gave the button
315
+ for the iOS look, a `text-secondary` utility too (an important rule: here its secondary text is the accent). iOS
316
+ and the desktop are unchanged. */@media (max-width: 767px) {
317
+ [data-platform="android"] .InputGroup .Addon > .Button[aria-haspopup]:not([aria-haspopup="false"], [data-disabled]) {
318
+ --button-text-color: var(--android-accent-text);
319
+ --button-text-color-hover: var(--android-accent-text);
320
+ --color-text-secondary: var(--android-accent-text);
321
+ color: var(--android-accent-text);
322
+ }
323
+ }
324
+ :where([data-plex-layout="phone"]) [data-platform="android"] .InputGroup .Addon > .Button[aria-haspopup]:not([aria-haspopup="false"], [data-disabled]) {
325
+ --button-text-color: var(--android-accent-text);
326
+ --button-text-color-hover: var(--android-accent-text);
327
+ --color-text-secondary: var(--android-accent-text);
328
+ color: var(--android-accent-text);
312
329
  }
313
330
  }