@plexui/styles 0.1.45 → 0.1.46

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.
@@ -109,6 +109,20 @@
109
109
  .Thumb[data-disabled] {
110
110
  cursor: default;
111
111
  pointer-events: none;
112
+ }/* Disabled, the fill takes the track's color and both lighten to 60% of the track, as the accent leaves a
113
+ disabled macOS slider (macOS 27 kit, Slider, State=Disabled 8536:112: the track and its filled part both
114
+ the label color at 6%, where Idle has the track at 10% and the filled part in the accent; the filled part
115
+ lies over the track, so it stays a shade darker; the knob as Idle). The knob's ring is the fill's color,
116
+ so it lightens with it. On a phone the iOS kit's half opacity stands instead (below). */.Slider[data-disabled] {
117
+ --slider-disabled-color: color-mix(in srgb, var(--slider-track-color) 60%, transparent);
118
+ }
119
+
120
+ .Slider[data-disabled] :is(.Track, .Range) {
121
+ background: var(--slider-disabled-color);
122
+ }
123
+
124
+ .Slider[data-disabled] .Thumb {
125
+ box-shadow: var(--slider-thumb-shadow, inset 0 0 0 2px var(--slider-disabled-color));
112
126
  }.SliderLabel {
113
127
  display: flex;
114
128
  align-items: center;
@@ -273,10 +287,22 @@
273
287
  box-shadow: var(--mobile-knob-lens-shadow, var(--slider-thumb-shadow, inset 0 0 0 2px var(--slider-range-color)));
274
288
  }
275
289
 
276
- /* Disabled, the track, its fill and the knob show at half opacity (State=Disabled). */
290
+ /* Disabled, the track, its fill and the knob show at half opacity (State=Disabled), in their own colors. */
277
291
  .Slider[data-disabled] {
278
292
  opacity: 0.5;
279
293
  }
294
+
295
+ .Slider[data-disabled] .Track {
296
+ background: var(--slider-track-color);
297
+ }
298
+
299
+ .Slider[data-disabled] .Range {
300
+ background: var(--slider-range-color);
301
+ }
302
+
303
+ .Slider[data-disabled] .Thumb {
304
+ box-shadow: var(--slider-thumb-shadow, inset 0 0 0 2px var(--slider-range-color));
305
+ }
280
306
  }
281
307
  :where([data-plex-layout="phone"]) .SliderValue {
282
308
  height: auto;
@@ -324,8 +350,20 @@
324
350
  box-shadow: var(--mobile-knob-lens-shadow, var(--slider-thumb-shadow, inset 0 0 0 2px var(--slider-range-color)));
325
351
  }
326
352
 
327
- /* Disabled, the track, its fill and the knob show at half opacity (State=Disabled). */
353
+ /* Disabled, the track, its fill and the knob show at half opacity (State=Disabled), in their own colors. */
328
354
  :where([data-plex-layout="phone"]) .Slider[data-disabled] {
329
355
  opacity: 0.5;
330
356
  }
357
+
358
+ :where([data-plex-layout="phone"]) .Slider[data-disabled] .Track {
359
+ background: var(--slider-track-color);
360
+ }
361
+
362
+ :where([data-plex-layout="phone"]) .Slider[data-disabled] .Range {
363
+ background: var(--slider-range-color);
364
+ }
365
+
366
+ :where([data-plex-layout="phone"]) .Slider[data-disabled] .Thumb {
367
+ box-shadow: var(--slider-thumb-shadow, inset 0 0 0 2px var(--slider-range-color));
368
+ }
331
369
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plexui/styles",
3
- "version": "0.1.45",
3
+ "version": "0.1.46",
4
4
  "description": "Framework-agnostic CSS for Plex UI: design tokens, globals and component styles",
5
5
  "type": "module",
6
6
  "license": "MIT",