@plexui/styles 0.1.33 → 0.1.34

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.
Files changed (63) hide show
  1. package/dist/es/components/Accordion/Accordion.module.css +14 -0
  2. package/dist/es/components/Alert/Alert.module.css +112 -1
  3. package/dist/es/components/Breadcrumb/Breadcrumb.module.css +34 -0
  4. package/dist/es/components/Button/Button.module.css +70 -22
  5. package/dist/es/components/Card/Card.module.css +22 -6
  6. package/dist/es/components/Checkbox/Checkbox.module.css +26 -72
  7. package/dist/es/components/CodeBlock/CodeBlock.module.css +20 -0
  8. package/dist/es/components/ColorPicker/ColorPicker.module.css +396 -0
  9. package/dist/es/components/ContextMenu/ContextMenu.module.css +55 -0
  10. package/dist/es/components/DataTable/DataTable.module.css +4 -0
  11. package/dist/es/components/DatePicker/Calendar.module.css +18 -5
  12. package/dist/es/components/DateRangePicker/Calendar.module.css +20 -2
  13. package/dist/es/components/DateRangePicker/Trigger.module.css +29 -1
  14. package/dist/es/components/Dialog/Dialog.module.css +212 -77
  15. package/dist/es/components/EmptyMessage/EmptyMessage.module.css +31 -0
  16. package/dist/es/components/Field/Field.module.css +188 -23
  17. package/dist/es/components/FieldGroup/FieldGroup.module.css +59 -0
  18. package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +21 -0
  19. package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +16 -0
  20. package/dist/es/components/Indicator/LoadingIndicator.module.css +14 -7
  21. package/dist/es/components/Input/Input.module.css +69 -0
  22. package/dist/es/components/InputGroup/InputGroup.module.css +4 -0
  23. package/dist/es/components/Menu/Menu.module.css +278 -28
  24. package/dist/es/components/Page/Page.module.css +92 -24
  25. package/dist/es/components/PageControl/PageControl.module.css +81 -0
  26. package/dist/es/components/Popover/Popover.module.css +10 -1
  27. package/dist/es/components/Select/Select.module.css +53 -9
  28. package/dist/es/components/SelectControl/SelectControl.module.css +38 -3
  29. package/dist/es/components/Sidebar/Sidebar.module.css +276 -57
  30. package/dist/es/components/Slider/Slider.module.css +52 -45
  31. package/dist/es/components/Sortable/Sortable.module.css +7 -3
  32. package/dist/es/components/Stepper/Stepper.module.css +98 -0
  33. package/dist/es/components/TabBar/TabBar.module.css +233 -0
  34. package/dist/es/components/Tabs/Tabs.module.css +149 -2
  35. package/dist/es/components/Toast/Toast.module.css +50 -5
  36. package/dist/es/components/Toolbar/Toolbar.module.css +208 -18
  37. package/dist/es/styles/katex-fonts/KaTeX_AMS-Regular.woff2 +0 -0
  38. package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  39. package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  40. package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  41. package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  42. package/dist/es/styles/katex-fonts/KaTeX_Main-Bold.woff2 +0 -0
  43. package/dist/es/styles/katex-fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  44. package/dist/es/styles/katex-fonts/KaTeX_Main-Italic.woff2 +0 -0
  45. package/dist/es/styles/katex-fonts/KaTeX_Main-Regular.woff2 +0 -0
  46. package/dist/es/styles/katex-fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  47. package/dist/es/styles/katex-fonts/KaTeX_Math-Italic.woff2 +0 -0
  48. package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  49. package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  50. package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  51. package/dist/es/styles/katex-fonts/KaTeX_Script-Regular.woff2 +0 -0
  52. package/dist/es/styles/katex-fonts/KaTeX_Size1-Regular.woff2 +0 -0
  53. package/dist/es/styles/katex-fonts/KaTeX_Size2-Regular.woff2 +0 -0
  54. package/dist/es/styles/katex-fonts/KaTeX_Size3-Regular.woff2 +0 -0
  55. package/dist/es/styles/katex-fonts/KaTeX_Size4-Regular.woff2 +0 -0
  56. package/dist/es/styles/katex-fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  57. package/dist/es/styles/katex-fonts/LICENSE +21 -0
  58. package/dist/es/styles/katex.min.css +666 -730
  59. package/dist/es/styles/mobile-materials.css +56 -14
  60. package/dist/es/styles/mobile-surfaces.css +39 -32
  61. package/dist/es/styles/touch.css +328 -90
  62. package/dist/es/styles/variables-components.css +232 -13
  63. package/package.json +1 -1
