@plexui/styles 0.17.15 → 0.17.16
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/Slider/Slider.module.css +65 -13
- package/dist/es/components/Tip/Tip.module.css +8 -8
- package/dist/es/styles/android.css +24 -0
- package/dist/es/styles/touch.css +54 -0
- package/dist/es/styles/variables-components.css +10 -0
- package/dist/es/tokens/tokens.generated.js +55 -9
- package/dist/es/tokens/tokens.generated.js.map +1 -1
- package/package.json +1 -1
|
@@ -84,6 +84,28 @@
|
|
|
84
84
|
border-radius: var(--slider-track-radius, var(--radius-2xs));
|
|
85
85
|
background: var(--slider-range-color);
|
|
86
86
|
transition: right var(--slider-duration) var(--cubic-move);
|
|
87
|
+
}/* `ticks`: a dot at each step under the track, where the knob's centre stands on that step (the knob runs from half its
|
|
88
|
+
width in from either end), so the knob, drawn after the track, covers its own. On an iOS phone iOS 27.2's ticks
|
|
89
|
+
(touch.css: 3px, 8.5px under the track's middle, the opaque separator). Until the slider knows its width, and where
|
|
90
|
+
the steps stand closer than 9px, none shows (Slider.tsx). */.Ticks {
|
|
91
|
+
position: absolute;
|
|
92
|
+
inset: 0;
|
|
93
|
+
pointer-events: none;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.Ticks:not([data-shown]) {
|
|
97
|
+
visibility: hidden;
|
|
98
|
+
}.Tick {
|
|
99
|
+
position: absolute;
|
|
100
|
+
top: calc(50% + var(--slider-tick-offset, 8.5px) - var(--slider-tick-size, 3px) / 2);
|
|
101
|
+
inset-inline-start: calc(
|
|
102
|
+
var(--slider-thumb-width, 14px) / 2 + var(--slider-tick-at) * (100% - var(--slider-thumb-width, 14px)) -
|
|
103
|
+
var(--slider-tick-size, 3px) / 2
|
|
104
|
+
);
|
|
105
|
+
width: var(--slider-tick-size, 3px);
|
|
106
|
+
height: var(--slider-tick-size, 3px);
|
|
107
|
+
border-radius: 50%;
|
|
108
|
+
background: var(--slider-tick-color);
|
|
87
109
|
}.Thumb {
|
|
88
110
|
position: relative;
|
|
89
111
|
display: block;
|
|
@@ -227,15 +249,15 @@
|
|
|
227
249
|
|
|
228
250
|
.SliderAdorned .Slider {
|
|
229
251
|
grid-column: 2;
|
|
230
|
-
grid-row: 1;
|
|
252
|
+
grid-row: var(--slider-control-row, 1);
|
|
231
253
|
}
|
|
232
254
|
|
|
233
255
|
.SliderAdorned .MarksContainer {
|
|
234
256
|
grid-column: 2;
|
|
235
|
-
grid-row: 2;
|
|
257
|
+
grid-row: var(--slider-marks-row, 2);
|
|
236
258
|
}.Adornment {
|
|
237
259
|
display: inline-flex;
|
|
238
|
-
grid-row: 1;
|
|
260
|
+
grid-row: var(--slider-control-row, 1);
|
|
239
261
|
align-items: center;
|
|
240
262
|
justify-content: center;
|
|
241
263
|
/* The slider holds its padding under the track: the symbols stand level with the track, not the box */
|
|
@@ -263,21 +285,30 @@
|
|
|
263
285
|
|
|
264
286
|
.SliderAdorned[data-disabled] .Adornment {
|
|
265
287
|
color: var(--slider-adornment-color-disabled, var(--color-text-disabled));
|
|
266
|
-
}.
|
|
288
|
+
}/* The marks stand under the track, or over it where the layer says so (touch.css: an iOS phone writes them as
|
|
289
|
+
Settings' Balance writes L, its value and R; android.css: an Android phone in 13/16 secondary over each value;
|
|
290
|
+
--slider-marks-order and the rows of an adorned slider) */.SliderWrap[data-orientation="horizontal"] > .SliderContainer {
|
|
291
|
+
display: flex;
|
|
292
|
+
flex-direction: column;
|
|
293
|
+
}.MarksContainer {
|
|
267
294
|
position: relative;
|
|
295
|
+
order: var(--slider-marks-order, 0);
|
|
268
296
|
width: 100%;
|
|
269
|
-
margin-top: 4px;
|
|
297
|
+
margin-top: var(--slider-marks-margin-top, 4px);
|
|
298
|
+
margin-bottom: var(--slider-marks-margin-bottom, 0px);
|
|
270
299
|
/* The marks' size, so the line held for them below is one of their lines */
|
|
271
|
-
font-size: 12px;
|
|
300
|
+
font-size: var(--slider-mark-font-size, 12px);
|
|
301
|
+
line-height: var(--slider-mark-line-height, normal);
|
|
272
302
|
}/* Until the slider knows its width (Slider sets data-measured) the marks hold one line and stay hidden: the server
|
|
273
303
|
cannot place them, and the page does not move when they appear. */.MarksContainer:not([data-measured]) {
|
|
274
304
|
min-height: 1lh;
|
|
275
305
|
visibility: hidden;
|
|
276
306
|
}.Mark {
|
|
277
307
|
position: absolute;
|
|
278
|
-
color: var(--color-text);
|
|
279
|
-
font-size: 12px;
|
|
308
|
+
color: var(--slider-mark-color, var(--color-text));
|
|
309
|
+
font-size: var(--slider-mark-font-size, 12px);
|
|
280
310
|
font-weight: normal;
|
|
311
|
+
line-height: var(--slider-mark-line-height, normal);
|
|
281
312
|
}.MarkLabel {
|
|
282
313
|
display: inline-block;
|
|
283
314
|
overflow-wrap: break-word;
|
|
@@ -342,7 +373,10 @@
|
|
|
342
373
|
container-type: inline-size;
|
|
343
374
|
}
|
|
344
375
|
|
|
345
|
-
.
|
|
376
|
+
/* With ticks the knob keeps the primitive's travel, as iOS 27.2's stepped slider stands its knob on evenly spaced
|
|
377
|
+
ticks from half its width in from either end (the simulator: 53.8, 127.1, 200.3, 273.6, 346.8 on a track from 36
|
|
378
|
+
to 365.8); the fill's end stays under the knob. */
|
|
379
|
+
.Slider[data-orientation="horizontal"]:not([data-ticks]) {
|
|
346
380
|
--slider-thumb-travel: clamped;
|
|
347
381
|
}
|
|
348
382
|
|
|
@@ -350,7 +384,7 @@
|
|
|
350
384
|
Sliders 7:53847, State=Pressed); without touch.css it stays as it is. The slider is pressed from the first
|
|
351
385
|
touch, wherever on the track it lands; of a range, the nearest knob, which the press focuses. A vertical
|
|
352
386
|
slider is a web layout with no iOS knob, so it keeps its own. */
|
|
353
|
-
.Slider[data-orientation="horizontal"] .Thumb {
|
|
387
|
+
.Slider[data-orientation="horizontal"]:not([data-ticks]) .Thumb {
|
|
354
388
|
--slider-thumb-half: calc(var(--slider-thumb-width, 14px) / 2);
|
|
355
389
|
--slider-thumb-at: calc(var(--slider-thumb-percent, 0.5) * 100cqw);
|
|
356
390
|
|
|
@@ -358,6 +392,9 @@
|
|
|
358
392
|
clamp(var(--slider-thumb-half), var(--slider-thumb-at), 100cqw - var(--slider-thumb-half)) -
|
|
359
393
|
var(--slider-thumb-at) - var(--slider-thumb-half) * (1 - 2 * var(--slider-thumb-percent, 0.5))
|
|
360
394
|
);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.Slider[data-orientation="horizontal"] .Thumb {
|
|
361
398
|
transition:
|
|
362
399
|
scale 200ms var(--cubic-enter),
|
|
363
400
|
background-color 200ms var(--cubic-enter),
|
|
@@ -436,7 +473,10 @@
|
|
|
436
473
|
container-type: inline-size;
|
|
437
474
|
}
|
|
438
475
|
|
|
439
|
-
|
|
476
|
+
/* With ticks the knob keeps the primitive's travel, as iOS 27.2's stepped slider stands its knob on evenly spaced
|
|
477
|
+
ticks from half its width in from either end (the simulator: 53.8, 127.1, 200.3, 273.6, 346.8 on a track from 36
|
|
478
|
+
to 365.8); the fill's end stays under the knob. */
|
|
479
|
+
:where([data-plex-layout="phone"]) .Slider[data-orientation="horizontal"]:not([data-ticks]) {
|
|
440
480
|
--slider-thumb-travel: clamped;
|
|
441
481
|
}
|
|
442
482
|
|
|
@@ -444,7 +484,7 @@
|
|
|
444
484
|
Sliders 7:53847, State=Pressed); without touch.css it stays as it is. The slider is pressed from the first
|
|
445
485
|
touch, wherever on the track it lands; of a range, the nearest knob, which the press focuses. A vertical
|
|
446
486
|
slider is a web layout with no iOS knob, so it keeps its own. */
|
|
447
|
-
:where([data-plex-layout="phone"]) .Slider[data-orientation="horizontal"] .Thumb {
|
|
487
|
+
:where([data-plex-layout="phone"]) .Slider[data-orientation="horizontal"]:not([data-ticks]) .Thumb {
|
|
448
488
|
--slider-thumb-half: calc(var(--slider-thumb-width, 14px) / 2);
|
|
449
489
|
--slider-thumb-at: calc(var(--slider-thumb-percent, 0.5) * 100cqw);
|
|
450
490
|
|
|
@@ -452,6 +492,9 @@
|
|
|
452
492
|
clamp(var(--slider-thumb-half), var(--slider-thumb-at), 100cqw - var(--slider-thumb-half)) -
|
|
453
493
|
var(--slider-thumb-at) - var(--slider-thumb-half) * (1 - 2 * var(--slider-thumb-percent, 0.5))
|
|
454
494
|
);
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
:where([data-plex-layout="phone"]) .Slider[data-orientation="horizontal"] .Thumb {
|
|
455
498
|
transition:
|
|
456
499
|
scale 200ms var(--cubic-enter),
|
|
457
500
|
background-color 200ms var(--cubic-enter),
|
|
@@ -479,16 +522,25 @@
|
|
|
479
522
|
|
|
480
523
|
:where([data-plex-layout="phone"]) .Slider[data-disabled] .Thumb {
|
|
481
524
|
box-shadow: var(--slider-thumb-shadow, inset 0 0 0 2px var(--slider-range-color));
|
|
482
|
-
}/* The Plex Android slider (its sizes and colors: android.css): the knob stays as it is while it is dragged
|
|
525
|
+
}/* The Plex Android slider (its sizes and colors: android.css): the knob stays as it is while it is dragged. Android's
|
|
526
|
+
steps are its stepped picker (@plexui/react-native), not iOS's dots: the web draws none. */@media (max-width: 767px) {
|
|
483
527
|
[data-platform="android"] .Slider {
|
|
484
528
|
--mobile-knob-lens-scale: none;
|
|
485
529
|
--mobile-knob-lens-background: var(--slider-thumb-background);
|
|
486
530
|
--mobile-knob-lens-shadow: none;
|
|
487
531
|
}
|
|
532
|
+
|
|
533
|
+
[data-platform="android"] .Ticks {
|
|
534
|
+
display: none;
|
|
535
|
+
}
|
|
488
536
|
}
|
|
489
537
|
:where([data-plex-layout="phone"]) [data-platform="android"] .Slider {
|
|
490
538
|
--mobile-knob-lens-scale: none;
|
|
491
539
|
--mobile-knob-lens-background: var(--slider-thumb-background);
|
|
492
540
|
--mobile-knob-lens-shadow: none;
|
|
493
541
|
}
|
|
542
|
+
|
|
543
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Ticks {
|
|
544
|
+
display: none;
|
|
545
|
+
}
|
|
494
546
|
}
|
|
@@ -280,7 +280,9 @@
|
|
|
280
280
|
padding-inline-start: calc(var(--tip-icon-frame-width) + 12px);
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
-
/* Each action is a row of text
|
|
283
|
+
/* Each action is a row of text under a separator ([data-variant]: over the Button's own), in the tint as iOS
|
|
284
|
+
writes a tip's text actions (Screen Time's Review Restriction, Transfer or Reset iPhone's Get Started: IMG_5729,
|
|
285
|
+
5730; owner 29.11), red for a danger action */
|
|
284
286
|
.Tip:not([data-mobile-actions="buttons"]) > .Actions > [data-variant] {
|
|
285
287
|
--button-size: auto;
|
|
286
288
|
--button-gutter: 0px;
|
|
@@ -307,13 +309,11 @@
|
|
|
307
309
|
white-space: normal;
|
|
308
310
|
}
|
|
309
311
|
|
|
310
|
-
.Tip > .Actions > [data-color="primary"] { --tip-action-color: var(--color-text-
|
|
311
|
-
.Tip > .Actions > [data-color="secondary"] { --tip-action-color: var(--color-text-secondary-ghost); }
|
|
312
|
+
.Tip > .Actions > :is([data-color="primary"], [data-color="secondary"], [data-color="info"]) { --tip-action-color: var(--color-text-accent); }
|
|
312
313
|
.Tip > .Actions > [data-color="danger"] { --tip-action-color: var(--color-text-danger-ghost); }
|
|
313
314
|
.Tip > .Actions > [data-color="success"] { --tip-action-color: var(--color-text-success-ghost); }
|
|
314
315
|
.Tip > .Actions > [data-color="warning"] { --tip-action-color: var(--color-text-warning-ghost); }
|
|
315
316
|
.Tip > .Actions > [data-color="caution"] { --tip-action-color: var(--color-text-caution-ghost); }
|
|
316
|
-
.Tip > .Actions > [data-color="info"] { --tip-action-color: var(--color-text-info-ghost); }
|
|
317
317
|
.Tip > .Actions > [data-color="discovery"] { --tip-action-color: var(--color-text-discovery-ghost); }
|
|
318
318
|
|
|
319
319
|
/* mobileActions="buttons": each action keeps its Button's color and variant as a full-width capsule under the
|
|
@@ -486,7 +486,9 @@
|
|
|
486
486
|
padding-inline-start: calc(var(--tip-icon-frame-width) + 12px);
|
|
487
487
|
}
|
|
488
488
|
|
|
489
|
-
/* Each action is a row of text
|
|
489
|
+
/* Each action is a row of text under a separator ([data-variant]: over the Button's own), in the tint as iOS
|
|
490
|
+
writes a tip's text actions (Screen Time's Review Restriction, Transfer or Reset iPhone's Get Started: IMG_5729,
|
|
491
|
+
5730; owner 29.11), red for a danger action */
|
|
490
492
|
:where([data-plex-layout="phone"]) .Tip:not([data-mobile-actions="buttons"]) > .Actions > [data-variant] {
|
|
491
493
|
--button-size: auto;
|
|
492
494
|
--button-gutter: 0px;
|
|
@@ -513,13 +515,11 @@
|
|
|
513
515
|
white-space: normal;
|
|
514
516
|
}
|
|
515
517
|
|
|
516
|
-
:where([data-plex-layout="phone"]) .Tip > .Actions > [data-color="primary"] { --tip-action-color: var(--color-text-
|
|
517
|
-
:where([data-plex-layout="phone"]) .Tip > .Actions > [data-color="secondary"] { --tip-action-color: var(--color-text-secondary-ghost); }
|
|
518
|
+
:where([data-plex-layout="phone"]) .Tip > .Actions > :is([data-color="primary"], [data-color="secondary"], [data-color="info"]) { --tip-action-color: var(--color-text-accent); }
|
|
518
519
|
:where([data-plex-layout="phone"]) .Tip > .Actions > [data-color="danger"] { --tip-action-color: var(--color-text-danger-ghost); }
|
|
519
520
|
:where([data-plex-layout="phone"]) .Tip > .Actions > [data-color="success"] { --tip-action-color: var(--color-text-success-ghost); }
|
|
520
521
|
:where([data-plex-layout="phone"]) .Tip > .Actions > [data-color="warning"] { --tip-action-color: var(--color-text-warning-ghost); }
|
|
521
522
|
:where([data-plex-layout="phone"]) .Tip > .Actions > [data-color="caution"] { --tip-action-color: var(--color-text-caution-ghost); }
|
|
522
|
-
:where([data-plex-layout="phone"]) .Tip > .Actions > [data-color="info"] { --tip-action-color: var(--color-text-info-ghost); }
|
|
523
523
|
:where([data-plex-layout="phone"]) .Tip > .Actions > [data-color="discovery"] { --tip-action-color: var(--color-text-discovery-ghost); }
|
|
524
524
|
|
|
525
525
|
/* mobileActions="buttons": each action keeps its Button's color and variant as a full-width capsule under the
|
|
@@ -278,6 +278,18 @@
|
|
|
278
278
|
--slider-value-line-height: 20px;
|
|
279
279
|
--slider-value-color: var(--android-accent-text);
|
|
280
280
|
--slider-unit-color: var(--android-accent-text);
|
|
281
|
+
/* The marks stand over the track, as @plexui/react-native's Android slider writes them: 13/16 in the secondary
|
|
282
|
+
label, each centred over its value (no inset at the ends), their line's foot 16 over the track's middle (8 into
|
|
283
|
+
a 48 control) */
|
|
284
|
+
--slider-mark-font-size: 13px;
|
|
285
|
+
--slider-mark-line-height: 16px;
|
|
286
|
+
--slider-mark-color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
287
|
+
--slider-mark-end-inset: none;
|
|
288
|
+
--slider-marks-order: -1;
|
|
289
|
+
--slider-marks-row: 1;
|
|
290
|
+
--slider-control-row: 2;
|
|
291
|
+
--slider-marks-margin-top: 0px;
|
|
292
|
+
--slider-marks-margin-bottom: calc(16px - var(--slider-control-height, 44px) / 2);
|
|
281
293
|
}
|
|
282
294
|
:root[data-platform="android"], :root[data-platform="android"]:where([data-theme="light"]) {
|
|
283
295
|
--slider-track-color: #ebedf0;
|
|
@@ -605,6 +617,18 @@ html[data-platform="android"] :where([data-plex-layout="phone"]) [data-slot="inp
|
|
|
605
617
|
--slider-value-line-height: 20px;
|
|
606
618
|
--slider-value-color: var(--android-accent-text);
|
|
607
619
|
--slider-unit-color: var(--android-accent-text);
|
|
620
|
+
/* The marks stand over the track, as @plexui/react-native's Android slider writes them: 13/16 in the secondary
|
|
621
|
+
label, each centred over its value (no inset at the ends), their line's foot 16 over the track's middle (8 into
|
|
622
|
+
a 48 control) */
|
|
623
|
+
--slider-mark-font-size: 13px;
|
|
624
|
+
--slider-mark-line-height: 16px;
|
|
625
|
+
--slider-mark-color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
626
|
+
--slider-mark-end-inset: none;
|
|
627
|
+
--slider-marks-order: -1;
|
|
628
|
+
--slider-marks-row: 1;
|
|
629
|
+
--slider-control-row: 2;
|
|
630
|
+
--slider-marks-margin-top: 0px;
|
|
631
|
+
--slider-marks-margin-bottom: calc(16px - var(--slider-control-height, 44px) / 2);
|
|
608
632
|
}
|
|
609
633
|
:root[data-platform="android"] :where([data-plex-layout="phone"]), :root[data-platform="android"]:where([data-theme="light"]) :where([data-plex-layout="phone"]), :root[data-platform="android"] :where([data-theme="light"]) :where([data-plex-layout="phone"]) {
|
|
610
634
|
--slider-track-color: #ebedf0;
|
package/dist/es/styles/touch.css
CHANGED
|
@@ -367,6 +367,15 @@
|
|
|
367
367
|
--slider-value-line-height: 20px;
|
|
368
368
|
--slider-value-color: var(--android-accent-text);
|
|
369
369
|
--slider-unit-color: var(--android-accent-text);
|
|
370
|
+
--slider-mark-font-size: 13px;
|
|
371
|
+
--slider-mark-line-height: 16px;
|
|
372
|
+
--slider-mark-color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
373
|
+
--slider-mark-end-inset: none;
|
|
374
|
+
--slider-marks-order: -1;
|
|
375
|
+
--slider-marks-row: 1;
|
|
376
|
+
--slider-control-row: 2;
|
|
377
|
+
--slider-marks-margin-top: 0px;
|
|
378
|
+
--slider-marks-margin-bottom: calc(16px - var(--slider-control-height, 44px) / 2);
|
|
370
379
|
}
|
|
371
380
|
:root[data-platform="android"], :root[data-platform="android"]:where([data-theme="light"]) {
|
|
372
381
|
--slider-track-color: #ebedf0;
|
|
@@ -627,6 +636,15 @@ html[data-platform="android"] :where([data-plex-layout="phone"]) [data-slot="inp
|
|
|
627
636
|
--slider-value-line-height: 20px;
|
|
628
637
|
--slider-value-color: var(--android-accent-text);
|
|
629
638
|
--slider-unit-color: var(--android-accent-text);
|
|
639
|
+
--slider-mark-font-size: 13px;
|
|
640
|
+
--slider-mark-line-height: 16px;
|
|
641
|
+
--slider-mark-color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
642
|
+
--slider-mark-end-inset: none;
|
|
643
|
+
--slider-marks-order: -1;
|
|
644
|
+
--slider-marks-row: 1;
|
|
645
|
+
--slider-control-row: 2;
|
|
646
|
+
--slider-marks-margin-top: 0px;
|
|
647
|
+
--slider-marks-margin-bottom: calc(16px - var(--slider-control-height, 44px) / 2);
|
|
630
648
|
}
|
|
631
649
|
:root[data-platform="android"] :where([data-plex-layout="phone"]), :root[data-platform="android"]:where([data-theme="light"]) :where([data-plex-layout="phone"]), :root[data-platform="android"] :where([data-theme="light"]) :where([data-plex-layout="phone"]) {
|
|
632
650
|
--slider-track-color: #ebedf0;
|
|
@@ -1263,6 +1281,22 @@ html[data-platform="android"] :where([data-plex-layout="phone"]) [data-slot="inp
|
|
|
1263
1281
|
--slider-thumb-radius: var(--radius-full);
|
|
1264
1282
|
--slider-thumb-background: var(--white);
|
|
1265
1283
|
--slider-thumb-shadow: 0 0.5px 4px rgb(0 0 0 / 12%), 0 6px 13px rgb(0 0 0 / 12%);
|
|
1284
|
+
--slider-track-color: var(--alpha-10);
|
|
1285
|
+
--slider-tick-size: 3px;
|
|
1286
|
+
--slider-tick-offset: 8.5px;
|
|
1287
|
+
--slider-mark-font-size: 15px;
|
|
1288
|
+
--slider-mark-line-height: 20px;
|
|
1289
|
+
--slider-mark-color: var(--color-text);
|
|
1290
|
+
--slider-marks-baseline: 31px;
|
|
1291
|
+
--slider-mark-end-inset: 5px;
|
|
1292
|
+
--slider-marks-order: -1;
|
|
1293
|
+
--slider-marks-row: 1;
|
|
1294
|
+
--slider-control-row: 2;
|
|
1295
|
+
--slider-marks-margin-top: 0px;
|
|
1296
|
+
--slider-marks-margin-bottom: calc(
|
|
1297
|
+
var(--slider-marks-baseline) - var(--slider-control-height) / 2 - var(--slider-mark-line-height) / 2 + 0.36328 *
|
|
1298
|
+
var(--slider-mark-font-size)
|
|
1299
|
+
);
|
|
1266
1300
|
--empty-message-title-size: 20px;
|
|
1267
1301
|
--empty-message-title-leading: 25px;
|
|
1268
1302
|
--empty-message-title-gap: 1px;
|
|
@@ -1389,6 +1423,7 @@ html[data-platform="android"] :where([data-plex-layout="phone"]) [data-slot="inp
|
|
|
1389
1423
|
inset 0 0.67px 0 var(--mobile-glass-rim, transparent),
|
|
1390
1424
|
inset 0 -0.67px 0 var(--mobile-glass-rim, transparent);
|
|
1391
1425
|
--menu-horizontal-selected-background: var(--alpha-12);
|
|
1426
|
+
--slider-tick-color: #c6c6c8;
|
|
1392
1427
|
}
|
|
1393
1428
|
html:root:where([data-theme="dark"]) {
|
|
1394
1429
|
--menu-press-background: var(--alpha-10);
|
|
@@ -1399,6 +1434,7 @@ html[data-platform="android"] :where([data-plex-layout="phone"]) [data-slot="inp
|
|
|
1399
1434
|
inset 0 0.67px 0 var(--mobile-glass-rim, transparent),
|
|
1400
1435
|
inset 0 -0.67px 0 var(--mobile-glass-rim, transparent);
|
|
1401
1436
|
--menu-horizontal-selected-background: var(--alpha-15);
|
|
1437
|
+
--slider-tick-color: #38383a;
|
|
1402
1438
|
}
|
|
1403
1439
|
@layer components {
|
|
1404
1440
|
html :is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"] {
|
|
@@ -1971,6 +2007,22 @@ html:root :where([data-plex-layout="phone"]) {
|
|
|
1971
2007
|
--slider-thumb-radius: var(--radius-full);
|
|
1972
2008
|
--slider-thumb-background: var(--white);
|
|
1973
2009
|
--slider-thumb-shadow: 0 0.5px 4px rgb(0 0 0 / 12%), 0 6px 13px rgb(0 0 0 / 12%);
|
|
2010
|
+
--slider-track-color: var(--alpha-10);
|
|
2011
|
+
--slider-tick-size: 3px;
|
|
2012
|
+
--slider-tick-offset: 8.5px;
|
|
2013
|
+
--slider-mark-font-size: 15px;
|
|
2014
|
+
--slider-mark-line-height: 20px;
|
|
2015
|
+
--slider-mark-color: var(--color-text);
|
|
2016
|
+
--slider-marks-baseline: 31px;
|
|
2017
|
+
--slider-mark-end-inset: 5px;
|
|
2018
|
+
--slider-marks-order: -1;
|
|
2019
|
+
--slider-marks-row: 1;
|
|
2020
|
+
--slider-control-row: 2;
|
|
2021
|
+
--slider-marks-margin-top: 0px;
|
|
2022
|
+
--slider-marks-margin-bottom: calc(
|
|
2023
|
+
var(--slider-marks-baseline) - var(--slider-control-height) / 2 - var(--slider-mark-line-height) / 2 + 0.36328 *
|
|
2024
|
+
var(--slider-mark-font-size)
|
|
2025
|
+
);
|
|
1974
2026
|
--empty-message-title-size: 20px;
|
|
1975
2027
|
--empty-message-title-leading: 25px;
|
|
1976
2028
|
--empty-message-title-gap: 1px;
|
|
@@ -2097,6 +2149,7 @@ html:root :where([data-plex-layout="phone"]), html:root:where([data-theme="light
|
|
|
2097
2149
|
inset 0 0.67px 0 var(--mobile-glass-rim, transparent),
|
|
2098
2150
|
inset 0 -0.67px 0 var(--mobile-glass-rim, transparent);
|
|
2099
2151
|
--menu-horizontal-selected-background: var(--alpha-12);
|
|
2152
|
+
--slider-tick-color: #c6c6c8;
|
|
2100
2153
|
}
|
|
2101
2154
|
html:root:where([data-theme="dark"]) :where([data-plex-layout="phone"]), html:root :where([data-theme="dark"]) :where([data-plex-layout="phone"]) {
|
|
2102
2155
|
--menu-press-background: var(--alpha-10);
|
|
@@ -2107,6 +2160,7 @@ html:root:where([data-theme="dark"]) :where([data-plex-layout="phone"]), html:ro
|
|
|
2107
2160
|
inset 0 0.67px 0 var(--mobile-glass-rim, transparent),
|
|
2108
2161
|
inset 0 -0.67px 0 var(--mobile-glass-rim, transparent);
|
|
2109
2162
|
--menu-horizontal-selected-background: var(--alpha-15);
|
|
2163
|
+
--slider-tick-color: #38383a;
|
|
2110
2164
|
}
|
|
2111
2165
|
@layer components {
|
|
2112
2166
|
html :where([data-plex-layout="phone"]) :is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"] {
|
|
@@ -1053,6 +1053,14 @@
|
|
|
1053
1053
|
/* =============================================
|
|
1054
1054
|
Slider
|
|
1055
1055
|
============================================= */
|
|
1056
|
+
/* `ticks`: a dot at each step under the track, where the thumb's centre stands on that step (the phone takes
|
|
1057
|
+
iOS 27.2's, touch.css). Its centre is the offset under the track's middle. */
|
|
1058
|
+
--slider-tick-size: 3px;
|
|
1059
|
+
--slider-tick-offset: 8.5px;
|
|
1060
|
+
/* The marks of the scale: under the track on a desktop, over it on an iOS phone (touch.css) */
|
|
1061
|
+
--slider-mark-font-size: 12px;
|
|
1062
|
+
--slider-mark-line-height: normal;
|
|
1063
|
+
--slider-mark-color: var(--color-text);
|
|
1056
1064
|
|
|
1057
1065
|
/* =============================================
|
|
1058
1066
|
Switch
|
|
@@ -1320,6 +1328,7 @@
|
|
|
1320
1328
|
--tab-bar-item-color: var(--gray-750);
|
|
1321
1329
|
--slider-track-color: var(--gray-150);
|
|
1322
1330
|
--slider-range-color: var(--gray-450);
|
|
1331
|
+
--slider-tick-color: var(--gray-200);
|
|
1323
1332
|
--switch-track-color: var(--gray-150);
|
|
1324
1333
|
--switch-track-color-hover: var(--gray-200);
|
|
1325
1334
|
--switch-track-color-checked: var(--gray-900);
|
|
@@ -1389,6 +1398,7 @@
|
|
|
1389
1398
|
--tab-bar-item-color: var(--gray-850);
|
|
1390
1399
|
--slider-track-color: var(--gray-400);
|
|
1391
1400
|
--slider-range-color: var(--gray-600);
|
|
1401
|
+
--slider-tick-color: var(--gray-350);
|
|
1392
1402
|
--switch-track-color: var(--gray-400);
|
|
1393
1403
|
--switch-track-color-hover: var(--gray-450);
|
|
1394
1404
|
--switch-track-color-checked: var(--blue-400);
|
|
@@ -1494,6 +1494,12 @@ export const tokenLayers = [
|
|
|
1494
1494
|
"--select-control-font-weight": "var(--font-weight-normal)",
|
|
1495
1495
|
"--slider-track-color": "light-dark(var(--gray-150), var(--gray-400))",
|
|
1496
1496
|
"--slider-range-color": "light-dark(var(--gray-450), var(--gray-600))",
|
|
1497
|
+
"--slider-tick-size": "3px",
|
|
1498
|
+
"--slider-tick-offset": "8.5px",
|
|
1499
|
+
"--slider-tick-color": "light-dark(var(--gray-200), var(--gray-350))",
|
|
1500
|
+
"--slider-mark-font-size": "12px",
|
|
1501
|
+
"--slider-mark-line-height": "normal",
|
|
1502
|
+
"--slider-mark-color": "var(--color-text)",
|
|
1497
1503
|
"--switch-track-width": "32px",
|
|
1498
1504
|
"--switch-track-height": "19px",
|
|
1499
1505
|
"--switch-track-color": "light-dark(var(--gray-150), var(--gray-400))",
|
|
@@ -1678,7 +1684,7 @@ export const tokenLayers = [
|
|
|
1678
1684
|
1,
|
|
1679
1685
|
0
|
|
1680
1686
|
],
|
|
1681
|
-
"order":
|
|
1687
|
+
"order": 1505,
|
|
1682
1688
|
"tokens": {
|
|
1683
1689
|
"--radius-2xs": "0.125rem",
|
|
1684
1690
|
"--radius-xs": "0.25rem",
|
|
@@ -1710,7 +1716,7 @@ export const tokenLayers = [
|
|
|
1710
1716
|
1,
|
|
1711
1717
|
0
|
|
1712
1718
|
],
|
|
1713
|
-
"order":
|
|
1719
|
+
"order": 1526,
|
|
1714
1720
|
"when": {
|
|
1715
1721
|
"maxWidth": 767
|
|
1716
1722
|
},
|
|
@@ -1742,7 +1748,7 @@ export const tokenLayers = [
|
|
|
1742
1748
|
1,
|
|
1743
1749
|
0
|
|
1744
1750
|
],
|
|
1745
|
-
"order":
|
|
1751
|
+
"order": 1542,
|
|
1746
1752
|
"when": {
|
|
1747
1753
|
"maxWidth": 767
|
|
1748
1754
|
},
|
|
@@ -1788,7 +1794,7 @@ export const tokenLayers = [
|
|
|
1788
1794
|
1,
|
|
1789
1795
|
0
|
|
1790
1796
|
],
|
|
1791
|
-
"order":
|
|
1797
|
+
"order": 1572,
|
|
1792
1798
|
"when": {
|
|
1793
1799
|
"maxWidth": 767
|
|
1794
1800
|
},
|
|
@@ -1805,7 +1811,7 @@ export const tokenLayers = [
|
|
|
1805
1811
|
1,
|
|
1806
1812
|
1
|
|
1807
1813
|
],
|
|
1808
|
-
"order":
|
|
1814
|
+
"order": 1599,
|
|
1809
1815
|
"when": {
|
|
1810
1816
|
"maxWidth": 767
|
|
1811
1817
|
},
|
|
@@ -2154,6 +2160,20 @@ export const tokenLayers = [
|
|
|
2154
2160
|
"--slider-thumb-radius": "var(--radius-full)",
|
|
2155
2161
|
"--slider-thumb-background": "var(--white)",
|
|
2156
2162
|
"--slider-thumb-shadow": "0 0.5px 4px rgb(0 0 0 / 12%), 0 6px 13px rgb(0 0 0 / 12%)",
|
|
2163
|
+
"--slider-track-color": "var(--alpha-10)",
|
|
2164
|
+
"--slider-tick-size": "3px",
|
|
2165
|
+
"--slider-tick-offset": "8.5px",
|
|
2166
|
+
"--slider-tick-color": "light-dark(#c6c6c8, #38383a)",
|
|
2167
|
+
"--slider-mark-font-size": "15px",
|
|
2168
|
+
"--slider-mark-line-height": "20px",
|
|
2169
|
+
"--slider-mark-color": "var(--color-text)",
|
|
2170
|
+
"--slider-marks-baseline": "31px",
|
|
2171
|
+
"--slider-mark-end-inset": "5px",
|
|
2172
|
+
"--slider-marks-order": "-1",
|
|
2173
|
+
"--slider-marks-row": "1",
|
|
2174
|
+
"--slider-control-row": "2",
|
|
2175
|
+
"--slider-marks-margin-top": "0px",
|
|
2176
|
+
"--slider-marks-margin-bottom": "calc( var(--slider-marks-baseline) - var(--slider-control-height) / 2 - var(--slider-mark-line-height) / 2 + 0.36328 * var(--slider-mark-font-size) )",
|
|
2157
2177
|
"--empty-message-title-size": "20px",
|
|
2158
2178
|
"--empty-message-title-leading": "25px",
|
|
2159
2179
|
"--empty-message-title-gap": "1px",
|
|
@@ -2281,7 +2301,7 @@ export const tokenLayers = [
|
|
|
2281
2301
|
1,
|
|
2282
2302
|
1
|
|
2283
2303
|
],
|
|
2284
|
-
"order":
|
|
2304
|
+
"order": 2166,
|
|
2285
2305
|
"when": {
|
|
2286
2306
|
"minWidth": 414,
|
|
2287
2307
|
"maxWidth": 767
|
|
@@ -2299,7 +2319,7 @@ export const tokenLayers = [
|
|
|
2299
2319
|
1,
|
|
2300
2320
|
1
|
|
2301
2321
|
],
|
|
2302
|
-
"order":
|
|
2322
|
+
"order": 2167,
|
|
2303
2323
|
"when": {
|
|
2304
2324
|
"maxWidth": 575
|
|
2305
2325
|
},
|
|
@@ -3762,10 +3782,20 @@ export const resolvedTokens = {
|
|
|
3762
3782
|
"--skeleton-background": "rgba(13, 13, 13, 0.08)",
|
|
3763
3783
|
"--skeleton-radius": 8,
|
|
3764
3784
|
"--slider-control-height": 52,
|
|
3785
|
+
"--slider-control-row": 2,
|
|
3765
3786
|
"--slider-label-font-size": 17,
|
|
3766
3787
|
"--slider-label-gap": 0,
|
|
3767
3788
|
"--slider-label-height": 44,
|
|
3768
3789
|
"--slider-label-line-height": 22,
|
|
3790
|
+
"--slider-mark-color": "#0d0d0d",
|
|
3791
|
+
"--slider-mark-end-inset": 5,
|
|
3792
|
+
"--slider-mark-font-size": 15,
|
|
3793
|
+
"--slider-mark-line-height": 20,
|
|
3794
|
+
"--slider-marks-baseline": 31,
|
|
3795
|
+
"--slider-marks-margin-bottom": 0.4492,
|
|
3796
|
+
"--slider-marks-margin-top": 0,
|
|
3797
|
+
"--slider-marks-order": -1,
|
|
3798
|
+
"--slider-marks-row": 1,
|
|
3769
3799
|
"--slider-padding-bottom": 0,
|
|
3770
3800
|
"--slider-range-color": "#767676",
|
|
3771
3801
|
"--slider-thumb-background": "#ffffff",
|
|
@@ -3773,7 +3803,10 @@ export const resolvedTokens = {
|
|
|
3773
3803
|
"--slider-thumb-radius": 9999,
|
|
3774
3804
|
"--slider-thumb-shadow": "0 0.5px 4px rgba(0, 0, 0, 0.12), 0 6px 13px rgba(0, 0, 0, 0.12)",
|
|
3775
3805
|
"--slider-thumb-width": 38,
|
|
3776
|
-
"--slider-
|
|
3806
|
+
"--slider-tick-color": "#c6c6c8",
|
|
3807
|
+
"--slider-tick-offset": 8.5,
|
|
3808
|
+
"--slider-tick-size": 3,
|
|
3809
|
+
"--slider-track-color": "rgba(13, 13, 13, 0.1)",
|
|
3777
3810
|
"--slider-track-radius": 3,
|
|
3778
3811
|
"--slider-track-size": 6,
|
|
3779
3812
|
"--slider-unit-color": "rgba(13, 13, 13, 0.5)",
|
|
@@ -5555,10 +5588,20 @@ export const resolvedTokens = {
|
|
|
5555
5588
|
"--skeleton-background": "rgba(255, 255, 255, 0.12)",
|
|
5556
5589
|
"--skeleton-radius": 8,
|
|
5557
5590
|
"--slider-control-height": 52,
|
|
5591
|
+
"--slider-control-row": 2,
|
|
5558
5592
|
"--slider-label-font-size": 17,
|
|
5559
5593
|
"--slider-label-gap": 0,
|
|
5560
5594
|
"--slider-label-height": 44,
|
|
5561
5595
|
"--slider-label-line-height": 22,
|
|
5596
|
+
"--slider-mark-color": "#ffffff",
|
|
5597
|
+
"--slider-mark-end-inset": 5,
|
|
5598
|
+
"--slider-mark-font-size": 15,
|
|
5599
|
+
"--slider-mark-line-height": 20,
|
|
5600
|
+
"--slider-marks-baseline": 31,
|
|
5601
|
+
"--slider-marks-margin-bottom": 0.4492,
|
|
5602
|
+
"--slider-marks-margin-top": 0,
|
|
5603
|
+
"--slider-marks-order": -1,
|
|
5604
|
+
"--slider-marks-row": 1,
|
|
5562
5605
|
"--slider-padding-bottom": 0,
|
|
5563
5606
|
"--slider-range-color": "#8f8f8f",
|
|
5564
5607
|
"--slider-thumb-background": "#ffffff",
|
|
@@ -5566,7 +5609,10 @@ export const resolvedTokens = {
|
|
|
5566
5609
|
"--slider-thumb-radius": 9999,
|
|
5567
5610
|
"--slider-thumb-shadow": "0 0.5px 4px rgba(0, 0, 0, 0.12), 0 6px 13px rgba(0, 0, 0, 0.12)",
|
|
5568
5611
|
"--slider-thumb-width": 38,
|
|
5569
|
-
"--slider-
|
|
5612
|
+
"--slider-tick-color": "#38383a",
|
|
5613
|
+
"--slider-tick-offset": 8.5,
|
|
5614
|
+
"--slider-tick-size": 3,
|
|
5615
|
+
"--slider-track-color": "rgba(255, 255, 255, 0.1)",
|
|
5570
5616
|
"--slider-track-radius": 3,
|
|
5571
5617
|
"--slider-track-size": 6,
|
|
5572
5618
|
"--slider-unit-color": "rgba(255, 255, 255, 0.5)",
|