@plexui/styles 0.16.0 → 0.16.2

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.
@@ -361,17 +361,20 @@
361
361
  --button-size: 2rem;
362
362
  --button-uniform-size: 2rem;
363
363
  --navigation-button-icon-size: 20px;
364
+ /* The glyph takes the button's own text tokens (a ghost button paints with them), not a bare color */
365
+ --button-text-color: var(--color-text-tertiary);
366
+ --button-text-color-hover: var(--color-text);
364
367
  padding: 0;
365
368
  border-radius: 0.5rem;
366
369
  background: var(--dialog-close-background);
367
- color: var(--color-text-tertiary);
370
+ color: var(--button-text-color);
368
371
  transition: background-color 0.2s var(--cubic-enter), color 0.2s var(--cubic-enter);
369
372
  }
370
373
 
371
374
  @media (hover: hover) and (pointer: fine) {
372
375
  .Content .CloseButton[data-navigation-action]:hover:where(:not(:root[data-input="touch"] *)) {
373
376
  background: var(--dialog-close-background-hover);
374
- color: var(--color-text);
377
+ color: var(--button-text-color-hover);
375
378
  }
376
379
  }
377
380
 
@@ -490,9 +493,11 @@
490
493
  --button-size: var(--dialog-mobile-action-size);
491
494
  --button-uniform-size: var(--dialog-mobile-action-size);
492
495
  --navigation-button-icon-size: var(--dialog-mobile-close-icon-size);
496
+ --button-text-color: var(--color-text-secondary);
497
+ --button-text-color-hover: var(--color-text-secondary);
493
498
  border-radius: var(--radius-full);
494
499
  background: transparent;
495
- color: var(--color-text-secondary);
500
+ color: var(--button-text-color);
496
501
  }
497
502
 
498
503
  @media (hover: hover) and (pointer: fine) {
@@ -580,9 +585,11 @@
580
585
  --button-size: var(--dialog-mobile-action-size);
581
586
  --button-uniform-size: var(--dialog-mobile-action-size);
582
587
  --navigation-button-icon-size: var(--dialog-mobile-close-icon-size);
588
+ --button-text-color: var(--color-text-secondary);
589
+ --button-text-color-hover: var(--color-text-secondary);
583
590
  border-radius: var(--radius-full);
584
591
  background: transparent;
585
- color: var(--color-text-secondary);
592
+ color: var(--button-text-color);
586
593
  }
587
594
 
588
595
  @media (hover: hover) and (pointer: fine) {
@@ -840,8 +847,20 @@
840
847
  --button-size: var(--dialog-sheet-close-size);
841
848
  --button-uniform-size: var(--dialog-sheet-close-size);
842
849
  --navigation-button-icon-size: var(--dialog-sheet-close-icon-size);
843
- /* The glass Close glyph uses the same label role as Page NavigationButton close (IMG_5453). */
844
- color: var(--color-text);
850
+ /* The glass Close glyph uses the same label role as Page NavigationButton close (IMG_5453), through the
851
+ button's text tokens: the ghost button paints its glyph with them, so a bare color lost to them */
852
+ --button-text-color: var(--color-text);
853
+ --button-text-color-hover: var(--color-text);
854
+ color: var(--button-text-color);
855
+ }
856
+
857
+ /* The same for the Close (or a step's Back) at the leading edge of the bar a Dialog.Header becomes: a ghost
858
+ NavigationButton of the secondary color, whose glyph took the secondary ghost token. A disabled one keeps
859
+ the tertiary label of a disabled bar button; a leading action of the app's own (a Confirm, a danger color, a solid fill)
860
+ keeps its colors. */
861
+ .Content[data-mobile-variant="sheet"] .BarClose > :is([data-navigation-action="close"], [data-navigation-action="back"])[data-color="secondary"]:is([data-variant="ghost"], [data-variant="soft"]):not([data-disabled]) {
862
+ --button-text-color: var(--color-text);
863
+ --button-text-color-hover: var(--color-text);
845
864
  }
846
865
 
847
866
  /* The glass of a sheet's bar: Close, the header actions and a control in the header, such as a segmented
@@ -1427,8 +1446,20 @@
1427
1446
  --button-size: var(--dialog-sheet-close-size);
1428
1447
  --button-uniform-size: var(--dialog-sheet-close-size);
1429
1448
  --navigation-button-icon-size: var(--dialog-sheet-close-icon-size);
1430
- /* The glass Close glyph uses the same label role as Page NavigationButton close (IMG_5453). */
1431
- color: var(--color-text);
1449
+ /* The glass Close glyph uses the same label role as Page NavigationButton close (IMG_5453), through the
1450
+ button's text tokens: the ghost button paints its glyph with them, so a bare color lost to them */
1451
+ --button-text-color: var(--color-text);
1452
+ --button-text-color-hover: var(--color-text);
1453
+ color: var(--button-text-color);
1454
+ }
1455
+
1456
+ /* The same for the Close (or a step's Back) at the leading edge of the bar a Dialog.Header becomes: a ghost
1457
+ NavigationButton of the secondary color, whose glyph took the secondary ghost token. A disabled one keeps
1458
+ the tertiary label of a disabled bar button; a leading action of the app's own (a Confirm, a danger color, a solid fill)
1459
+ keeps its colors. */
1460
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .BarClose > :is([data-navigation-action="close"], [data-navigation-action="back"])[data-color="secondary"]:is([data-variant="ghost"], [data-variant="soft"]):not([data-disabled]) {
1461
+ --button-text-color: var(--color-text);
1462
+ --button-text-color-hover: var(--color-text);
1432
1463
  }
1433
1464
 