@@ -0,0 +1,81 @@
1
+ @layer components {/* One dot for each page, after the iOS 26 kit Page control (507:24679): 8px dots 8px apart in a 24px capsule
2
+ with 12px ends, the current dot in the primary label and the others at 30%. Past the window of full dots two
3
+ dots shrink to 6px (in an 8px slot) and 4px (in a 6px slot). The capsule fills only while a pointer presses or
4
+ scrubs (`automatic`), always (`prominent`) or never (`minimal`), as UIPageControl background styles do. */.PageControl {
5
+ position: relative;
6
+ display: inline-flex;
7
+ flex-shrink: 0;
8
+ align-items: center;
9
+ justify-content: center;
10
+ gap: var(--page-control-gap);
11
+ height: var(--page-control-height);
12
+ padding-inline: var(--page-control-padding-inline);
13
+ border-radius: calc(var(--page-control-height) / 2);
14
+ background: transparent;
15
+ vertical-align: middle;
16
+ cursor: pointer;
17
+ -moz-user-select: none;
18
+ user-select: none;
19
+ -webkit-user-select: none;
20
+ -webkit-touch-callout: none;
21
+ /* A horizontal drag scrubs; the page still scrolls vertically. */
22
+ touch-action: pan-y;
23
+ -webkit-tap-highlight-color: transparent;
24
+ transition: background-color var(--page-control-transition-duration, 200ms) ease;
25
+ }
26
+
27
+ .PageControl[data-background="prominent"],
28
+ .PageControl[data-background="automatic"][data-interacting] {
29
+ background: var(--page-control-background);
30
+ }
31
+
32
+ .PageControl:focus {
33
+ outline: none;
34
+ }
35
+
36
+ .PageControl:focus-visible {
37
+ outline: 2px solid var(--color-ring);
38
+ outline-offset: 2px;
39
+ }
40
+
41
+ /* The target reaches 44px where the capsule is shorter. */
42
+ .PageControl::after {
43
+ position: absolute;
44
+ inset: min(0px, calc((var(--page-control-height) - var(--page-control-target-size, 0px)) / 2)) 0;
45
+ content: "";
46
+ }.Dot {
47
+ flex-shrink: 0;
48
+ width: var(--page-control-dot-size);
49
+ height: var(--page-control-dot-size);
50
+ border-radius: 50%;
51
+ background: var(--page-control-dot-color);
52
+ transition-property: background-color, width, height, margin;
53
+ transition-duration: var(--page-control-transition-duration, 200ms);
54
+ transition-timing-function: ease;
55
+ }
56
+
57
+ .Dot[data-current] {
58
+ background: var(--page-control-dot-color-current);
59
+ }
60
+
61
+ .Dot[data-size="small"] {
62
+ width: var(--page-control-dot-size-small);
63
+ height: var(--page-control-dot-size-small);
64
+ margin-inline: calc((var(--page-control-dot-size) - var(--page-control-dot-size-small)) / 2);
65
+ }
66
+
67
+ .Dot[data-size="smaller"] {
68
+ width: var(--page-control-dot-size-smaller);
69
+ height: var(--page-control-dot-size-smaller);
70
+ margin-inline: calc((var(--page-control-dot-size-small) - var(--page-control-dot-size-smaller)) / 2);
71
+ }
72
+
73
+ .Dot[data-size="hidden"] {
74
+ display: none;
75
+ }@media (prefers-reduced-motion: reduce) {
76
+ .PageControl,
77
+ .Dot {
78
+ transition-duration: 0ms;
79
+ }
80
+ }
81
+ }
@@ -60,7 +60,16 @@
60
60
  transition-duration: var(--motion-exit);
61
61
  transition-property: opacity, transform;
62
62
  transition-timing-function: var(--cubic-exit-snappy);
63
- }@keyframes shake {
63
+ }/* iPhone: the panel takes the phone popover material, the menus' elevated surface in light and their glass
64
+ in dark, and the phone radius. A translucent panel and the DatePicker calendar keep their own surface. */@media (max-width: 767px) {
65
+ .Popover {
66
+ background: var(--popover-mobile-background, var(--color-surface-elevated));
67
+ }
68
+
69
+ :where([data-theme="dark"]) .Popover {
70
+ backdrop-filter: var(--popover-mobile-backdrop-filter, none);
71
+ }
72
+ }@keyframes shake {
64
73
  0% {
65
74
  transform: translateX(0);
66
75
  }
@@ -347,6 +347,15 @@ background: var(--gray-25);
347
347
  white-space: nowrap;
348
348
  pointer-events: none;
349
349
  }/* iPhone menu selection geometry. Search and multiple selection keep their behavior. */@media (max-width: 767px) {
350
+ /* Dark lists are glass, as the Menu is (see --menu-mobile-background). */
351
+ .MenuList {
352
+ background: var(--menu-mobile-background, var(--color-surface-elevated));
353
+ }
354
+
355
+ :where([data-theme="dark"]) .MenuList {
356
+ backdrop-filter: var(--menu-mobile-backdrop-filter, none);
357
+ }
358
+
350
359
  .Option,
351
360
  .Option[data-selected],
352
361
  .Option:has(.OptionDescription) {
@@ -354,7 +363,13 @@ background: var(--gray-25);
354
363
  }
355
364
 
356
365
  .Option {
357
- letter-spacing: var(--menu-letter-spacing, -0.43px);
366
+ letter-spacing: var(--menu-letter-spacing, normal);
367
+ }
368
+
369
+ /* The capsule is the press: Safari's gray tap rectangle would stack on it */
370
+ .Option,
371
+ .Action {
372
+ -webkit-tap-highlight-color: transparent;
358
373
  }
359
374
 
360
375
  .Search,
@@ -375,9 +390,19 @@ background: var(--gray-25);
375
390
  padding-block: 0;
376
391
  }
