@plexui/styles 0.7.0 → 0.8.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.
@@ -459,8 +459,11 @@ background: var(--gray-25);
459
459
  margin-inline: var(--menu-check-icon-offset, 2px) 0;
460
460
  }
461
461
 
462
+ /* An iOS list draws no scroller as it opens: a browser flashes its overlay scrollbar on a scroller that appears,
463
+ for a second on every open. The list still scrolls by touch, wheel and keys. */
462
464
  .OptionsList {
463
465
  min-height: 0;
466
+ scrollbar-width: none;
464
467
  }
465
468
 
466
469
  /* A row is 42pt, as a menu row is (Menu.module.css) and the rows of a picker's pop-up menu are (ref-app pickers,
@@ -738,8 +741,11 @@ background: var(--gray-25);
738
741
  margin-inline: var(--menu-check-icon-offset, 2px) 0;
739
742
  }
740
743
 
744
+ /* An iOS list draws no scroller as it opens: a browser flashes its overlay scrollbar on a scroller that appears,
745
+ for a second on every open. The list still scrolls by touch, wheel and keys. */
741
746
  :where([data-plex-layout="phone"]) .OptionsList {
742
747
  min-height: 0;
748
+ scrollbar-width: none;
743
749
  }
744
750
 
745
751
  /* A row is 42pt, as a menu row is (Menu.module.css) and the rows of a picker's pop-up menu are (ref-app pickers,
@@ -53,7 +53,9 @@
53
53
  width: 32px;
54
54
  height: 32px;
55
55
  flex-shrink: 0;
56
- }:global([data-sidebar="collapsed"]) .Header > div:not(:has(.Trigger)) > span {
56
+ }/* The logo's text, in a wrapper that holds no trigger. The span asks its own siblings (:has on the subject is cheap):
57
+ a :has() on the wrapper, left of a subject of a tag alone, makes every change to the page restyle much of it. A
58
+ title keeps its own rule (.HeaderTitle). */:global([data-sidebar="collapsed"]) .Header > div > span:not(.HeaderTitle, .Trigger ~ *, :has(~ .Trigger, ~ * .Trigger)) {
57
59
  opacity: 0;
58
60
  pointer-events: none;
59
61
  }/* Header title text - hidden when collapsed */.HeaderTitle {
@@ -209,7 +209,61 @@
209
209
  }.SliderContainer {
210
210
  position: relative;
211
211
  width: 100%;
212
- }.MarksContainer {
212
+ }/* Symbols at the ends of the track, as a slider of iOS Settings draws its minimum and maximum images (a small and a
213
+ large A, a speaker and a louder one): they stand beside the track, centred on it, and the marks run under the track
214
+ alone. The container becomes the middle column of a grid whose first row the slider sets. With no box of its own
215
+ it can't be the query container the phone thumb measures the track against (a subgrid can't be one either: a
216
+ size container is laid out on its own), so there the slider is that container (below). Horizontal only. */.SliderAdorned {
217
+ display: grid;
218
+ grid-template-columns: auto minmax(0, 1fr) auto;
219
+ -moz-column-gap: var(--slider-adornment-gap, 10px);
220
+ column-gap: var(--slider-adornment-gap, 10px);
221
+ width: 100%;
222
+ }
223
+
224
+ .SliderAdorned > .SliderContainer {
225
+ display: contents;
226
+ }
227
+
228
+ .SliderAdorned .Slider {
229
+ grid-column: 2;
230
+ grid-row: 1;
231
+ }
232
+
233
+ .SliderAdorned .MarksContainer {
234
+ grid-column: 2;
235
+ grid-row: 2;
236
+ }.Adornment {
237
+ display: inline-flex;
238
+ grid-row: 1;
239
+ align-items: center;
240
+ justify-content: center;
241
+ /* The slider holds its padding under the track: the symbols stand level with the track, not the box */
242
+ padding-bottom: var(--slider-padding-bottom, 6px);
243
+ color: var(--slider-adornment-color, var(--color-text-secondary));
244
+ font-size: var(--slider-adornment-font-size, var(--font-text-sm-size));
245
+ line-height: 1;
246
+ -webkit-user-select: none;
247
+ -moz-user-select: none;
248
+ user-select: none;
249
+ }
250
+
251
+ .Adornment > svg {
252
+ width: var(--slider-adornment-icon-size, 20px);
253
+ height: var(--slider-adornment-icon-size, 20px);
254
+ }
255
+
256
+ .Adornment[data-side="start"] {
257
+ grid-column: 1;
258
+ }
259
+
260
+ .Adornment[data-side="end"] {
261
+ grid-column: 3;
262
+ }
263
+
264
+ .SliderAdorned[data-disabled] .Adornment {
265
+ color: var(--slider-adornment-color-disabled, var(--color-text-disabled));
266
+ }.MarksContainer {
213
267
  position: relative;
214
268
  width: 100%;
215
269
  margin-top: 4px;
@@ -283,6 +337,11 @@
283
337
  container-type: inline-size;
284
338
  }