1434
1465
  /* The glass of a sheet's bar: Close, the header actions and a control in the header, such as a segmented
@@ -1105,7 +1105,7 @@
1105
1105
  }
1106
1106
 
1107
1107
  /* A selected cell hides the separators at its edges, as in iOS lists. */
1108
- .MobileSidebar:not(:where(.App *)) .Menu :is(.MenuButton, .MenuSubButton)[data-active="true"]::after, .MobileSidebar:not(:where(.App *)) .Menu :is(.MenuItem, .MenuSubItem):has(> :is(.MenuButton, .MenuSubButton)[data-active="true"], > * > :is(.MenuButton, .MenuSubButton)[data-active="true"]) + * > :is(.MenuButton, .MenuSubButton)::after, .MobileSidebar:not(:where(.App *)) .Menu :is(.MenuItem, .MenuSubItem):has(> :is(.MenuButton, .MenuSubButton)[data-active="true"], > * > :is(.MenuButton, .MenuSubButton)[data-active="true"]) + * > * > :is(.MenuButton, .MenuSubButton)::after, .MobileSidebar:not(:where(.App *)) .Menu .MenuItem:has(> .MenuButton[data-active="true"], > * > .MenuButton[data-active="true"]) > .MenuSub > :first-child > :is(.MenuButton, .MenuSubButton)::after {
1108
+ .MobileSidebar:not(:where(.App *)) .Menu :is(.MenuButton, .MenuSubButton)[data-active="true"]::after, .MobileSidebar:not(:where(.App *)) .Menu :is(.MenuItem, .MenuSubItem):has(> :is(.MenuButton, .MenuSubButton)[data-active="true"], > * > :is(.MenuButton, .MenuSubButton)[data-active="true"]) + :is(.MenuItem, .MenuSubItem) > :is(.MenuButton, .MenuSubButton)::after, .MobileSidebar:not(:where(.App *)) .Menu :is(.MenuItem, .MenuSubItem):has(> :is(.MenuButton, .MenuSubButton)[data-active="true"], > * > :is(.MenuButton, .MenuSubButton)[data-active="true"]) + :is(.MenuItem, .MenuSubItem) > * > :is(.MenuButton, .MenuSubButton)::after, .MobileSidebar:not(:where(.App *)) .Menu .MenuItem:has(> .MenuButton[data-active="true"], > * > .MenuButton[data-active="true"]) > .MenuSub > :first-child > :is(.MenuButton, .MenuSubButton)::after {
1109
1109
  opacity: 0;
1110
1110
  }
1111
1111
 
@@ -1306,7 +1306,7 @@
1306
1306
  }
1307
1307
 
1308
1308
  /* A selected cell hides the separators at its edges, as in iOS lists. */
1309
- :where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Menu :is(.MenuButton, .MenuSubButton)[data-active="true"]::after, :where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Menu :is(.MenuItem, .MenuSubItem):has(> :is(.MenuButton, .MenuSubButton)[data-active="true"], > * > :is(.MenuButton, .MenuSubButton)[data-active="true"]) + * > :is(.MenuButton, .MenuSubButton)::after, :where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Menu :is(.MenuItem, .MenuSubItem):has(> :is(.MenuButton, .MenuSubButton)[data-active="true"], > * > :is(.MenuButton, .MenuSubButton)[data-active="true"]) + * > * > :is(.MenuButton, .MenuSubButton)::after, :where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Menu .MenuItem:has(> .MenuButton[data-active="true"], > * > .MenuButton[data-active="true"]) > .MenuSub > :first-child > :is(.MenuButton, .MenuSubButton)::after {
1309
+ :where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Menu :is(.MenuButton, .MenuSubButton)[data-active="true"]::after, :where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Menu :is(.MenuItem, .MenuSubItem):has(> :is(.MenuButton, .MenuSubButton)[data-active="true"], > * > :is(.MenuButton, .MenuSubButton)[data-active="true"]) + :is(.MenuItem, .MenuSubItem) > :is(.MenuButton, .MenuSubButton)::after, :where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Menu :is(.MenuItem, .MenuSubItem):has(> :is(.MenuButton, .MenuSubButton)[data-active="true"], > * > :is(.MenuButton, .MenuSubButton)[data-active="true"]) + :is(.MenuItem, .MenuSubItem) > * > :is(.MenuButton, .MenuSubButton)::after, :where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Menu .MenuItem:has(> .MenuButton[data-active="true"], > * > .MenuButton[data-active="true"]) > .MenuSub > :first-child > :is(.MenuButton, .MenuSubButton)::after {
1310
1310
  opacity: 0;
1311
1311
  }
1312
1312
 
@@ -220,7 +220,12 @@
220
220
  -webkit-user-select: none;
221
221
  -moz-user-select: none;
222
222
  user-select: none;
223
- }/* Items under the pointer stay still while a drag runs: no hover, no row actions */.Sortable[data-dragging] > * {
223
+ }/* Items under the pointer stay still while a drag runs: no hover, no row actions, no text selection (a finger drag
224
+ skips the page-wide .Dragging, and iOS has no selectstart to stop it) */.Sortable[data-dragging] {
225
+ -webkit-user-select: none;
226
+ -moz-user-select: none;
227
+ user-select: none;
228
+ }.Sortable[data-dragging] > * {
224
229
  pointer-events: none;
225
230
  }.Sortable[data-dragging] .Target {
226
231
  pointer-events: auto;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plexui/styles",
3
- "version": "0.16.0",
3
+ "version": "0.16.2",
4
4
  "description": "Framework-agnostic CSS for Plex UI: design tokens, globals and component styles",
5
5
  "type": "module",
6
6
  "license": "MIT",