377
392
 
378
- .Option:has(> .PressableInner > .OptionLeading)::before {
393
+ /* The pressed capsule of a menu row (Menu.module.css, Files, the owner's shots of 08.11): 10px from the panel's
394
+ edges, not the option's 16, the whole row, round at its ends, in one even fill (--menu-press-background). It
395
+ shows the moment the finger lands and fades when it lifts. */
396
+ .Option::before {
379
397
  position: absolute;
380
- inset: 0;
398
+ inset-block: 0;
399
+ inset-inline: calc(var(--menu-gutter) - var(--menu-padding-inline, var(--menu-gutter)));
400
+ background: var(--menu-press-background, var(--menu-item-background-color));
401
+ }
402
+
403
+ .Option:active::before {
404
+ opacity: 1;
405
+ transition-duration: 0s;
381
406
  }
382
407
 
383
408
  .PressableInner:has(> .OptionLeading) {
@@ -395,23 +420,42 @@ background: var(--gray-25);
395
420
  gap: 8px;
396
421
  }
397
422
 
423
+ /* The checkmark column of a native iOS 26 pop-up menu, as Menu draws it (iOS-menu IMG_5687 and IMG_5688 Files at
424
+ @3x): 10.3 to 10.7pt of ink centred 28pt from the panel's edge, labels from 43.5pt. A row's content starts 22px in,
425
+ so the column is 13px and the label follows 8.5px after it (touch.css tokens). The iOS 27 kit draws a 15pt
426
+ checkmark centred at 34 and labels from 52; the device wins. The checkmark leads every row, so the desktop end
427
+ position moves to the start on a phone. */
398
428
  .OptionIndicatorSlot {
399
429
  justify-content: center;
400
- width: 24px;
430
+ width: var(--menu-check-column, 13px);
401
431
  height: 22px;
402
432
  }
403
433
 
404
- /* iOS 26 kit Menu Items (Menu has Selection): the checkmark leads every row in a 24px column,
405
- 6px before the label, so the desktop end position moves to the start on a phone. */
434
+ :is(.PressableInner, .OptionHardLimitHeading):has(> .OptionIndicatorSlot) {
435
+ gap: var(--menu-check-gap, 8.5px);
436
+ }
437
+
438
+ /* In a list with checkmarks, section titles, the note under a long list, the row that shows more options and the
439
+ actions start where the labels do, as "Filter:" and New Folder in Files (IMG_5687). A list without them keeps its
440
+ labels, and these, at the row's start. */
441
+ .MenuList:has(.OptionIndicatorSlot[data-position]) :is(
442
+ .OptionGroupHeading,
443
+ .OptionHardLimitHeading:not(:has(> .OptionIndicatorSlot)),
444
+ .OptionsLimit > .PressableInner:not(:has(> .OptionIndicatorSlot)),
445
+ .ActionInner
446
+ ) {
447
+ padding-inline-start: var(--menu-check-label-inset, calc(8px + 13px + 8.5px));
448
+ }
449
+
406
450
  .PressableInner > .OptionIndicatorSlot[data-position="end"] {
407
451
  order: -1;
408
452
  margin-left: 0;
409
453
  }
410
454
 
411
- /* The 17pt checkmark of the kit: about 15 × 14.5px of ink. */
455
+ /* The 18px Check icon draws 10.6 by 9.9, centred in its column with the overflow on both sides. */
412
456
  .OptionCheck {
413
- width: 26px;
414
- height: 26px;
457
+ width: var(--menu-check-size, 18px);
458
+ height: var(--menu-check-size, 18px);
415
459
  }
416
460
 
417
461
  .OptionDescription {
@@ -594,9 +594,10 @@
594
594
  width: var(--dropdown-chevron-icon-width, 11px);
595
595
  height: var(--dropdown-chevron-icon-height, 6px);
596
596
  }/* Shares margin offset with dropdown indicator */.LoadingIndicator {
597
- /* Embedded loading follows the control's text size; standalone touch
598
- indicators keep their larger default and explicit sizes still win. */
599
- --indicator-default-size: 1em;
597
+ /* Embedded loading follows the control's text size, or the touch stylesheet's
598
+ field size; standalone touch indicators keep their larger default and explicit
599
+ sizes still win. */
600
+ --indicator-default-size: var(--control-indicator-size, 1em);
600
601
 
601
602
  margin-right: var(--dropdown-icon-offset);
602
603
  }
@@ -618,6 +619,18 @@
618
619
  display: none;
619
620
  }
620
621
 