285
339
 
340
+ /* Between symbols the container has no box (.SliderAdorned): the slider, as wide as the track, measures it */
341
+ .SliderAdorned .Slider[data-orientation="horizontal"] {
342
+ container-type: inline-size;
343
+ }
344
+
286
345
  .Slider[data-orientation="horizontal"] {
287
346
  --slider-thumb-travel: clamped;
288
347
  }
@@ -372,6 +431,11 @@
372
431
  container-type: inline-size;
373
432
  }
374
433
 
434
+ /* Between symbols the container has no box (.SliderAdorned): the slider, as wide as the track, measures it */
435
+ :where([data-plex-layout="phone"]) .SliderAdorned .Slider[data-orientation="horizontal"] {
436
+ container-type: inline-size;
437
+ }
438
+
375
439
  :where([data-plex-layout="phone"]) .Slider[data-orientation="horizontal"] {
376
440
  --slider-thumb-travel: clamped;
377
441
  }
@@ -16,7 +16,8 @@
16
16
  row, where iOS puts its reorder control (--sortable-handle-order and the two margins). */.Sortable > :has(> .Handle) {
17
17
  display: flex;
18
18
  align-items: center;
19
- }.Sortable > :has(> .Handle) > :not(.Handle) {
19
+ }/* The row beside its handle, found from the handle's side (before it or after it): a :has() left of a subject of no class or attribute makes every change to the page restyle all of it */.Sortable > * > .Handle ~ :not(.Handle),
20
+ .Sortable > * > :not(.Handle):has(~ .Handle) {
20
21
  flex: 1;
21
22
  min-width: 0;
22
23
  }.Sortable > :has(> .Handle) > .Handle {
@@ -25,6 +26,18 @@
25
26
  margin-inline-end: var(--sortable-handle-margin-end, calc(var(--sortable-handle-inset) * -1));
26
27
  }/* Before a Field row a shown handle may reach into the row's own inline padding (touch.css: the kit's 12px from the value) */.Sortable[data-handles="true"] > :has(> .Handle) > .Handle:has(+ [data-slot="field"][data-row]) {
27
28
  margin-inline-start: var(--sortable-handle-field-margin-start, var(--sortable-handle-margin-start, var(--sortable-handle-inset)));
29
+ }/* `handlePlacement` sets the side on every width, after the rules above so it wins beside a Field row too. Its margins
30
+ are tokens: on a desktop each side mirrors the other (the grip reaches into the row's padding), and touch.css sets
31
+ iOS's own: an end grip 10.17 inside the card, a start grip mirrored. */.Sortable[data-handle-placement="end"] > :has(> .Handle) > .Handle,
32
+ .Sortable[data-handle-placement="end"][data-handles="true"] > :has(> .Handle) > .Handle:has(+ [data-slot="field"][data-row]) {
33
+ order: 1;
34
+ margin-inline-start: var(--sortable-handle-end-margin-start, calc(var(--sortable-handle-inset) * -1));
35
+ margin-inline-end: var(--sortable-handle-end-margin-end, var(--sortable-handle-inset));
36
+ }.Sortable[data-handle-placement="start"] > :has(> .Handle) > .Handle,
37
+ .Sortable[data-handle-placement="start"][data-handles="true"] > :has(> .Handle) > .Handle:has(+ [data-slot="field"][data-row]) {
38
+ order: -1;
39
+ margin-inline-start: var(--sortable-handle-start-margin-start, var(--sortable-handle-inset));
40
+ margin-inline-end: var(--sortable-handle-start-margin-end, calc(var(--sortable-handle-inset) * -1));
28
41
  }/* =============================================
29
42
  Slot (the place a dragged item left, until the drop)
30
43
  ============================================= */.Sortable > [data-sortable-source] {
@@ -706,6 +706,19 @@
706
706
  color: var(--color-text-secondary);
707
707
  }/* Shown only on a phone, in vertical tabs (below). */.Tab > .TabCheckmark {
708
708
  display: none;
709
+ }/* iOS segments carry a title or a symbol and no badge (owner 13.11: «я с бейджами не встречал сегментед контролов
710
+ на ios»): in a phone layout (PhoneLayout, a dialog laid out as on a phone) horizontal tabs draw no badge, and its
711
+ count stays in the segment's name for assistive technology. A page that is only narrow keeps its counts; below
712
+ 768px touch.css hides them, where the page asks for the phone's sizes. */:where([data-plex-layout="phone"]) .Tabs[data-orientation="horizontal"] .TabBadge {
713
+ position: absolute;
714
+ width: 1px;
715
+ height: 1px;
716
+ padding: 0;
717
+ border: 0;
718
+ margin: -1px;
719
+ overflow: hidden;
720
+ clip-path: inset(50%);
721
+ white-space: nowrap;
709
722
  }/* =============================================
710
723
  Phone (iOS 27). iOS switches the views of a screen with one control, the segmented control: plain
711
724
  in content (SwiftUI Picker .segmented, iOS 27.2) and on glass in a bar (iOS 27.2, Calendar IMG_5433);
@@ -744,20 +757,6 @@
744
757
  --tabs-equal-segments: 0;
745
758
  }
746
759
 
747
- /* iOS segments carry a title or a symbol and no badge (owner 13.11: «я с бейджами не встречал сегментед контролов
748
- на ios»). On a phone a badge is not drawn; its count stays in the segment's name for assistive technology. */
749
- .Tabs[data-orientation="horizontal"] .TabBadge {
750
- position: absolute;
751
- width: 1px;
752
- height: 1px;
753
- padding: 0;
754
- border: 0;
755
- margin: -1px;
756
- overflow: hidden;
757
- clip-path: inset(50%);
758
- white-space: nowrap;
759
- }
760
-
761
760
  /* Disabled as a whole, the control shows at half opacity, its capsule, selection and labels alike, as native
762
761
  iOS 27.2 draws it (a disabled SwiftUI Picker: track 246 and labels 127 over white, 14 and 128 over black) and
763
762
  kit iOS 27 does (Segmented Controls 10460:145), not its labels alone. */
