@plexui/styles 0.17.3 → 0.17.5

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.
@@ -172,7 +172,7 @@
172
172
  padding: var(--field-row-padding-block) var(--field-row-padding-inline);
173
173
  }.Field:where([data-row]):has(.Description, .Content > :not(.Control)) {
174
174
  min-height: var(--field-row-description-min-height, var(--field-row-min-height));
175
- padding-block: var(--field-row-text-padding-block);
175
+ padding-block: var(--field-row-description-padding-block, var(--field-row-text-padding-block));
176
176
  }/* Touch sizes set `contents`: the description then runs under the control too */.Field:where([data-row]) .LabelGroup {
177
177
  display: var(--field-row-text-display);
178
178
  align-items: flex-start;
@@ -25,7 +25,7 @@
25
25
  white-space: normal;
26
26
  }/* A label with a line under it centres the two lines in the subtitle cell's height */.NavigationRow[data-description] > .Pressable.Pressable {
27
27
  padding-block: max(
28
- var(--field-row-text-padding-block, 10px),
28
+ var(--field-row-description-padding-block, var(--field-row-text-padding-block, 10px)),
29
29
  calc(
30
30
  (
31
31
  var(--field-row-description-min-height, var(--field-row-min-height, 52px)) -
@@ -22,7 +22,18 @@
22
22
  width: 100%;
23
23
  max-width: var(--page-width, none);
24
24
  margin-inline: auto;
25
- }.Footer {
25
+ }/* A phone's page takes the screen's width at every width: the column and the wide width are the desktop's. */@media (max-width: 767.98px) {
26
+ .Head,
27
+ .Column,
28
+ .FooterContent {
29
+ max-width: none;
30
+ }
31
+ }
32
+ :where([data-plex-layout="phone"]) .Head,
33
+ :where([data-plex-layout="phone"]) .Column,
34
+ :where([data-plex-layout="phone"]) .FooterContent {
35
+ max-width: none;
36
+ }.Footer {
26
37
  flex: none;
27
38
  padding: var(--page-footer-padding-top, 16px) var(--page-footer-gutter, var(--page-gutter)) var(--page-footer-padding-bottom, max(16px, env(safe-area-inset-bottom, 0px)));
28
39
  background: var(--page-background);
@@ -21,6 +21,15 @@
21
21
  transition: width var(--sidebar-collapse-duration) var(--cubic-move);
22
22
  }/* Collapsed state */:global([data-sidebar="collapsed"]) .Sidebar {
23
23
  width: var(--sidebar-width-icon);
24
+ }/* Offcanvas: a collapsed sidebar leaves the screen whole, no rail. It slides to nothing, then leaves the tab order
25
+ and the accessibility tree (visibility waits for the slide; it comes back at once on opening) */:global([data-sidebar="collapsed"][data-collapsible="offcanvas"]) .Sidebar {
26
+ width: 0;
27
+ padding-inline: 0;
28
+ visibility: hidden;
29
+ transition:
30
+ width var(--sidebar-collapse-duration) var(--cubic-move),
31
+ padding var(--sidebar-collapse-duration) var(--cubic-move),
32
+ visibility 0s linear var(--sidebar-collapse-duration);
24
33
  }/* Right side */.Sidebar[data-side="right"] {
25
34
  order: 1;
26
35
  }/* =============================================
@@ -495,6 +504,23 @@
495
504
  padding-left: 50px;
496
505
  }.MenuSub[data-has-icons="true"] .MenuSubButton.indent3 {
497
506
  padding-left: 62px;
507
+ }/* A tree: each level moves a row one whole 24px cell (the cell of a leading chevron or of an icon), 12px in at the
508
+ first; its icons stand in 24px cells too, the glyph 16px, so the text of a row with a chevron and an icon starts
509
+ at 60, 84, 108… The cells are as tall as the text's line, so the rows keep a submenu row's height */.MenuSub[data-tree="true"] .MenuSubButton {
510
+ padding-left: calc(var(--sidebar-menu-tree-inset, 12px) + var(--sidebar-menu-indent, 0) * 24px);
511
+ }/* Pill rows: capsules, the ends 16px in so the text and icons keep clear of the round ends. A tree moves every
512
+ level by the same 4px (a nested row stays under its parent's text); other rows keep the axis of the rows over
513
+ them and of the folded rail's icons, and only their end moves in */.Sidebar[data-pill="true"] {
514
+ --sidebar-menu-item-radius: var(--radius-full);
515
+ --sidebar-menu-item-trailing-padding: 16px;
516
+ --sidebar-menu-tree-inset: 16px;
517
+ }.MenuSub[data-tree="true"] .MenuButtonIcon {
518
+ width: 24px;
519
+ height: var(--sidebar-menu-sub-item-line-height, 20px);
520
+ margin: 0;
521
+ }.MenuSub[data-tree="true"] .MenuButtonIcon svg {
522
+ width: 16px;
523
+ height: 16px;
498
524
  }/* An open branch of a tree leaves a gap before the row after it */@media (min-width: 768px) {
499
525
  .MenuSub[data-state="open"]:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
500
526
  padding-bottom: var(--sidebar-menu-sub-open-gap, 4px);
@@ -523,6 +549,23 @@
523
549
  }/* Rotate chevron when its own item is expanded: not when only an outer item
524
550
  is (a collapsed item nested under an expanded one keeps its chevron) */[data-expanded="true"] .MenuChevron:not([data-expanded="true"] li:not([data-expanded="true"]) .MenuChevron) {
525
551
  transform: rotate(90deg);
552
+ }/* A row of a tree turns its chevron by its own aria-expanded, as it folds and unfolds on a press anywhere on it */.MenuButton[aria-expanded="true"] .MenuChevron,
553
+ .MenuSubButton[aria-expanded="true"] .MenuChevron {
554
+ transform: rotate(90deg);
555
+ }/* A tree's chevron: first in the row, before its icon, in a 24px cell of its own; the glyph 16px in the secondary
556
+ color, a picture of the row's state with no hover of its own. A blank one keeps the cell on a row with nothing under it */.MenuChevron[data-placement="start"] {
557
+ position: relative;
558
+ z-index: 1;
559
+ width: 24px;
560
+ /* As tall as the text's line, so a tree row is as tall as any submenu row (32 on a desktop) */
561
+ height: var(--sidebar-menu-sub-item-line-height, 20px);
562
+ margin: 0;
563
+ color: var(--color-text-secondary);
564
+ }.MenuChevron[data-placement="start"] svg {
565
+ width: 16px;
566
+ height: 16px;
567
+ }:dir(rtl) .MenuChevron[data-placement="start"] svg {
568
+ transform: scaleX(-1);
526
569
  }/* Hide chevron in collapsed sidebar */:global([data-sidebar="collapsed"]) .MenuChevron:not(:where([data-sidebar="collapsed"] [data-sidebar="expanded"] *)) {
527
570
  display: none;
528
571
  }/* =============================================
@@ -171,6 +171,7 @@
171
171
  --list-row-inset: 21px;
172
172
  --field-row-min-height: 50px;
173
173
  --field-row-text-padding-block: 12px;
174
+ --field-row-description-padding-block: 12px;
174
175
  --field-row-label-font-size: 16px;
175
176
  --field-row-label-line-height: 20px;
176
177
  --field-row-description-font-size: 13px;
@@ -491,6 +492,7 @@
491
492
  --list-row-inset: 21px;
492
493
  --field-row-min-height: 50px;
493
494
  --field-row-text-padding-block: 12px;
495
+ --field-row-description-padding-block: 12px;
494
496
  --field-row-label-font-size: 16px;
495
497
  --field-row-label-line-height: 20px;
496
498
  --field-row-description-font-size: 13px;
@@ -268,6 +268,7 @@
268
268
  --list-row-inset: 21px;
269
269
  --field-row-min-height: 50px;
270
270
  --field-row-text-padding-block: 12px;
271
+ --field-row-description-padding-block: 12px;
271
272
  --field-row-label-font-size: 16px;
272
273
  --field-row-label-line-height: 20px;
273
274
  --field-row-description-font-size: 13px;
@@ -521,6 +522,7 @@
521
522
  --list-row-inset: 21px;
522
523
  --field-row-min-height: 50px;
523
524
  --field-row-text-padding-block: 12px;
525
+ --field-row-description-padding-block: 12px;
524
526
  --field-row-label-font-size: 16px;
525
527
  --field-row-label-line-height: 20px;
526
528
  --field-row-description-font-size: 13px;
@@ -1321,7 +1323,8 @@ html[data-platform="android"] :where([data-plex-layout="phone"]) [data-slot="inp
1321
1323
  --field-row-label-font-weight: var(--font-weight-normal);
1322
1324
  --field-row-description-font-size: 15px;
1323
1325
  --field-row-description-line-height: 20px;
1324
- --field-row-description-min-height: 70px;
1326
+ --field-row-description-min-height: 62px;
1327
+ --field-row-description-padding-block: 10px;
1325
1328
  --field-row-above-font-size: 15px;
1326
1329
  --field-row-above-line-height: 20px;
1327
1330
  --field-row-above-font-weight: var(--font-weight-normal);
@@ -2027,7 +2030,8 @@ html:root :where([data-plex-layout="phone"]) {
2027
2030
  --field-row-label-font-weight: var(--font-weight-normal);
2028
2031
  --field-row-description-font-size: 15px;
2029
2032
  --field-row-description-line-height: 20px;
2030
- --field-row-description-min-height: 70px;
2033
+ --field-row-description-min-height: 62px;
2034
+ --field-row-description-padding-block: 10px;
2031
2035
  --field-row-above-font-size: 15px;
2032
2036
  --field-row-above-line-height: 20px;
2033
2037
  --field-row-above-font-weight: var(--font-weight-normal);
@@ -629,7 +629,7 @@
629
629
  ============================================= */
630
630
  --page-background: var(--color-surface);
631
631
  --page-width-wide: 1280px;
632
- --page-width-column: 768px;
632
+ --page-width-column: 672px;
633
633
  --page-gutter: 16px;
634
634
  --page-gutter-wide: 24px;
635
635
  --page-header-padding-top: 12px;
@@ -1251,7 +1251,7 @@ export const tokenLayers = [
1251
1251
  "--toolbar-prominent-shadow": "0 8px 15px light-dark(rgb(0 0 0 / 2%), transparent), 1.25px 0 0 -0.75px rgb(0 0 0 / 12%), -1.25px 0 0 -0.75px rgb(0 0 0 / 12%), inset 0 0.67px 0 rgb(255 255 255 / 35%), inset 0 -0.67px 0 rgb(255 255 255 / 35%)",
1252
1252
  "--page-background": "var(--color-surface)",
1253
1253
  "--page-width-wide": "1280px",
1254
- "--page-width-column": "768px",
1254
+ "--page-width-column": "672px",
1255
1255
  "--page-gutter": "16px",
1256
1256
  "--page-gutter-wide": "24px",
1257
1257
  "--page-header-padding-top": "12px",
@@ -2227,7 +2227,8 @@ export const tokenLayers = [
2227
2227
  "--field-row-label-font-weight": "var(--font-weight-normal)",
2228
2228
  "--field-row-description-font-size": "15px",
2229
2229
  "--field-row-description-line-height": "20px",
2230
- "--field-row-description-min-height": "70px",
2230
+ "--field-row-description-min-height": "62px",
2231
+ "--field-row-description-padding-block": "10px",
2231
2232
  "--field-row-above-font-size": "15px",
2232
2233
  "--field-row-above-line-height": "20px",
2233
2234
  "--field-row-above-font-weight": "var(--font-weight-normal)",
@@ -2270,7 +2271,7 @@ export const tokenLayers = [
2270
2271
  1,
2271
2272
  1
2272
2273
  ],
2273
- "order": 2135,
2274
+ "order": 2136,
2274
2275
  "when": {
2275
2276
  "minWidth": 414,
2276
2277
  "maxWidth": 767
@@ -2288,7 +2289,7 @@ export const tokenLayers = [
2288
2289
  1,
2289
2290
  1
2290
2291
  ],
2291
- "order": 2136,
2292
+ "order": 2137,
2292
2293
  "when": {
2293
2294
  "maxWidth": 575
2294
2295
  },
@@ -3071,7 +3072,8 @@ export const resolvedTokens = {
3071
3072
  "--field-row-control-width": 160,
3072
3073
  "--field-row-description-font-size": 15,
3073
3074
  "--field-row-description-line-height": 20,
3074
- "--field-row-description-min-height": 70,
3075
+ "--field-row-description-min-height": 62,
3076
+ "--field-row-description-padding-block": 10,
3075
3077
  "--field-row-disclosure-gap": 8,
3076
3078
  "--field-row-gap": 16,
3077
3079
  "--field-row-hover-background": "rgba(13, 13, 13, 0.03)",
@@ -3482,7 +3484,7 @@ export const resolvedTokens = {
3482
3484
  "--page-header-padding-top": 12,
3483
3485
  "--page-title-font-size": 20,
3484
3486
  "--page-title-line-height": 26,
3485
- "--page-width-column": 768,
3487
+ "--page-width-column": 672,
3486
3488
  "--page-width-wide": 1280,
3487
3489
  "--pink-100": "#ffbada",
3488
3490
  "--pink-1000": "#1a0a11",
@@ -4853,7 +4855,8 @@ export const resolvedTokens = {
4853
4855
  "--field-row-control-width": 160,
4854
4856
  "--field-row-description-font-size": 15,
4855
4857
  "--field-row-description-line-height": 20,
4856
- "--field-row-description-min-height": 70,
4858
+ "--field-row-description-min-height": 62,
4859
+ "--field-row-description-padding-block": 10,
4857
4860
  "--field-row-disclosure-gap": 8,
4858
4861
  "--field-row-gap": 16,
4859
4862
  "--field-row-hover-background": "rgba(255, 255, 255, 0.05)",
@@ -5264,7 +5267,7 @@ export const resolvedTokens = {
5264
5267
  "--page-header-padding-top": 12,
5265
5268
  "--page-title-font-size": 20,
5266
5269
  "--page-title-line-height": 26,
5267
- "--page-width-column": 768,
5270
+ "--page-width-column": 672,
5268
5271
  "--page-width-wide": 1280,
5269
5272
  "--pink-100": "#ffbada",
5270
5273
  "--pink-1000": "#1a0a11",