@plexui/styles 0.16.7 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/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 +169 -0
- 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
|
@@ -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
|
}
|
|
@@ -452,5 +452,230 @@
|
|
|
452
452
|
:where([data-plex-layout="phone"]) .Arrow {
|
|
453
453
|
background: var(--dialog-alert-background, var(--tip-popover-background));
|
|
454
454
|
backdrop-filter: var(--dialog-alert-backdrop-filter, none);
|
|
455
|
+
}/* The Plex Android look (`data-platform="android"`, android.css), after @plexui/react-native's Tip on Android
|
|
456
|
+
(decision 0026): a card of the screen's cells with Material 3's rich tooltip inside: 16px corners and 16 inside, a
|
|
457
|
+
24px symbol 16 before the text, a title 16/24 Medium over a message 14/20 in the secondary text 2 under it, 12 over
|
|
458
|
+
the actions; Close a bare 24px glyph in the secondary label, in a 48px target 4 from the top and the end. The actions are text buttons side by
|
|
459
|
+
side, 8 apart: 40 tall, 12 at their sides, a pill, Medium 14 in the accent (red for a danger one), 8 over the
|
|
460
|
+
card's edge; with `mobileActions="buttons"` they are 40px capsules. A popover tip is the glass of the popups. */@media (max-width: 767px) {
|
|
461
|
+
[data-platform="android"] .Tip {
|
|
462
|
+
--tip-padding-top: 16px;
|
|
463
|
+
--tip-padding-inline: 16px;
|
|
464
|
+
--tip-padding-bottom: 16px;
|
|
465
|
+
--tip-gap: 12px;
|
|
466
|
+
--tip-icon-size: 24px;
|
|
467
|
+
--tip-icon-frame-width: 24px;
|
|
468
|
+
--tip-icon-frame-height: 24px;
|
|
469
|
+
--tip-close-size: 24px;
|
|
470
|
+
--tip-close-offset: 16px;
|
|
471
|
+
--tip-close-icon-size: 24px;
|
|
472
|
+
--tip-description-gap: 2px;
|
|
473
|
+
-moz-column-gap: 16px;
|
|
474
|
+
column-gap: 16px;
|
|
475
|
+
border-radius: 16px;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
[data-platform="android"] .Tip .Title {
|
|
479
|
+
font-size: 16px;
|
|
480
|
+
font-weight: var(--font-weight-medium);
|
|
481
|
+
line-height: 24px;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
[data-platform="android"] .Tip .Description {
|
|
485
|
+
color: var(--color-text-secondary);
|
|
486
|
+
font-size: 14px;
|
|
487
|
+
line-height: 20px;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
[data-platform="android"] .Tip > .Close[data-variant] {
|
|
491
|
+
--tip-close-target-inset: 12px;
|
|
492
|
+
--button-uniform-size: 48px;
|
|
493
|
+
--button-text-color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
494
|
+
--button-text-color-hover: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
495
|
+
top: 4px;
|
|
496
|
+
inset-inline-end: 4px;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
[data-platform="android"] .Tip:not([data-mobile-actions="buttons"]):has(> .Actions) {
|
|
500
|
+
--tip-padding-bottom: 8px;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
[data-platform="android"] .Tip:not([data-mobile-actions="buttons"]) > .Actions {
|
|
504
|
+
flex-flow: row wrap;
|
|
505
|
+
gap: 8px;
|
|
506
|
+
margin-inline-start: -12px;
|
|
507
|
+
padding-inline-start: 0;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
[data-platform="android"] .Tip:not([data-mobile-actions="buttons"]):has(> .Icon) > .Actions {
|
|
511
|
+
padding-inline-start: 40px;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
[data-platform="android"] .Tip:not([data-mobile-actions="buttons"]) > .Actions > [data-variant] {
|
|
515
|
+
--button-size: 40px;
|
|
516
|
+
--button-gutter: 12px;
|
|
517
|
+
--button-radius: 20px;
|
|
518
|
+
--button-font-size: 14px;
|
|
519
|
+
--button-line-height: 20px;
|
|
520
|
+
--button-background-color-active: color-mix(in srgb, var(--tip-action-color, var(--color-text)) 10%, transparent);
|
|
521
|
+
width: auto;
|
|
522
|
+
min-height: 40px;
|
|
523
|
+
padding: 10px 12px;
|
|
524
|
+
border-top: 0;
|
|
525
|
+
font-weight: var(--font-weight-medium);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
[data-platform="android"] .Tip > .Actions > :is([data-color="primary"], [data-color="secondary"], [data-color="info"]) {
|
|
529
|
+
--tip-action-color: var(--android-accent-text);
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
[data-platform="android"] .Tip > .Actions > [data-color="danger"] {
|
|
533
|
+
--tip-action-color: var(--android-danger-text);
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
[data-platform="android"] .Tip[data-mobile-actions="buttons"] > .Actions > [data-variant] {
|
|
537
|
+
--button-size: 40px;
|
|
538
|
+
--button-font-size: 14px;
|
|
539
|
+
--button-line-height: 20px;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
[data-platform="android"] .Popover > .Tip,
|
|
543
|
+
[data-platform="android"] .Arrow {
|
|
544
|
+
background: var(--android-bar-glass);
|
|
545
|
+
backdrop-filter: var(--mobile-glass-backdrop-filter);
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
[data-platform="android"] .Popover > .Tip {
|
|
549
|
+
box-shadow: var(--android-bar-shadow);
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Tip {
|
|
553
|
+
--tip-padding-top: 16px;
|
|
554
|
+
--tip-padding-inline: 16px;
|
|
555
|
+
--tip-padding-bottom: 16px;
|
|
556
|
+
--tip-gap: 12px;
|
|
557
|
+
--tip-icon-size: 24px;
|
|
558
|
+
--tip-icon-frame-width: 24px;
|
|
559
|
+
--tip-icon-frame-height: 24px;
|
|
560
|
+
--tip-close-size: 24px;
|
|
561
|
+
--tip-close-offset: 16px;
|
|
562
|
+
--tip-close-icon-size: 24px;
|
|
563
|
+
--tip-description-gap: 2px;
|
|
564
|
+
-moz-column-gap: 16px;
|
|
565
|
+
column-gap: 16px;
|
|
566
|
+
border-radius: 16px;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Tip .Title {
|
|
570
|
+
font-size: 16px;
|
|
571
|
+
font-weight: var(--font-weight-medium);
|
|
572
|
+
line-height: 24px;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Tip .Description {
|
|
576
|
+
color: var(--color-text-secondary);
|
|
577
|
+
font-size: 14px;
|
|
578
|
+
line-height: 20px;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Tip > .Close[data-variant] {
|
|
582
|
+
--tip-close-target-inset: 12px;
|
|
583
|
+
--button-uniform-size: 48px;
|
|
584
|
+
--button-text-color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
585
|
+
--button-text-color-hover: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
586
|
+
top: 4px;
|
|
587
|
+
inset-inline-end: 4px;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Tip:not([data-mobile-actions="buttons"]):has(> .Actions) {
|
|
591
|
+
--tip-padding-bottom: 8px;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Tip:not([data-mobile-actions="buttons"]) > .Actions {
|
|
595
|
+
flex-flow: row wrap;
|
|
596
|
+
gap: 8px;
|
|
597
|
+
margin-inline-start: -12px;
|
|
598
|
+
padding-inline-start: 0;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Tip:not([data-mobile-actions="buttons"]):has(> .Icon) > .Actions {
|
|
602
|
+
padding-inline-start: 40px;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Tip:not([data-mobile-actions="buttons"]) > .Actions > [data-variant] {
|
|
606
|
+
--button-size: 40px;
|
|
607
|
+
--button-gutter: 12px;
|
|
608
|
+
--button-radius: 20px;
|
|
609
|
+
--button-font-size: 14px;
|
|
610
|
+
--button-line-height: 20px;
|
|
611
|
+
--button-background-color-active: color-mix(in srgb, var(--tip-action-color, var(--color-text)) 10%, transparent);
|
|
612
|
+
width: auto;
|
|
613
|
+
min-height: 40px;
|
|
614
|
+
padding: 10px 12px;
|
|
615
|
+
border-top: 0;
|
|
616
|
+
font-weight: var(--font-weight-medium);
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Tip > .Actions > :is([data-color="primary"], [data-color="secondary"], [data-color="info"]) {
|
|
620
|
+
--tip-action-color: var(--android-accent-text);
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Tip > .Actions > [data-color="danger"] {
|
|
624
|
+
--tip-action-color: var(--android-danger-text);
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Tip[data-mobile-actions="buttons"] > .Actions > [data-variant] {
|
|
628
|
+
--button-size: 40px;
|
|
629
|
+
--button-font-size: 14px;
|
|
630
|
+
--button-line-height: 20px;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Popover > .Tip,
|
|
634
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Arrow {
|
|
635
|
+
background: var(--android-bar-glass);
|
|
636
|
+
backdrop-filter: var(--mobile-glass-backdrop-filter);
|
|
455
637
|
}
|
|
638
|
+
|
|
639
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Popover > .Tip {
|
|
640
|
+
box-shadow: var(--android-bar-shadow);
|
|
641
|
+
}/* Android press ripple. Held, Close ripples as the reference's small icon buttons, a borderless circle of 20px round its
|
|
642
|
+
symbol in the list selector, and an action as a text button, in its own pill in its color at 10%, without the scale
|
|
643
|
+
of a large button (android.css, Android press ripple; Button.module.css). */@media (max-width: 767px) {
|
|
644
|
+
[data-platform="android"] .Tip > .Close[data-variant][data-uniform] {
|
|
645
|
+
--android-ripple-radius: 20px;
|
|
646
|
+
--android-ripple-ink: var(--android-ripple-color);
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
[data-platform="android"] .Tip > .Close[data-variant][data-ripple]::after {
|
|
650
|
+
inset: calc(50% - 20px);
|
|
651
|
+
border-radius: 50%;
|
|
652
|
+
translate: var(--android-ripple-ox, 0px) var(--android-ripple-oy, 0px);
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
[data-platform="android"] .Tip:not([data-mobile-actions="buttons"]) > .Actions > [data-variant][data-variant] {
|
|
656
|
+
--android-ripple-ink: color-mix(in srgb, var(--tip-action-color, var(--color-text)) 10%, transparent);
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
[data-platform="android"] .Tip:not([data-mobile-actions="buttons"]) > .Actions > [data-variant][data-variant]:active {
|
|
660
|
+
scale: none;
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Tip > .Close[data-variant][data-uniform] {
|
|
664
|
+
--android-ripple-radius: 20px;
|
|
665
|
+
--android-ripple-ink: var(--android-ripple-color);
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Tip > .Close[data-variant][data-ripple]::after {
|
|
669
|
+
inset: calc(50% - 20px);
|
|
670
|
+
border-radius: 50%;
|
|
671
|
+
translate: var(--android-ripple-ox, 0px) var(--android-ripple-oy, 0px);
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Tip:not([data-mobile-actions="buttons"]) > .Actions > [data-variant][data-variant] {
|
|
675
|
+
--android-ripple-ink: color-mix(in srgb, var(--tip-action-color, var(--color-text)) 10%, transparent);
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Tip:not([data-mobile-actions="buttons"]) > .Actions > [data-variant][data-variant]:active {
|
|
679
|
+
scale: none;
|
|
680
|
+
}
|
|
456
681
|
}
|
|
@@ -582,5 +582,212 @@
|
|
|
582
582
|
position: absolute;
|
|
583
583
|
inset: -5px 0;
|
|
584
584
|
content: "";
|
|
585
|
+
}/* =============================================
|
|
586
|
+
The Plex Android look (`data-platform="android"`, android.css), after @plexui/react-native's Toast on Android
|
|
587
|
+
(decision 0026): a dark card with 16px corners, at least 48 tall, no shadow and no glass; its text white, 15/20
|
|
588
|
+
16 in and 14 above and below (a title over a description: 14/18 Medium over 13/16, 8 above and below), a 24px
|
|
589
|
+
white symbol 16 before it. The action is a text button 8 from the card's end, 12/8 inside, 14/18 Medium in the
|
|
590
|
+
accent mixed with white (half; 60% white at night), its press the same color at 10% in 6px corners. A toast with
|
|
591
|
+
rich colors keeps its color. It is as wide as the screen less the toaster's offsets; where it stands is the
|
|
592
|
+
Toaster's position, which the stylesheet does not move.
|
|
593
|
+
============================================= */@media (max-width: 767px) {
|
|
594
|
+
/* As wide as the screen between the toaster's side offsets, not as wide as its message. */
|
|
595
|
+
[data-platform="android"] .Toast {
|
|
596
|
+
width: calc(100vw - var(--mobile-offset-left, 16px) - var(--mobile-offset-right, 16px)) !important;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
[data-platform="android"] .Toast[data-styled="true"] {
|
|
600
|
+
--toast-icon-color: #fff;
|
|
601
|
+
gap: 16px !important;
|
|
602
|
+
min-height: 48px;
|
|
603
|
+
padding: 0 16px !important;
|
|
604
|
+
border-radius: 16px !important;
|
|
605
|
+
letter-spacing: var(--font-sans-tracking);
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
[data-platform="android"] .Toast[data-styled="true"]:not(:has(> .Content > .Description)) {
|
|
609
|
+
border-radius: 16px !important;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
[data-platform="android"] .Toast[data-styled="true"]:not([data-rich-colors="true"]) {
|
|
613
|
+
background: var(--android-toast-fill) !important;
|
|
614
|
+
color: #fff !important;
|
|
615
|
+
box-shadow: none !important;
|
|
616
|
+
backdrop-filter: none;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
[data-platform="android"] .Toast[data-styled="true"]:has(> .Content ~ :is(.ActionButton, .CancelButton, [data-close-button])) {
|
|
620
|
+
padding-inline-end: 0 !important;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
[data-platform="android"] .Toast[data-styled="true"] > .Content {
|
|
624
|
+
padding-block: 14px;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
[data-platform="android"] .Toast[data-styled="true"] > .Content:has(> .Description) {
|
|
628
|
+
padding-block: 8px;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
[data-platform="android"] .Toast[data-styled="true"] .Title {
|
|
632
|
+
font-size: 15px;
|
|
633
|
+
font-weight: var(--font-weight-normal);
|
|
634
|
+
line-height: 20px !important;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
[data-platform="android"] .Toast[data-styled="true"] .Content:has(> .Description) .Title {
|
|
638
|
+
font-size: 14px;
|
|
639
|
+
font-weight: var(--font-weight-medium);
|
|
640
|
+
line-height: 18px !important;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
[data-platform="android"] .Toast[data-styled="true"] .Description {
|
|
644
|
+
font-size: 13px;
|
|
645
|
+
line-height: 16px !important;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
[data-platform="android"] .Toast[data-styled="true"]:not([data-rich-colors="true"]) :is(.Title, .Description) {
|
|
649
|
+
color: #fff !important;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
[data-platform="android"] .Toast[data-styled="true"] > .Icon,
|
|
653
|
+
[data-platform="android"] .Toast[data-styled="true"] > .Icon > svg {
|
|
654
|
+
width: 24px;
|
|
655
|
+
height: 24px;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
[data-platform="android"] .Toast[data-styled="true"] > :is(.ActionButton, .CancelButton) {
|
|
659
|
+
--android-ripple-ink: color-mix(in srgb, var(--android-toast-action) 10%, transparent);
|
|
660
|
+
min-height: 34px;
|
|
661
|
+
margin-inline: 8px !important;
|
|
662
|
+
padding: 8px 12px !important;
|
|
663
|
+
border-radius: 6px !important;
|
|
664
|
+
background: transparent !important;
|
|
665
|
+
color: var(--android-toast-action) !important;
|
|
666
|
+
font-size: 14px !important;
|
|
667
|
+
font-weight: var(--font-weight-medium) !important;
|
|
668
|
+
line-height: 18px;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
/* Held, it ripples in its own shape (android.css, Android press ripple), in the action's color at 10% */
|
|
672
|
+
[data-platform="android"] .Toast[data-styled="true"] > :is(.ActionButton, .CancelButton)[data-ripple] {
|
|
673
|
+
background-image: var(--android-ripple-image) !important;
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
[data-platform="android"] .Toast[data-styled="true"] > .CancelButton {
|
|
677
|
+
color: rgb(255 255 255 / 70%) !important;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
[data-platform="android"] .Toast[data-styled="true"] > [data-close-button] {
|
|
681
|
+
width: 48px !important;
|
|
682
|
+
height: 48px !important;
|
|
683
|
+
color: #fff !important;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
[data-platform="android"] .Toast[data-styled="true"] > [data-close-button]::before {
|
|
687
|
+
background: transparent;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
[data-platform="android"] .Toast[data-styled="true"]:has([data-close-button]) {
|
|
691
|
+
padding-inline-end: 48px !important;
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
/* As wide as the screen between the toaster's side offsets, not as wide as its message. */
|
|
695
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toast {
|
|
696
|
+
width: calc(100vw - var(--mobile-offset-left, 16px) - var(--mobile-offset-right, 16px)) !important;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toast[data-styled="true"] {
|
|
700
|
+
--toast-icon-color: #fff;
|
|
701
|
+
gap: 16px !important;
|
|
702
|
+
min-height: 48px;
|
|
703
|
+
padding: 0 16px !important;
|
|
704
|
+
border-radius: 16px !important;
|
|
705
|
+
letter-spacing: var(--font-sans-tracking);
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toast[data-styled="true"]:not(:has(> .Content > .Description)) {
|
|
709
|
+
border-radius: 16px !important;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toast[data-styled="true"]:not([data-rich-colors="true"]) {
|
|
713
|
+
background: var(--android-toast-fill) !important;
|
|
714
|
+
color: #fff !important;
|
|
715
|
+
box-shadow: none !important;
|
|
716
|
+
backdrop-filter: none;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toast[data-styled="true"]:has(> .Content ~ :is(.ActionButton, .CancelButton, [data-close-button])) {
|
|
720
|
+
padding-inline-end: 0 !important;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toast[data-styled="true"] > .Content {
|
|
724
|
+
padding-block: 14px;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toast[data-styled="true"] > .Content:has(> .Description) {
|
|
728
|
+
padding-block: 8px;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toast[data-styled="true"] .Title {
|
|
732
|
+
font-size: 15px;
|
|
733
|
+
font-weight: var(--font-weight-normal);
|
|
734
|
+
line-height: 20px !important;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toast[data-styled="true"] .Content:has(> .Description) .Title {
|
|
738
|
+
font-size: 14px;
|
|
739
|
+
font-weight: var(--font-weight-medium);
|
|
740
|
+
line-height: 18px !important;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toast[data-styled="true"] .Description {
|
|
744
|
+
font-size: 13px;
|
|
745
|
+
line-height: 16px !important;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toast[data-styled="true"]:not([data-rich-colors="true"]) :is(.Title, .Description) {
|
|
749
|
+
color: #fff !important;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toast[data-styled="true"] > .Icon,
|
|
753
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toast[data-styled="true"] > .Icon > svg {
|
|
754
|
+
width: 24px;
|
|
755
|
+
height: 24px;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toast[data-styled="true"] > :is(.ActionButton, .CancelButton) {
|
|
759
|
+
--android-ripple-ink: color-mix(in srgb, var(--android-toast-action) 10%, transparent);
|
|
760
|
+
min-height: 34px;
|
|
761
|
+
margin-inline: 8px !important;
|
|
762
|
+
padding: 8px 12px !important;
|
|
763
|
+
border-radius: 6px !important;
|
|
764
|
+
background: transparent !important;
|
|
765
|
+
color: var(--android-toast-action) !important;
|
|
766
|
+
font-size: 14px !important;
|
|
767
|
+
font-weight: var(--font-weight-medium) !important;
|
|
768
|
+
line-height: 18px;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
/* Held, it ripples in its own shape (android.css, Android press ripple), in the action's color at 10% */
|
|
772
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toast[data-styled="true"] > :is(.ActionButton, .CancelButton)[data-ripple] {
|
|
773
|
+
background-image: var(--android-ripple-image) !important;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toast[data-styled="true"] > .CancelButton {
|
|
777
|
+
color: rgb(255 255 255 / 70%) !important;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toast[data-styled="true"] > [data-close-button] {
|
|
781
|
+
width: 48px !important;
|
|
782
|
+
height: 48px !important;
|
|
783
|
+
color: #fff !important;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toast[data-styled="true"] > [data-close-button]::before {
|
|
787
|
+
background: transparent;
|
|
585
788
|
}
|
|
789
|
+
|
|
790
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toast[data-styled="true"]:has([data-close-button]) {
|
|
791
|
+
padding-inline-end: 48px !important;
|
|
792
|
+
}
|
|
586
793
|
}
|