@@ -1028,20 +1027,6 @@
1028
1027
  --tabs-equal-segments: 0;
1029
1028
  }
1030
1029
 
1031
- /* iOS segments carry a title or a symbol and no badge (owner 13.11: «я с бейджами не встречал сегментед контролов
1032
- на ios»). On a phone a badge is not drawn; its count stays in the segment's name for assistive technology. */
1033
- :where([data-plex-layout="phone"]) .Tabs[data-orientation="horizontal"] .TabBadge {
1034
- position: absolute;
1035
- width: 1px;
1036
- height: 1px;
1037
- padding: 0;
1038
- border: 0;
1039
- margin: -1px;
1040
- overflow: hidden;
1041
- clip-path: inset(50%);
1042
- white-space: nowrap;
1043
- }
1044
-
1045
1030
  /* Disabled as a whole, the control shows at half opacity, its capsule, selection and labels alike, as native
1046
1031
  iOS 27.2 draws it (a disabled SwiftUI Picker: track 246 and labels 127 over white, 14 and 128 over black) and
1047
1032
  kit iOS 27 does (Segmented Controls 10460:145), not its labels alone. */
@@ -191,13 +191,15 @@
191
191
  min-height: var(--toast-control-size);
192
192
  }
193
193
 
194
+ /* What follows the message reads its place from the toast (below, with a description), so no rule needs a :has()
195
+ on the toast to reach a child of any kind: such a rule makes every change to the page restyle all of it */
194
196
  .Toast[data-styled="true"] > .Content ~ *:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
195
- order: 3;
197
+ order: var(--toast-trailing-order, 3);
196
198
  margin-inline: 8px 0 !important;
197
199
  }
198
200
 
199
201
  .Toast[data-styled="true"] > .Content + *:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
200
- margin-inline-start: 16px !important;
202
+ margin-inline-start: var(--toast-trailing-start, 16px) !important;
201
203
  }
202
204
 
203
205
  .Toast[data-styled="true"] > :is(.ActionButton, .CancelButton):not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