622
+ /* The compact date capsule of a row (Field) shows no pop-up chevrons, as in the iOS 26 kit. */
623
+ :where([data-row][data-orientation="horizontal"]) .SelectControl[data-date-picker] .DropdownIcon {
624
+ display: none;
625
+ }
626
+
627
+ /* Without the chevrons its indicator wrapper is empty; the trigger's gap before it would leave the date 8px off
628
+ the capsule's center and the capsules 8px short of the row's edge. A clear button keeps the wrapper. Both rules
629
+ follow each other: wherever a row hides a date's chevrons, it hides the wrapper they leave empty. */
630
+ :where([data-row][data-orientation="horizontal"]) .SelectControl[data-date-picker] .IndicatorWrapper:not(:has(> :not(.DropdownIcon))) {
631
+ display: none;
632
+ }
633
+
621
634
  :where([data-row]) .DropdownIcon > .MobileDropdownGlyph {
622
635
  display: block;
623
636
  flex-shrink: 0;
@@ -629,6 +642,28 @@
629
642
  color: var(--color-text-disabled);
630
643
  }
631
644
 
645
+ /* A pop-up at the end of a labeled row shows its value in the secondary label, as the option rows of
646
+ iOS 26 Reminders and Calendar do (iOS IMG_5442: the value and its chevrons at 138 on white; iOS2
647
+ IMG_5523). Files shows its View Options values in the primary label beside the same gray chevrons
648
+ (iOS-menu IMG_5686: the value at 3, the chevrons at 122 on 215): such a screen sets
649
+ --field-row-popup-value-color. In columns the value is the row's data and stays primary, as in an Apple
650
+ Account billing address (IMG_5489). Disabled, the value and the chevrons take the tertiary label. */
651
+ :where([data-row][data-orientation="horizontal"]:not([data-field-columns] *)) .SelectControl[data-selected="true"]:not([data-disabled]) {
652
+ color: var(--field-row-popup-value-color, var(--mobile-label-secondary, var(--color-text-secondary)));
653
+ }
654
+
655
+ :where([data-row][data-orientation="horizontal"]:not([data-field-columns] *)) .SelectControl[data-disabled][data-variant],
656
+ :where([data-row][data-orientation="horizontal"]:not([data-field-columns] *)) .SelectControl[data-disabled] .DropdownIcon:not(.DropdownIconChevron) {
657
+ color: var(--mobile-label-tertiary, var(--color-text-disabled));
658
+ }
659
+
660
+ /* In columns the chevrons step back to the tertiary label next to the primary value, as in an Apple
661
+ Account billing address (iOS IMG_5489: the value at 0, its chevrons at 197 on white), enabled or not. */
662
+ :where([data-field-columns] [data-row][data-orientation="horizontal"]) .DropdownIcon:not(.DropdownIconChevron),
663
+ :where([data-field-columns] [data-row][data-orientation="horizontal"]) .SelectControl[data-disabled] .DropdownIcon:not(.DropdownIconChevron) {
664
+ color: var(--mobile-label-tertiary, var(--color-text-tertiary));
665
+ }
666
+
632
667
  .SelectControl[data-variant="ghost"]:not([data-row] *) {
633
668
  --select-control-size: 44px;
634
669
  --select-control-gutter: 0px;
@@ -574,10 +574,28 @@
574
574
  font-weight: var(--font-weight-semibold);
575
575
  color: var(--sidebar-foreground);
576
576
  }.CardDismiss {
577
+ /* Keeps its 3xs face and glyph on a phone, where a uniform 3xs button is otherwise the kit's 28px circle (touch.css). */
578
+ --button-uniform-size-3xs: var(--control-size-3xs);
579
+ --button-icon-size-3xs: var(--control-icon-size-xs);
580
+
577
581
  position: absolute;
578
582
  top: 6px;
579
583
  right: 6px;
580
584
  border-radius: var(--radius-xs);
585
+ }/* On a phone the dismiss button takes the 44px target of iOS around its face; the negative margin
586
+ keeps the glyph in the card's corner. */@media (max-width: 767px) {
587
+ .CardDismiss {
588
+ min-width: 44px;
589
+ min-height: 44px;
590
+ margin: calc((var(--button-size) - 44px) / 2);
591
+ }
592
+
593
+ .CardDismiss::before,
594
+ .CardDismiss::after {
595
+ width: var(--button-size);
596
+ height: var(--button-size);
597
+ margin: auto;
598
+ }
581
599
  }.CardContent {
582
600
  flex: 1;
583
601
  color: var(--color-text-secondary);
@@ -704,11 +722,32 @@
704
722
  align-items: center;
705
723
  box-sizing: border-box;
706
724
  padding: 12px 0 8px; /* No horizontal padding - Input component has its own */
725
+ }/* Phone drawer search: the iOS 26 kit Sidebar Search Field (5840:30501), a 44px capsule with 11px insets
726
+ on the field's own soft fill. The magnifier and its gap are those of the toolbar search (26px PlexUI
727
+ Search and 4px: text at 41; the kit glyph frame 21 and gap 8 put it at 40). The glyph and the
728
+ placeholder take the secondary label, as the kit's Vibrant Secondary. */@media (max-width: 767px) {
729
+ .MobileSidebar .Input > [data-slot="input"][data-variant] {
730
+ --input-size: 44px;
731
+ --input-gap: var(--toolbar-search-icon-gap);
732
+ --input-adornment-offset: 0px;
733
+ --control-gutter-pill-scaling: 1;
734
+ --input-placeholder-text-color: var(--mobile-label-secondary, var(--color-text-secondary));
735
+
736
+ border-radius: var(--radius-full);
737
+ }
738
+
739
+ .MobileSidebar .Input > [data-slot="input"][data-variant] > svg {
740
+ flex: none;
741
+ width: var(--toolbar-search-icon-size);
742
+ height: var(--toolbar-search-icon-size);
743
+ color: var(--mobile-label-secondary, var(--color-text-secondary));
744
+ }
707
745
  }/* =============================================
708
- Mobile Menu Button (Hamburger → X)
746
+ Mobile Menu Button (PlexUI SidebarMenuMobile → X)
709
747
  ============================================= */.MobileMenuButton {
710
748
  position: relative;
711
- display: block;
749
+ display: grid;
750
+ place-items: center;
712
751
  width: var(--sidebar-mobile-button-size);
713
752
  height: var(--sidebar-mobile-button-size);
714
753
  padding: 0;
@@ -717,12 +756,13 @@
717
756
  background: none;
718
757
  cursor: pointer;
719
758
  transition: box-shadow 0.3s var(--cubic-enter);
720
- }.MobileMenuButton::before {
759
+ }/* Hover, press and the open menu take the fill of the neighbouring Trigger and menu rows, which shows in
760
+ both themes; the surface color matched a white page in light and only showed in dark (plan 124). */.MobileMenuButton::before {
721
761
  position: absolute;
722
762
  inset: 0;
723
763
  display: block;
724
764
  border-radius: var(--sidebar-mobile-button-radius);
725
- background: var(--color-surface);
765
+ background: var(--sidebar-accent);
726
766
  content: "";
727
767
  opacity: 0;
728
768
  transition: opacity 0.15s ease;
@@ -736,62 +776,30 @@
736
776
  }.MobileMenuButton:focus-visible {
737
777
  box-shadow: 0 0 0 2px var(--color-ring);
738
778
  outline: 0;
739
- }/* Icon wrapper */.MobileMenuIcon {
779
+ }/* The glyphs are PlexUI icons, not drawn lines: the menu glyph turns away as the X turns in. */.MobileMenuIcon {
740
780
  position: relative;
741
- top: 0;
742
- left: 7px;
743
- overflow: hidden;
744
781
  display: block;
745
782
  width: var(--sidebar-mobile-icon-size);
746
783
  height: var(--sidebar-mobile-icon-size);
747
- }/* Line bars */.MobileMenuLine {
784
+ color: var(--sidebar-mobile-icon-color);
785
+ }.MobileMenuGlyph {
748
786
  position: absolute;
749
- top: 4px;
750
- left: 0;
751
- display: block;
752
- width: var(--sidebar-mobile-icon-size);
753
- height: var(--sidebar-mobile-line-height);
754
- transition: transform var(--sidebar-mobile-line-transition-duration) var(--cubic-move) 0.2s;
755
- }.MobileMenuLine::before {
756
- display: block;
757
- width: var(--sidebar-mobile-icon-size);
758
- height: var(--sidebar-mobile-line-height);
759
- background: var(--sidebar-mobile-line-color);
760
- content: "";
761
- transform-origin: center;
762
- transition: transform var(--sidebar-mobile-line-transition-duration) var(--cubic-move);
763
- will-change: transform;
764
- }/* Top line - closed state */.MobileMenuLine[data-top] {
765
- transform: translateY(0);
766
- transition-delay: 0.2s;
767
- }.MobileMenuLine[data-top]::before {
768
- transform: rotate(0);
769
- transition-delay: 0s;
770
- }/* Bottom line - closed state */.MobileMenuLine[data-bottom] {
771
- top: 12px;
772
- transform: translateY(0);
773
- transition-delay: 0.2s;
774
- }.MobileMenuLine[data-bottom]::before {
775
- transform: rotate(0);
776
- transition-delay: 0s;
777
- }/* Middle wrapper */.MobileMenuMiddle {
787
+ inset: 0;
778
788
  display: block;
779
- transform: translateX(-6px);
780
- transition: transform 0s var(--cubic-move) 0.2s;
781
- }/* Open state (X) */.MobileMenuButton[data-expanded] .MobileMenuLine[data-top] {
782
- transform: translateY(4px);
783
- transition-delay: 0s;
784
- }.MobileMenuButton[data-expanded] .MobileMenuLine[data-top]::before {
785
- transform: rotate(45deg);
786
- transition-delay: 0.2s;
787
- }.MobileMenuButton[data-expanded] .MobileMenuLine[data-bottom] {
788
- transform: translateY(-4px);
789
- transition-delay: 0s;
790
- }.MobileMenuButton[data-expanded] .MobileMenuLine[data-bottom]::before {
791
- transform: rotate(-45deg);
792
- transition-delay: 0.2s;
793
- }.MobileMenuButton[data-expanded] .MobileMenuMiddle {
794
- transform: translateX(0);
789
+ width: 100%;
790
+ height: 100%;
791
+ transition:
792
+ opacity var(--sidebar-mobile-icon-transition-duration) var(--cubic-move),
793
+ transform var(--sidebar-mobile-icon-transition-duration) var(--cubic-move);
794
+ }.MobileMenuGlyph[data-glyph="close"],
795
+ .MobileMenuButton[data-expanded] .MobileMenuGlyph[data-glyph="menu"] {
796
+ opacity: 0;
797
+ transform: rotate(-45deg) scale(0.8);
798
+ }.MobileMenuButton[data-expanded] .MobileMenuGlyph[data-glyph="menu"] {
799
+ transform: rotate(45deg) scale(0.8);
800
+ }.MobileMenuButton[data-expanded] .MobileMenuGlyph[data-glyph="close"] {
801
+ opacity: 1;
802
+ transform: none;
795
803
  }/* =============================================
796
804
  Mobile Drawer
797
805
  ============================================= */.MobileBackdrop {
@@ -880,6 +888,218 @@
880
888
  .MobileMenuContent .GroupLabel {
881
889
  opacity: 1 !important;
882
890
  pointer-events: auto !important;
891
+ }/* =============================================
892
+ Mobile drawer list
893
+ On an iPhone the sidebar of an app is a list on a grouped page (Mail and
894
+ Freeform in iOS 26). Each menu is a card of 52px rows: the icon in a 40px
895
+ column, the label at 17px, counts in the secondary label color and a
896
+ disclosure chevron on a row that leads somewhere. A group label heads its
897
+ section in semibold 20px; an item with a submenu stays a row of the card, its
898
+ chevron turns down and its items follow it, indented, as nested folders do
899
+ in iOS lists. The App variant keeps its side drawer.
900
+ ============================================= */.MenuDisclosure {
901
+ display: none;
902
+ }@media (max-width: 767px) {
903
+ .MobileSidebar:not(:where(.App *)) {
904
+ --sidebar-list-inset: var(--sidebar-mobile-list-inset, var(--mobile-layout-margin, 16px));
905
+ --sidebar-list-icon-column: var(--sidebar-mobile-list-icon-column, 40px);
906
+ --sidebar-list-indent: var(--sidebar-mobile-list-indent, 20px);
907
+ --sidebar-row-inset: var(--sidebar-list-inset);
908
+ --sidebar-menu-item-height: var(--sidebar-mobile-list-row-height, 52px);
909
+ --sidebar-menu-sub-item-padding-y: calc(
910
+ (var(--sidebar-mobile-list-row-height, 52px) - var(--sidebar-menu-sub-item-line-height, 20px)) / 2
911
+ );
912
+ --sidebar-menu-item-trailing-padding: var(--sidebar-list-inset);
913
+ --sidebar-menu-item-radius: 0px;
914
+ --sidebar-menu-text: var(--color-text);
915
+ --sidebar-menu-text-active: var(--color-text);
916
+ --sidebar-icon-size: var(--sidebar-mobile-list-icon-size, 24px);
917
+ --sidebar-icon-wrapper-size: var(--sidebar-icon-size);
918
+ --sidebar-icon-margin: 0 calc(var(--sidebar-list-icon-column) - var(--sidebar-icon-size)) 0 0;
919
+
920
+ background: var(--sidebar-mobile-background, var(--mobile-surface-grouped-primary, var(--color-surface-secondary)));
921
+ }
922
+
923
+ .MobileSidebar:not(:where(.App *)) .Content {
924
+ padding: 0;
925
+ -webkit-mask-image: none;
926
+ mask-image: none;
927
+ }
928
+
929
+ .MobileSidebar:not(:where(.App *)) .FooterSeparator {
930
+ display: none;
931
+ }
932
+
933
+ .MobileSidebar:not(:where(.App *)) .Content + .Footer,
934
+ .MobileSidebar:not(:where(.App *)) .Header + .Content {
935
+ margin-top: var(--sidebar-mobile-list-section-gap, 20px);
936
+ }
937
+
938
+ .MobileSidebar:not(:where(.App *)) .Group {
939
+ padding-bottom: 0;
940
+ }
941
+
942
+ /* Cards without a header stand 20px apart (iOS 26 Settings); a header
943
+ takes its own 44px, 18px below the card above it, as in Mail. */
944
+ .MobileSidebar:not(:where(.App *)) .Group + .Group {
945
+ margin-top: var(--sidebar-mobile-list-section-gap, 20px);
946
+ }
947
+
948
+ .MobileSidebar:not(:where(.App *)) .Group + .Group:has(> .GroupLabel:first-child) {
949
+ margin-top: var(--sidebar-mobile-list-header-gap, 18px);
950
+ }
951
+
952
+ .MobileSidebar:not(:where(.App *)) .Group .GroupLabel,
953
+ .MobileSidebar:not(:where(.App *)) .Group .GroupLabel[data-size] {
954
+ display: flex;
955
+ align-items: center;
956
+ min-height: var(--sidebar-mobile-list-header-height, 44px);
957
+ margin: 0;
958
+ padding: 0 var(--sidebar-list-inset);
959
+ color: var(--color-text);
960
+ font-size: var(--sidebar-mobile-list-header-font-size, 20px);
961
+ font-weight: var(--sidebar-mobile-list-header-font-weight, var(--font-weight-semibold));
962
+ line-height: var(--sidebar-mobile-list-header-line-height, 25px);
963
+ letter-spacing: normal;
964
+ }
965
+
966
+ /* The card. The page's surface sets its color: white on a grouped page. */
967
+ .MobileSidebar:not(:where(.App *)) .Menu {
968
+ overflow: hidden;
969
+ border-radius: var(--sidebar-mobile-list-radius, 26px);
970
+ background: var(
971
+ --sidebar-mobile-list-background,
972
+ var(--mobile-surface-secondary, var(--mobile-surface-grouped-secondary, var(--color-surface)))
973
+ );
974
+ }
975
+
976
+ .MobileSidebar:not(:where(.App *)) .Menu .Menu,
977
+ .MobileSidebar:not(:where(.App *)) .MenuSub {
978
+ border-radius: 0;
979
+ background: none;
980
+ }
981
+
982
+ .MobileSidebar:not(:where(.App *)) .MenuButton {
983
+ margin: 0;
984
+ }
985
+
986
+ .MobileSidebar:not(:where(.App *)) .MenuButtonInner {
987
+ padding-inline: var(--sidebar-row-inset) var(--sidebar-list-inset);
988
+ }
989
+
990
+ .MobileSidebar:not(:where(.App *)) .MenuButtonLabel:first-child {
991
+ padding-left: 0;
992
+ }
993
+
994
+ /* Every submenu button has an indent class: this outranks their desktop padding */
995
+ .MobileSidebar:not(:where(.App *)) .Menu .MenuSubButton:is(.indent0, .indent1, .indent2, .indent3) {
996
+ margin: 0;
997
+ padding-inline: var(--sidebar-row-inset) var(--sidebar-list-inset);
998
+ }
999
+
1000
+ /* An item of a submenu starts under its parent's label, one step further
1001
+ for every level below. */
1002
+ .MobileSidebar:not(:where(.App *)) .MenuSubButton.indent1 {
1003
+ --sidebar-row-inset: calc(var(--sidebar-list-inset) + var(--sidebar-list-indent));
1004
+ }
1005
+
1006
+ .MobileSidebar:not(:where(.App *)) .MenuSub[data-has-icons="true"] .MenuSubButton.indent1 {
1007
+ --sidebar-row-inset: calc(var(--sidebar-list-inset) + var(--sidebar-list-icon-column));
1008
+ }
1009
+
1010
+ .MobileSidebar:not(:where(.App *)) .MenuSubButton.indent2 {
1011
+ --sidebar-row-inset: calc(var(--sidebar-list-inset) + 2 * var(--sidebar-list-indent));
1012
+ }
1013
+
1014
+ .MobileSidebar:not(:where(.App *)) .MenuSubButton.indent3 {
1015
+ --sidebar-row-inset: calc(var(--sidebar-list-inset) + 3 * var(--sidebar-list-indent));
1016
+ }
1017
+
1018
+ /* A selected or pressed row fills its cell edge to edge; the card clips
1019
+ the corners. */
1020
+ .MobileSidebar:not(:where(.App *)) :is(.MenuButton, .MenuSubButton):is(*, :hover, :active, :focus-visible)::before {
1021
+ border-radius: 0;
1022
+ transform: none;
1023
+ }
1024
+
1025
+ .MobileSidebar:not(:where(.App *)) :is(.MenuButton, .MenuSubButton):focus-visible::before {
1026
+ opacity: 1;
1027
+ box-shadow: inset 0 0 0 2px var(--color-ring);
1028
+ }
1029
+
1030
+ .MobileSidebar:not(:where(.App *)) :is(.MenuButton, .MenuSubButton):focus-visible:not([data-active="true"])::before {
1031
+ background: transparent;
1032
+ }
1033
+
1034
+ /* Separators between the rows of a card start at the label and end at
1035
+ the inset, like FieldGroup rows. */
1036
+ .MobileSidebar:not(:where(.App *)) .Menu :is(.MenuButton, .MenuSubButton)::after {
1037
+ position: absolute;
1038
+ z-index: 1;
1039
+ top: 0;
1040
+ inset-inline: var(--sidebar-row-inset) var(--sidebar-list-inset);
1041
+ height: 1px;
1042
+ background: var(--color-border);
1043
+ content: "";
1044
+ pointer-events: none;
1045
+ }
1046
+
1047
+ .MobileSidebar:not(:where(.App *)) .Menu .MenuButton:has(> .MenuButtonInner > .MenuButtonIcon)::after {
1048
+ inset-inline-start: calc(var(--sidebar-row-inset) + var(--sidebar-list-icon-column));
1049
+ }
1050
+
1051
+ .MobileSidebar:not(:where(.App *)) .Menu > .MenuItem:first-child > .MenuButton::after,
1052
+ .MobileSidebar:not(:where(.App *)) .Menu > .MenuItem:first-child > * > .MenuButton::after {
1053
+ display: none;
1054
+ }
1055
+
1056
+ /* A selected cell hides the separators at its edges, as in iOS lists. */
1057
+ .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 {
1058
+ opacity: 0;
1059
+ }
1060
+
1061
+ /* Counts read as values of the row */
1062
+ .MobileSidebar:not(:where(.App *)) .MenuBadge {
1063
+ color: var(--mobile-label-secondary, var(--color-text-secondary));
1064
+ font-size: var(--sidebar-menu-item-font-size);
1065
+ line-height: var(--sidebar-menu-item-line-height);
1066
+ }
1067
+
1068
+ .MobileSidebar:not(:where(.App *)) .MenuChevron {
1069
+ color: var(--mobile-label-secondary, var(--color-text-secondary));
1070
+ margin-right: var(--sidebar-mobile-list-chevron-offset, -2.83px);
1071
+ }
1072
+
1073
+ .MobileSidebar:not(:where(.App *)) .MenuChevron svg {
1074
+ width: var(--sidebar-mobile-list-chevron-size, 20px);
1075
+ height: var(--sidebar-mobile-list-chevron-size, 20px);
1076
+ }
1077
+
1078
+ /* The disclosure ends 3px inside the inset (Mail): its glyph has 6.67px
1079
+ of air on the right in its 20px box. It keeps 8px after a count. */
1080
+ .MobileSidebar:not(:where(.App *)) .MenuDisclosure {
1081
+ position: relative;
1082
+ z-index: 1;
1083
+ display: flex;
1084
+ flex-shrink: 0;
1085
+ margin-inline: auto var(--sidebar-mobile-list-disclosure-offset, -3.67px);
1086
+ color: var(--mobile-label-tertiary, var(--color-text-tertiary));
1087
+ }
1088
+
1089
+ .MobileSidebar:not(:where(.App *)) .MenuDisclosure svg {
1090
+ width: var(--sidebar-mobile-list-chevron-size, 20px);
1091
+ height: var(--sidebar-mobile-list-chevron-size, 20px);
1092
+ }
1093
+
1094
+ .MobileSidebar:not(:where(.App *)) .MenuBadge ~ .MenuDisclosure {
1095
+ margin-inline-start: var(--sidebar-mobile-list-disclosure-gap, 8px);
1096
+ }
1097
+
1098
+ /* Rows that open a menu, expand a level or carry their own controls do
1099
+ not lead to another page. */
1100
+ .MobileSidebar:not(:where(.App *)) :is(.MenuButton, .MenuSubButton):is([aria-haspopup], [aria-expanded], :has(.MenuChevron)) .MenuDisclosure, .MobileSidebar:not(:where(.App *)) :is(.MenuItem, .MenuSubItem) > :is(.MenuButton, .MenuSubButton):has(~ :not(.MenuSub)) .MenuDisclosure, .MobileSidebar:not(:where(.App *)) :is(.MenuItem, .MenuSubItem) > * > :is(.MenuButton, .MenuSubButton):has(~ *) .MenuDisclosure {
1101
+ display: none;
1102
+ }
883
1103
  }/* Desktop breakpoint - sidebar becomes fixed */@media (min-width: 768px) {
884
1104
  .MobileSidebar {
885
1105
  display: none;
@@ -1176,8 +1396,7 @@ background: var(--gray-300);
1176
1396
  .Card,
1177
1397
  .CardTitleChevron,
1178
1398
  .MobileMenuButton,
1179
- .MobileMenuLine,
1180
- .MobileMenuMiddle,
1399
+ .MobileMenuGlyph,
1181
1400
  .MobileBackdrop,
1182
1401
  .MobileSidebar,
1183
1402
  .MobileSidebar > *,
@@ -1186,7 +1405,7 @@ background: var(--gray-300);
1186
1405
  .App .Header,
1187
1406
  .App .Header span,
1188
1407
  .App .Inset,
1189
- :is(.MenuButton, .MenuSubButton, .Trigger, .MobileMenuButton, .MobileMenuLine)::before,
1408
+ :is(.MenuButton, .MenuSubButton, .Trigger, .MobileMenuButton)::before,
1190
1409
  .MenuButtonIcon::after,
1191
1410
  .MobileSidebar::after {
1192
1411
  /* Preference overrides every state/variant's duration and delay, including