@@ -267,6 +269,8 @@
267
269
  align-items: flex-start !important;
268
270
  row-gap: 12px !important;
269
271
  padding-block: 14px 12px !important;
272
+
273
+ /* Its buttons go under the message at the end (the rules after .Content above) */
270
274
  }
271
275
 
272
276
  .Toast[data-styled="true"]:has(> .Content > .Description) > .Content:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
@@ -280,13 +284,10 @@
280
284
  margin-inline-start: 8px;
281
285
  }
282
286
 
283
- .Toast[data-styled="true"]:has(> .Content > .Description) > .Content ~ *:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
284
- order: 4;
285
- }
286
-
287
- .Toast[data-styled="true"]:has(> .Content > .Description) > .Content + *:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
288
- margin-inline-start: auto !important;
289
- }
287
+ .Toast[data-styled="true"]:has(> .Content > .Description):not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
288
+ --toast-trailing-order: 4;
289
+ --toast-trailing-start: auto;
290
+ }
290
291
 
291
292
  .Toast[data-styled="true"]:has(> .Content > .Description):not(:has(> .Content ~ *)):not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
292
293
  padding-block-end: 14px !important;
@@ -669,13 +669,14 @@
669
669
  }
670
670
 
671
671
  /* Hosts: a Page puts the top bar over its content under the status bar, a Sheet 16 below its top edge. Without a
672
- status bar (a page in a browser, where the top inset is 0) the row keeps the gutter from the window's top, as
673
- its sides do and as a bottom bar keeps from the bottom (owner 13.11: the buttons touched the top). iOS 27.2
672
+ status bar (a page in a browser, where the top inset is 0) the row keeps the air above it that it keeps below
673
+ it, so its controls stand in the middle of the bar (owner 13.11: the buttons touched the top; owner 14.11: the
674
+ 16 of the gutter was more than it should be). iOS 27.2
674
675
  sets a sheet's row of controls there, its centre 38 below the edge, and draws no grabber over it: a grabber
675
676
  (60 by 4, 6 down) shows only on a sheet that changes height (prefersGrabberVisible, measures/sheets.md), and a
676
677
  PlexUI Sheet keeps one height. */
677
678
  .Toolbar[data-host="page"][data-placement="top"] {
678
- --toolbar-padding-top: max(var(--toolbar-gutter), var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
679
+ --toolbar-padding-top: max(var(--toolbar-padding-bottom), var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
679
680
  position: absolute;
680
681
  inset: 0 0 auto;
681
682
  }
@@ -824,7 +825,7 @@
824
825
  }
825
826
 
826
827
  :where([data-mobile-placement="fullscreen"]) .Toolbar[data-host="dialog"][data-placement="top"] {
827
- --toolbar-padding-top: max(var(--toolbar-gutter), var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
828
+ --toolbar-padding-top: max(var(--toolbar-padding-bottom), var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
828
829
  }
829
830
 
830
831
  .Toolbar[data-host="dialog"][data-placement="bottom"] {
@@ -1491,13 +1492,14 @@
1491
1492
  }
1492
1493
 
1493
1494
  /* Hosts: a Page puts the top bar over its content under the status bar, a Sheet 16 below its top edge. Without a
1494
- status bar (a page in a browser, where the top inset is 0) the row keeps the gutter from the window's top, as
1495
- its sides do and as a bottom bar keeps from the bottom (owner 13.11: the buttons touched the top). iOS 27.2
1495
+ status bar (a page in a browser, where the top inset is 0) the row keeps the air above it that it keeps below
1496
+ it, so its controls stand in the middle of the bar (owner 13.11: the buttons touched the top; owner 14.11: the
1497
+ 16 of the gutter was more than it should be). iOS 27.2
1496
1498
  sets a sheet's row of controls there, its centre 38 below the edge, and draws no grabber over it: a grabber
1497
1499
  (60 by 4, 6 down) shows only on a sheet that changes height (prefersGrabberVisible, measures/sheets.md), and a
1498
1500
  PlexUI Sheet keeps one height. */
1499
1501
  :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-placement="top"] {
1500
- --toolbar-padding-top: max(var(--toolbar-gutter), var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
1502
+ --toolbar-padding-top: max(var(--toolbar-padding-bottom), var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
1501
1503
  position: absolute;
1502
1504
  inset: 0 0 auto;
1503
1505
  }
@@ -1646,7 +1648,7 @@
1646
1648
  }
1647
1649
 
1648
1650
  :where([data-plex-layout="phone"]) :where([data-mobile-placement="fullscreen"]) .Toolbar[data-host="dialog"][data-placement="top"] {
1649
- --toolbar-padding-top: max(var(--toolbar-gutter), var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
1651
+ --toolbar-padding-top: max(var(--toolbar-padding-bottom), var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
1650
1652
  }
1651
1653
 
1652
1654
  :where([data-plex-layout="phone"]) .Toolbar[data-host="dialog"][data-placement="bottom"] {
@@ -151,6 +151,9 @@
151
151
  [data-menu-covered] {
152
152
  visibility: hidden;
153
153
  }
154
+ :root {
155
+ --field-group-stack-spacing: 1;
156
+ }
154
157
  :where([data-row]) {
155
158
  --color-text-secondary: var(--mobile-label-secondary);
156
159
  }
@@ -283,6 +286,10 @@
283
286
  --sortable-handle-margin-end: calc(var(--list-row-inset) - 9.83px);
284
287
  --sortable-handle-margin-start: 0px;
285
288
  --sortable-handle-field-margin-start: calc(1px - var(--list-row-inset));
289
+ --sortable-handle-end-margin-start: 0px;
290
+ --sortable-handle-end-margin-end: calc(var(--list-row-inset) - 9.83px);
291
+ --sortable-handle-start-margin-start: calc(var(--list-row-inset) - 9.83px);
292
+ --sortable-handle-start-margin-end: 0px;
286
293
  --sortable-handle-color: var(--mobile-label-tertiary);
287
294
  --sortable-handle-color-hover: var(--mobile-label-tertiary);
288
295
  --menu-item-highlight-opacity: 0;
@@ -520,40 +527,43 @@
520
527
  --slider-thumb-radius: var(--radius-full);
521
528
  --slider-thumb-background: var(--white);
522
529
  --slider-thumb-shadow: 0 0.5px 4px rgb(0 0 0 / 12%), 0 6px 13px rgb(0 0 0 / 12%);
523
- --empty-message-title-size: 22px;
524
- --empty-message-title-leading: 28px;
525
- --empty-message-title-gap: 4px;
530
+ --empty-message-title-size: 20px;
531
+ --empty-message-title-leading: 25px;
532
+ --empty-message-title-gap: 1px;
526
533
  --empty-message-title-only-gap: 0px;
527
534
  --empty-message-title-weight: var(--font-weight-bold);
528
535
  --empty-message-title-tracking: var(--font-sans-tracking);
529
536
  --empty-message-description-size: 17px;
530
- --empty-message-description-leading: 22px;
537
+ --empty-message-description-leading: 25px;
531
538
  --empty-message-description-weight: var(--font-weight-normal);
532
539
  --empty-message-description-color: var(--mobile-label-secondary, var(--color-text-secondary));
533
540
  --empty-message-compact-description-size: 15px;
534
541
  --empty-message-compact-description-leading: 20px;
535
- --empty-message-padding-inline: 40px;
542
+ --empty-message-padding-inline: 32px;
536
543
  --empty-message-text-inset: 0px;
537
- --empty-message-padding-bottom: 40px;
538
- --empty-message-action-spacing: 24px;
539
- --empty-message-action-gap: 12px;
540
- --empty-message-fill-action-inset: 24px;
541
- --empty-message-fill-content-margin: auto;
542
- --empty-message-fill-action-margin: auto;
543
- --empty-message-fill-action-align: stretch;
544
- --empty-message-fill-action-width: 100%;
544
+ --empty-message-padding-bottom: 0px;
545
+ --empty-message-action-spacing: 28px;
546
+ --empty-message-action-gap: 14px;
547
+ --empty-message-fill-action-inset: 0px;
548
+ --empty-message-fill-content-margin: 0px;
549
+ --empty-message-fill-action-margin: var(--empty-message-action-spacing);
550
+ --empty-message-fill-action-align: center;
551
+ --empty-message-fill-action-width: auto;
545
552
  --empty-message-multi-direction: column;
546
- --empty-message-multi-align: stretch;
547
- --empty-message-multi-action-width: 100%;
548
- --empty-message-action-size: 50px;
549
- --empty-message-action-font-size: 17px;
550
- --empty-message-action-line-height: 22px;
551
- --empty-message-action-font-weight: 510;
552
- --empty-message-action-gutter: 16px;
553
- --empty-message-icon-badge-size: 64px;
554
- --empty-message-icon-size: 28px;
555
- --empty-message-icon-radius: var(--radius-full);
556
- --empty-message-icon-gap: 24px;
553
+ --empty-message-multi-align: center;
554
+ --empty-message-multi-items: center;
555
+ --empty-message-multi-action-width: auto;
556
+ --empty-message-action-size: 28px;
557
+ --empty-message-action-font-size: 15px;
558
+ --empty-message-action-line-height: 20px;
559
+ --empty-message-action-font-weight: var(--font-weight-normal);
560
+ --empty-message-action-gutter: 12px;
561
+ --empty-message-icon-badge-size: 48px;
562
+ --empty-message-icon-size: 48px;
563
+ --empty-message-icon-radius: 0px;
564
+ --empty-message-icon-gap: 19px;
565
+ --empty-message-icon-background: transparent;
566
+ --empty-message-icon-secondary-color: var(--mobile-label-secondary, var(--color-text-secondary));
557
567
  --indicator-default-size: 20px;
558
568
  --indicator-container-type: size;
559
569
  --indicator-ring-display: none;
@@ -587,6 +597,10 @@
587
597
  --field-row-text-padding-block: 12px;
588
598
  --field-row-gap: 16px;
589
599
  --field-row-disclosure-gap: 8px;
600
+ --field-row-icon-size: 28px;
601
+ --field-row-icon-gap: 8px;
602
+ --field-row-icon-symbol-size: 24px;
603
+ --field-row-icon-radius: 7px;
590
604
  --field-row-text-display: flex;
591
605
  --field-row-label-font-size: 17px;
592
606
  --field-row-label-line-height: 22px;
@@ -668,6 +682,17 @@
668
682
  --segmented-control-symbol-size: 20px;
669
683
  --segmented-control-option-disabled-color: var(--alpha-20);
670
684
  }
685
+ html :is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"] [data-slot="tab-badge"] {
686
+ position: absolute;
687
+ width: 1px;
688
+ height: 1px;
689
+ padding: 0;
690
+ border: 0;
691
+ margin: -1px;
692
+ overflow: hidden;
693
+ clip-path: inset(50%);
694
+ white-space: nowrap;
695
+ }
671
696
  html [data-mobile-material="glass"]:is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"]:where([data-mobile-size="small"], [data-size="3xs"], [data-size="2xs"], [data-size="xs"], [data-size="sm"], [data-toolbar-row] [data-size="md"]) {
672
697
  --segmented-control-background: var(--mobile-glass-background);
673
698
  --segmented-control-sheen: linear-gradient(var(--segmented-control-mobile-plain-background), var(--segmented-control-mobile-plain-background));
@@ -819,6 +844,9 @@
819
844
  :where([data-plex-layout="phone"]) [data-menu-covered] {
820
845
  visibility: hidden;
821
846
  }
847
+ :root :where([data-plex-layout="phone"]) {
848
+ --field-group-stack-spacing: 1;
849
+ }
822
850
  :where([data-plex-layout="phone"]) :where([data-row]) {
823
851
  --color-text-secondary: var(--mobile-label-secondary);
824
852
  }
@@ -951,6 +979,10 @@ html:root :where([data-plex-layout="phone"]) {
951
979
  --sortable-handle-margin-end: calc(var(--list-row-inset) - 9.83px);
952
980
  --sortable-handle-margin-start: 0px;
953
981
  --sortable-handle-field-margin-start: calc(1px - var(--list-row-inset));
982
+ --sortable-handle-end-margin-start: 0px;
983
+ --sortable-handle-end-margin-end: calc(var(--list-row-inset) - 9.83px);
984
+ --sortable-handle-start-margin-start: calc(var(--list-row-inset) - 9.83px);
985
+ --sortable-handle-start-margin-end: 0px;
954
986
  --sortable-handle-color: var(--mobile-label-tertiary);
955
987
  --sortable-handle-color-hover: var(--mobile-label-tertiary);
956
988
  --menu-item-highlight-opacity: 0;
@@ -1188,40 +1220,43 @@ html:root :where([data-plex-layout="phone"]) {
1188
1220
  --slider-thumb-radius: var(--radius-full);
1189
1221
  --slider-thumb-background: var(--white);
1190
1222
  --slider-thumb-shadow: 0 0.5px 4px rgb(0 0 0 / 12%), 0 6px 13px rgb(0 0 0 / 12%);
1191
- --empty-message-title-size: 22px;
1192
- --empty-message-title-leading: 28px;
1193
- --empty-message-title-gap: 4px;
1223
+ --empty-message-title-size: 20px;
1224
+ --empty-message-title-leading: 25px;
1225
+ --empty-message-title-gap: 1px;
1194
1226
  --empty-message-title-only-gap: 0px;
1195
1227
  --empty-message-title-weight: var(--font-weight-bold);
1196
1228
  --empty-message-title-tracking: var(--font-sans-tracking);
1197
1229
  --empty-message-description-size: 17px;
1198
- --empty-message-description-leading: 22px;
1230
+ --empty-message-description-leading: 25px;
1199
1231
  --empty-message-description-weight: var(--font-weight-normal);
1200
1232
  --empty-message-description-color: var(--mobile-label-secondary, var(--color-text-secondary));
1201
1233
  --empty-message-compact-description-size: 15px;
1202
1234
  --empty-message-compact-description-leading: 20px;
1203
- --empty-message-padding-inline: 40px;
1235
+ --empty-message-padding-inline: 32px;
1204
1236
  --empty-message-text-inset: 0px;
1205
- --empty-message-padding-bottom: 40px;
1206
- --empty-message-action-spacing: 24px;
1207
- --empty-message-action-gap: 12px;
1208
- --empty-message-fill-action-inset: 24px;
1209
- --empty-message-fill-content-margin: auto;
1210
- --empty-message-fill-action-margin: auto;
1211
- --empty-message-fill-action-align: stretch;
1212
- --empty-message-fill-action-width: 100%;
1237
+ --empty-message-padding-bottom: 0px;
1238
+ --empty-message-action-spacing: 28px;
1239
+ --empty-message-action-gap: 14px;
1240
+ --empty-message-fill-action-inset: 0px;
1241
+ --empty-message-fill-content-margin: 0px;
1242
+ --empty-message-fill-action-margin: var(--empty-message-action-spacing);
1243
+ --empty-message-fill-action-align: center;
1244
+ --empty-message-fill-action-width: auto;
1213
1245
  --empty-message-multi-direction: column;
1214
- --empty-message-multi-align: stretch;
1215
- --empty-message-multi-action-width: 100%;
1216
- --empty-message-action-size: 50px;
1217
- --empty-message-action-font-size: 17px;
1218
- --empty-message-action-line-height: 22px;
1219
- --empty-message-action-font-weight: 510;
1220
- --empty-message-action-gutter: 16px;
1221
- --empty-message-icon-badge-size: 64px;
1222
- --empty-message-icon-size: 28px;
1223
- --empty-message-icon-radius: var(--radius-full);
1224
- --empty-message-icon-gap: 24px;
1246
+ --empty-message-multi-align: center;
1247
+ --empty-message-multi-items: center;
1248
+ --empty-message-multi-action-width: auto;
1249
+ --empty-message-action-size: 28px;
1250
+ --empty-message-action-font-size: 15px;
1251
+ --empty-message-action-line-height: 20px;
1252
+ --empty-message-action-font-weight: var(--font-weight-normal);
1253
+ --empty-message-action-gutter: 12px;
1254
+ --empty-message-icon-badge-size: 48px;
1255
+ --empty-message-icon-size: 48px;
1256
+ --empty-message-icon-radius: 0px;
1257
+ --empty-message-icon-gap: 19px;
1258
+ --empty-message-icon-background: transparent;
1259
+ --empty-message-icon-secondary-color: var(--mobile-label-secondary, var(--color-text-secondary));
1225
1260
  --indicator-default-size: 20px;
1226
1261
  --indicator-container-type: size;
1227
1262
  --indicator-ring-display: none;
@@ -1255,6 +1290,10 @@ html:root :where([data-plex-layout="phone"]) {
1255
1290
  --field-row-text-padding-block: 12px;
1256
1291
  --field-row-gap: 16px;
1257
1292
  --field-row-disclosure-gap: 8px;
1293
+ --field-row-icon-size: 28px;
1294
+ --field-row-icon-gap: 8px;
1295
+ --field-row-icon-symbol-size: 24px;
1296
+ --field-row-icon-radius: 7px;
1258
1297
  --field-row-text-display: flex;
1259
1298
  --field-row-label-font-size: 17px;
1260
1299
  --field-row-label-line-height: 22px;
@@ -1336,6 +1375,17 @@ html:root:where([data-theme="dark"]) :where([data-plex-layout="phone"]), html:ro
1336
1375
  --segmented-control-symbol-size: 20px;
1337
1376
  --segmented-control-option-disabled-color: var(--alpha-20);
1338
1377
  }
1378
+ html :where([data-plex-layout="phone"]) :is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"] [data-slot="tab-badge"] {
1379
+ position: absolute;
1380
+ width: 1px;
1381
+ height: 1px;
1382
+ padding: 0;
1383
+ border: 0;
1384
+ margin: -1px;
1385
+ overflow: hidden;
1386
+ clip-path: inset(50%);
1387
+ white-space: nowrap;
1388
+ }
1339
1389
  html :where([data-plex-layout="phone"]) [data-mobile-material="glass"]:is([data-variant="segmented"], [data-variant="underline"])[data-orientation="horizontal"]:where([data-mobile-size="small"], [data-size="3xs"], [data-size="2xs"], [data-size="xs"], [data-size="sm"], [data-toolbar-row] [data-size="md"]) {
1340
1390
  --segmented-control-background: var(--mobile-glass-background);
1341
1391
  --segmented-control-sheen: linear-gradient(var(--segmented-control-mobile-plain-background), var(--segmented-control-mobile-plain-background));
@@ -290,6 +290,15 @@
290
290
  --field-row-label-width: 80px;
291
291
  --field-row-column-width: 40%;
292
292
  --field-row-row-gap: 2px;
293
+ /* A row's leading image (Field `icon`): the column, the space to the text, a symbol's size in it, an app
294
+ picture's corners and the symbol's color. 28 and 8 on a phone (touch.css). */
295
+ /* A full row's hover with a mouse: the light fill of a table row, not a button's (owner 14.11: «цвет hover
296
+ слишком темный») */
297
+ --field-row-icon-size: 32px;
298
+ --field-row-icon-gap: 12px;
299
+ --field-row-icon-symbol-size: 20px;
300
+ --field-row-icon-radius: 7px;
301
+ --field-row-icon-color: var(--color-text);
293
302
  --field-row-text-display: flex;
294
303
  --field-row-label-font-size: var(--font-text-sm-size);
295
304
  --field-row-label-line-height: var(--font-text-sm-line-height);
@@ -1213,6 +1222,7 @@
1213
1222
  :where(:root), :where([data-theme="light"]) {
1214
1223
  --avatar-image-border-color: var(--alpha-04);
1215
1224
  --input-outline-border-color-hover: var(--alpha-25);
1225
+ --field-row-hover-background: var(--alpha-03);
1216
1226
  --floating-input-border-color: rgb(0 0 0 / 15%);
1217
1227
  --floating-input-border-color-hover: rgb(0 0 0 / 20%);
1218
1228
  --file-upload-separator-color: rgb(0 0 0 / 8%);
@@ -1277,6 +1287,7 @@
1277
1287
  :where([data-theme="dark"]) {
1278
1288
  --avatar-image-border-color: var(--alpha-15);
1279
1289
  --input-outline-border-color-hover: var(--alpha-30);
1290
+ --field-row-hover-background: var(--alpha-05);
1280
1291
  --floating-input-border-color: rgb(255 255 255 / 16%);
1281
1292
  --floating-input-border-color-hover: rgb(255 255 255 / 24%);
1282
1293
  --file-upload-separator-color: rgb(255 255 255 / 8%);
@@ -11,6 +11,7 @@
11
11
  ============================================= */
12
12
  --alpha-0: color-mix(in oklab, var(--alpha-base) 0%, transparent);
13
13
  --alpha-02: color-mix(in oklab, var(--alpha-base) 2%, transparent);
14
+ --alpha-03: color-mix(in oklab, var(--alpha-base) 3%, transparent);
14
15
  --alpha-04: color-mix(in oklab, var(--alpha-base) 4%, transparent);
15
16
  --alpha-05: color-mix(in oklab, var(--alpha-base) 5%, transparent);
16
17
  --alpha-06: color-mix(in oklab, var(--alpha-base) 6%, transparent);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plexui/styles",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "Framework-agnostic CSS for Plex UI: design tokens, globals and component styles",
5
5
  "type": "module",
6
6
  "license": "MIT",