@vectoriox/iox-ui 5.125.0 → 5.127.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.
@@ -412,9 +412,10 @@ dialog[data-iox-dialog].iox-es:is([data-iox-dialog-placement='end'], [data-iox-d
412
412
  --dialog-exit-y: 0px;
413
413
  --dialog-exit-opacity: 1;
414
414
  }
415
+ /* RTL mirrors the drawer by `:where()`, adding no weight — so a menu's own form or reveal (HI2a, below) still decides. */
415
416
  dialog[data-iox-dialog].iox-es[data-iox-dialog-placement='start'],
416
- [dir='rtl'] dialog[data-iox-dialog].iox-es[data-iox-dialog-placement='end'] { --dialog-exit-x: -100%; }
417
- [dir='rtl'] dialog[data-iox-dialog].iox-es[data-iox-dialog-placement='start'] { --dialog-exit-x: 100%; }
417
+ :where([dir='rtl']) dialog[data-iox-dialog].iox-es[data-iox-dialog-placement='end'] { --dialog-exit-x: -100%; }
418
+ :where([dir='rtl']) dialog[data-iox-dialog].iox-es[data-iox-dialog-placement='start'] { --dialog-exit-x: 100%; }
418
419
  dialog[data-iox-dialog].iox-es:is([data-iox-closing], :not([open])) {
419
420
  translate: var(--dialog-exit-x) var(--dialog-exit-y);
420
421
  opacity: var(--dialog-exit-opacity);
@@ -469,6 +470,377 @@ dialog[data-iox-dialog] {
469
470
  --iox-link-underline-rest: 0;
470
471
  }
471
472
 
473
+ /* ── Header ingredients HI2a: the MENU's forms, reveals, buttons and hover (header-builder board v2, HB-D1/HB-D2) ─────────
474
+ A menu is the navigation's drawer Dialog wearing design-core `menuDialogAttributes`; its button and its Close wear
475
+ `menuButtonAttributes`. A menu with none of them is the drawer it always was (R-H4). Board 2: only transform, opacity,
476
+ clip-path and mask move, never a width or a height; close is always faster than open; plain reveals stay under 300ms,
477
+ the circle and the torn edge are the site's signature moment (≈600ms in, ≈260ms out); every reveal is a TRANSITION, so a
478
+ menu toggled mid-way reverses from where it is (Emil); hover is for a mouse only; reduced motion is a fade (R-H5).
479
+ Each rule names the live `<dialog>` (E) and, where the motion is the same, the builder canvas's twin (`.dialog-surface`
480
+ inside its `.dialog-stage`, which `runExitMotion` marks closing). The reveal grows from the opener's centre:
481
+ actions-core `revealFrom` writes --reveal-x / --reveal-y when the menu opens (the top corner before it does), and --reveal-r,
482
+ the distance to the menu's farthest corner, so a reveal spends its time ON the menu and never growing past it. */
483
+
484
+ /* Timing: a new-look menu runs on the look's UI motion (≤300ms, dur-ui) and leaves in 70% of it. */
485
+ dialog[data-iox-dialog].iox-es:is([data-iox-menu], [data-iox-reveal], [data-iox-menu-phone]) {
486
+ box-sizing: border-box;
487
+ --menu-in: var(--iox-dur-ui, 200ms);
488
+ --menu-out: calc(var(--iox-dur-ui, 200ms) * 0.7);
489
+ transition-property: translate, scale, opacity, clip-path, overlay, display;
490
+ transition-duration: var(--menu-in);
491
+ transition-timing-function: var(--iox-ease-enter);
492
+ transition-delay: 0s;
493
+ transition-behavior: normal, normal, normal, normal, allow-discrete, allow-discrete;
494
+ }
495
+ dialog[data-iox-dialog].iox-es:is([data-iox-menu], [data-iox-reveal], [data-iox-menu-phone]):is([data-iox-closing], :not([open])) {
496
+ transition-duration: var(--menu-out);
497
+ transition-timing-function: var(--iox-ease-exit);
498
+ }
499
+ dialog[data-iox-dialog].iox-es:is([data-iox-menu], [data-iox-reveal], [data-iox-menu-phone])::backdrop {
500
+ transition-duration: var(--menu-in, 200ms);
501
+ }
502
+ dialog[data-iox-dialog].iox-es:is([data-iox-menu], [data-iox-reveal], [data-iox-menu-phone]):is([data-iox-closing], :not([open]))::backdrop {
503
+ transition-duration: var(--menu-out, 140ms);
504
+ }
505
+ /* The signature reveals open at twice the look's slow duration, never past 600ms, and close in ≤260ms (board 2). The look's
506
+ Off speed (0ms) opens them at once. */
507
+ :is(dialog[data-iox-dialog].iox-es, .dialog-surface):is([data-iox-reveal='circle'], [data-iox-reveal='torn']) {
508
+ --menu-in: min(600ms, calc(var(--iox-dur-slow, 320ms) * 2));
509
+ --menu-out: min(260ms, var(--iox-dur-ui, 200ms));
510
+ }
511
+
512
+ /* FORMS. A full-screen menu is the whole screen at every width; a card, a top panel and a mega panel take their place
513
+ above the phone width and are the phone menu below it (R-H10) — the drawer (its placement rules above) or, with
514
+ `data-iox-menu-phone="full"`, the full screen. Their sizes override the drawer's own (86vw / 360px) only where they show. */
515
+ dialog[data-iox-dialog].iox-es[data-iox-menu='full'] {
516
+ margin: 0;
517
+ width: 100%;
518
+ max-width: none;
519
+ height: 100dvh;
520
+ max-height: none;
521
+ border-radius: 0;
522
+ --dialog-exit-x: 0px;
523
+ --dialog-exit-y: -14px;
524
+ --dialog-exit-opacity: 0;
525
+ }
526
+ @media (max-width: 767px) {
527
+ dialog[data-iox-dialog].iox-es[data-iox-menu-phone='full'] {
528
+ margin: 0;
529
+ width: 100%;
530
+ max-width: none;
531
+ height: 100dvh;
532
+ max-height: none;
533
+ border-radius: 0;
534
+ --dialog-exit-x: 0px;
535
+ --dialog-exit-y: -14px;
536
+ --dialog-exit-opacity: 0;
537
+ }
538
+ }
539
+ @media (min-width: 768px) {
540
+ /* The card opens from the menu button's corner: anchored there, as tall as its content. */
541
+ dialog[data-iox-dialog].iox-es[data-iox-menu='card'] {
542
+ margin-block: 8px auto;
543
+ margin-inline: auto 8px;
544
+ width: min(420px, calc(100vw - 16px));
545
+ max-width: none;
546
+ height: fit-content;
547
+ max-height: calc(100dvh - 16px);
548
+ overflow: auto;
549
+ border-radius: var(--iox-dialog-radius);
550
+ --dialog-exit-x: 0px;
551
+ --dialog-exit-y: -14px;
552
+ --dialog-exit-opacity: 0;
553
+ }
554
+ dialog[data-iox-dialog].iox-es[data-iox-menu='card'][data-iox-dialog-placement='start'] { margin-inline: 8px auto; }
555
+ /* The top panel (T7): anchored to the top, as tall as its content; past 80dvh it scrolls inside itself. */
556
+ dialog[data-iox-dialog].iox-es[data-iox-menu='panel'] {
557
+ margin: 0 0 auto;
558
+ width: 100%;
559
+ max-width: none;
560
+ height: fit-content;
561
+ max-height: 80dvh;
562
+ overflow: auto;
563
+ border-radius: 0 0 var(--iox-dialog-radius) var(--iox-dialog-radius);
564
+ --dialog-exit-x: 0px;
565
+ --dialog-exit-y: -14px;
566
+ --dialog-exit-opacity: 0;
567
+ }
568
+ /* The mega panel: wide, floating just under the top edge, its pages in columns. */
569
+ dialog[data-iox-dialog].iox-es[data-iox-menu='mega'] {
570
+ margin: 12px 12px auto;
571
+ width: calc(100% - 24px);
572
+ max-width: none;
573
+ height: fit-content;
574
+ max-height: calc(100dvh - 24px);
575
+ overflow: auto;
576
+ border-radius: var(--iox-dialog-radius);
577
+ --dialog-exit-x: 0px;
578
+ --dialog-exit-y: -14px;
579
+ --dialog-exit-opacity: 0;
580
+ }
581
+ }
582
+ /* What each form does with its page names. The live page sizes by the window; the canvas by its frame (never @media). */
583
+ :is(dialog, .dialog-surface)[data-iox-menu='full'] .iox-role-nav-drawer-links {
584
+ margin-block: auto;
585
+ align-items: center;
586
+ text-align: center;
587
+ }
588
+ :is(dialog, .dialog-surface)[data-iox-menu='full'] .iox-role-nav-drawer-link {
589
+ justify-content: center;
590
+ font-size: var(--iox-size-h2);
591
+ }
592
+ @media (max-width: 767px) {
593
+ body:not(.builder-active) dialog[data-iox-menu-phone='full'] .iox-role-nav-drawer-links { margin-block: auto; align-items: center; text-align: center; }
594
+ body:not(.builder-active) dialog[data-iox-menu-phone='full'] .iox-role-nav-drawer-link { justify-content: center; font-size: var(--iox-size-h2); }
595
+ }
596
+ @media (min-width: 768px) {
597
+ body:not(.builder-active) dialog[data-iox-menu='panel'] .iox-role-nav-drawer-links { flex-direction: row; flex-wrap: wrap; column-gap: 32px; }
598
+ body:not(.builder-active) dialog[data-iox-menu='mega'] .iox-role-nav-drawer-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); column-gap: 24px; }
599
+ }
600
+ @container iox-canvas (max-width: 767px) {
601
+ .dialog-surface[data-iox-menu-phone='full'] .iox-role-nav-drawer-links { margin-block: auto; align-items: center; text-align: center; }
602
+ .dialog-surface[data-iox-menu-phone='full'] .iox-role-nav-drawer-link { justify-content: center; font-size: var(--iox-size-h2); }
603
+ }
604
+ @container iox-canvas (min-width: 768px) {
605
+ .dialog-surface[data-iox-menu='panel'] .iox-role-nav-drawer-links { flex-direction: row; flex-wrap: wrap; column-gap: 32px; }
606
+ .dialog-surface[data-iox-menu='mega'] .iox-role-nav-drawer-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); column-gap: 24px; }
607
+ }
608
+
609
+ /* REVEALS. Fade: in place. Zoom: from 0.88 at the opener. Circle: clip-path circle() from the opener. Torn: our own ragged
610
+ edge (HB-D7 — a 48-point polygon, never another site's asset) grown from the opener, the menu a twin 6% larger in the
611
+ look's menu-edge while it moves: the sheet's own ground is its ::before, cut by the smaller edge. (Slide is the form's own:
612
+ a drawer from its edge, any other menu a 14px drop.) */
613
+ :is(dialog[data-iox-dialog].iox-es, .dialog-surface)[data-iox-reveal='fade'] {
614
+ --dialog-exit-x: 0px;
615
+ --dialog-exit-y: 0px;
616
+ --dialog-exit-opacity: 0;
617
+ }
618
+ :is(dialog[data-iox-dialog].iox-es, .dialog-surface)[data-iox-reveal='zoom'] {
619
+ --dialog-exit-x: 0px;
620
+ --dialog-exit-y: 0px;
621
+ --dialog-exit-opacity: 0;
622
+ transform-origin: var(--reveal-x, 100%) var(--reveal-y, 0px);
623
+ }
624
+ :is(dialog[data-iox-dialog].iox-es, .dialog-surface)[data-iox-reveal='circle'] {
625
+ --dialog-exit-x: 0px;
626
+ --dialog-exit-y: 0px;
627
+ --dialog-exit-opacity: 0;
628
+ clip-path: circle(var(--reveal-r, 150vmax) at var(--reveal-x, 100%) var(--reveal-y, 0px));
629
+ }
630
+ :is(dialog[data-iox-dialog].iox-es, .dialog-surface)[data-iox-reveal='torn'] {
631
+ --dialog-exit-x: 0px;
632
+ --dialog-exit-y: 0px;
633
+ --dialog-exit-opacity: 0;
634
+ --rx: var(--reveal-x, 100%);
635
+ --ry: var(--reveal-y, 0px);
636
+ /* The ragged edge dips to 0.9 of its radius: open, it reaches past the farthest corner everywhere. */
637
+ --torn: calc(var(--reveal-r, 150vmax) / 0.9);
638
+ --tr: calc(var(--torn) * 1.06);
639
+ /* The menu's own ground comes back once the edge has opened (a 0s change after the opening): only the moving edge is
640
+ the accent, and a long menu scrolled at rest is its own ground all the way down. */
641
+ transition-property: translate, scale, opacity, clip-path, overlay, display, background-color;
642
+ transition-duration: var(--menu-in), var(--menu-in), var(--menu-in), var(--menu-in), var(--menu-in), var(--menu-in), 0s;
643
+ transition-delay: 0s, 0s, 0s, 0s, 0s, 0s, var(--menu-in);
644
+ transition-behavior: normal, normal, normal, normal, allow-discrete, allow-discrete, normal;
645
+ }
646
+ :is(dialog[data-iox-dialog].iox-es, .dialog-surface)[data-iox-reveal='torn'],
647
+ :is(dialog[data-iox-dialog].iox-es, .dialog-surface)[data-iox-reveal='torn']::before {
648
+ clip-path: polygon(
649
+ calc(var(--rx) + var(--tr) * .977) calc(var(--ry) + var(--tr) * -.024),
650
+ calc(var(--rx) + var(--tr) * .897) calc(var(--ry) + var(--tr) * .101),
651
+ calc(var(--rx) + var(--tr) * .965) calc(var(--ry) + var(--tr) * .267),
652
+ calc(var(--rx) + var(--tr) * .844) calc(var(--ry) + var(--tr) * .335),
653
+ calc(var(--rx) + var(--tr) * .884) calc(var(--ry) + var(--tr) * .498),
654
+ calc(var(--rx) + var(--tr) * .765) calc(var(--ry) + var(--tr) * .558),
655
+ calc(var(--rx) + var(--tr) * .71) calc(var(--ry) + var(--tr) * .704),
656
+ calc(var(--rx) + var(--tr) * .566) calc(var(--ry) + var(--tr) * .768),
657
+ calc(var(--rx) + var(--tr) * .495) calc(var(--ry) + var(--tr) * .834),
658
+ calc(var(--rx) + var(--tr) * .342) calc(var(--ry) + var(--tr) * .846),
659
+ calc(var(--rx) + var(--tr) * .248) calc(var(--ry) + var(--tr) * .952),
660
+ calc(var(--rx) + var(--tr) * .136) calc(var(--ry) + var(--tr) * .949),
661
+ calc(var(--rx) + var(--tr) * -.01) calc(var(--ry) + var(--tr) * 1.007),
662
+ calc(var(--rx) + var(--tr) * -.108) calc(var(--ry) + var(--tr) * .9),
663
+ calc(var(--rx) + var(--tr) * -.25) calc(var(--ry) + var(--tr) * .971),
664
+ calc(var(--rx) + var(--tr) * -.368) calc(var(--ry) + var(--tr) * .834),
665
+ calc(var(--rx) + var(--tr) * -.515) calc(var(--ry) + var(--tr) * .872),
666
+ calc(var(--rx) + var(--tr) * -.558) calc(var(--ry) + var(--tr) * .736),
667
+ calc(var(--rx) + var(--tr) * -.692) calc(var(--ry) + var(--tr) * .693),
668
+ calc(var(--rx) + var(--tr) * -.741) calc(var(--ry) + var(--tr) * .56),
669
+ calc(var(--rx) + var(--tr) * -.859) calc(var(--ry) + var(--tr) * .516),
670
+ calc(var(--rx) + var(--tr) * -.86) calc(var(--ry) + var(--tr) * .336),
671
+ calc(var(--rx) + var(--tr) * -.971) calc(var(--ry) + var(--tr) * .248),
672
+ calc(var(--rx) + var(--tr) * -.901) calc(var(--ry) + var(--tr) * .096),
673
+ calc(var(--rx) + var(--tr) * -1.008) calc(var(--ry) + var(--tr) * -.028),
674
+ calc(var(--rx) + var(--tr) * -.934) calc(var(--ry) + var(--tr) * -.128),
675
+ calc(var(--rx) + var(--tr) * -.939) calc(var(--ry) + var(--tr) * -.232),
676
+ calc(var(--rx) + var(--tr) * -.851) calc(var(--ry) + var(--tr) * -.351),
677
+ calc(var(--rx) + var(--tr) * -.851) calc(var(--ry) + var(--tr) * -.513),
678
+ calc(var(--rx) + var(--tr) * -.762) calc(var(--ry) + var(--tr) * -.577),
679
+ calc(var(--rx) + var(--tr) * -.699) calc(var(--ry) + var(--tr) * -.724),
680
+ calc(var(--rx) + var(--tr) * -.57) calc(var(--ry) + var(--tr) * -.76),
681
+ calc(var(--rx) + var(--tr) * -.477) calc(var(--ry) + var(--tr) * -.838),
682
+ calc(var(--rx) + var(--tr) * -.363) calc(var(--ry) + var(--tr) * -.879),
683
+ calc(var(--rx) + var(--tr) * -.273) calc(var(--ry) + var(--tr) * -.923),
684
+ calc(var(--rx) + var(--tr) * -.12) calc(var(--ry) + var(--tr) * -.924),
685
+ calc(var(--rx) + var(--tr) * -.021) calc(var(--ry) + var(--tr) * -1.003),
686
+ calc(var(--rx) + var(--tr) * .126) calc(var(--ry) + var(--tr) * -.944),
687
+ calc(var(--rx) + var(--tr) * .22) calc(var(--ry) + var(--tr) * -.93),
688
+ calc(var(--rx) + var(--tr) * .324) calc(var(--ry) + var(--tr) * -.844),
689
+ calc(var(--rx) + var(--tr) * .484) calc(var(--ry) + var(--tr) * -.882),
690
+ calc(var(--rx) + var(--tr) * .591) calc(var(--ry) + var(--tr) * -.743),
691
+ calc(var(--rx) + var(--tr) * .669) calc(var(--ry) + var(--tr) * -.686),
692
+ calc(var(--rx) + var(--tr) * .753) calc(var(--ry) + var(--tr) * -.594),
693
+ calc(var(--rx) + var(--tr) * .865) calc(var(--ry) + var(--tr) * -.478),
694
+ calc(var(--rx) + var(--tr) * .851) calc(var(--ry) + var(--tr) * -.36),
695
+ calc(var(--rx) + var(--tr) * .967) calc(var(--ry) + var(--tr) * -.273),
696
+ calc(var(--rx) + var(--tr) * .926) calc(var(--ry) + var(--tr) * -.108));
697
+ }
698
+ :is(dialog[data-iox-dialog].iox-es, .dialog-surface)[data-iox-reveal='torn']::before {
699
+ content: '';
700
+ position: absolute;
701
+ inset: 0;
702
+ z-index: -1;
703
+ pointer-events: none;
704
+ border-radius: inherit;
705
+ background: var(--iox-dialog-bg);
706
+ --tr: var(--torn);
707
+ transition: clip-path var(--menu-in) var(--iox-ease-enter);
708
+ }
709
+ @media (prefers-reduced-motion: no-preference) {
710
+ /* The opener-grown reveals hold their shape only where motion is welcome; reduced motion keeps the fade above. */
711
+ :is(dialog[data-iox-dialog].iox-es, .dialog-surface):is([data-iox-reveal='circle'], [data-iox-reveal='torn']) { --dialog-exit-opacity: 1; }
712
+ dialog[data-iox-dialog].iox-es[data-iox-reveal='zoom']:is([data-iox-closing], :not([open])),
713
+ .dialog-stage[data-iox-closing] > .dialog-surface[data-iox-reveal='zoom'] {
714
+ scale: 0.88;
715
+ }
716
+ dialog[data-iox-dialog].iox-es[data-iox-reveal='circle']:is([data-iox-closing], :not([open])),
717
+ .dialog-stage[data-iox-closing] > .dialog-surface[data-iox-reveal='circle'] {
718
+ clip-path: circle(0px at var(--reveal-x, 100%) var(--reveal-y, 0px));
719
+ }
720
+ dialog[data-iox-dialog].iox-es[data-iox-reveal='torn']:is([data-iox-closing], :not([open])),
721
+ .dialog-stage[data-iox-closing] > .dialog-surface[data-iox-reveal='torn'] {
722
+ --torn: 0px;
723
+ background-color: var(--iox-menu-edge);
724
+ transition-delay: 0s;
725
+ transition-duration: var(--menu-out);
726
+ }
727
+ dialog[data-iox-dialog].iox-es[data-iox-reveal='torn']:is([data-iox-closing], :not([open]))::before,
728
+ .dialog-stage[data-iox-closing] > .dialog-surface[data-iox-reveal='torn']::before {
729
+ transition-duration: var(--menu-out);
730
+ transition-timing-function: var(--iox-ease-exit);
731
+ }
732
+ @starting-style {
733
+ :is(dialog[data-iox-dialog].iox-es[open], .dialog-surface)[data-iox-reveal='zoom'] { scale: 0.88; }
734
+ :is(dialog[data-iox-dialog].iox-es[open], .dialog-surface)[data-iox-reveal='circle'] {
735
+ clip-path: circle(0px at var(--reveal-x, 100%) var(--reveal-y, 0px));
736
+ }
737
+ :is(dialog[data-iox-dialog].iox-es[open], .dialog-surface)[data-iox-reveal='torn'] {
738
+ --torn: 0px;
739
+ background-color: var(--iox-menu-edge);
740
+ }
741
+ /* A pseudo-element starts from its OWN starting style, not its parent's: the sheet's edge starts closed too. */
742
+ :is(dialog[data-iox-dialog].iox-es[open], .dialog-surface)[data-iox-reveal='torn']::before { --tr: 0px; }
743
+ }
744
+ }
745
+ /* Reduced motion (R-H5): every new-look menu simply fades — nothing travels, scales or grows — in at most 200ms (the
746
+ motion floor), at once when the look's motion is Off. The drawer that slides keeps today's behaviour. */
747
+ @media (prefers-reduced-motion: reduce) {
748
+ :is(dialog[data-iox-dialog].iox-es, .dialog-surface):is([data-iox-menu], [data-iox-reveal], [data-iox-menu-phone]) {
749
+ --dialog-exit-x: 0px;
750
+ --dialog-exit-y: 0px;
751
+ --dialog-exit-opacity: 0;
752
+ --menu-in: min(200ms, calc(var(--iox-dur-ui, 200ms) * 100));
753
+ --menu-out: min(200ms, calc(var(--iox-dur-ui, 200ms) * 100));
754
+ }
755
+ }
756
+
757
+ /* BUTTONS (board 2): the menu button and the menu's Close are ONE button, closed and open — the Close lands where the
758
+ button is. Word: the word Menu, then Close, rising into place as the menu opens. Dots: nine dots that spread under a
759
+ mouse; open, the four corners and the centre stay — a cross. Lines is the list icon and the X (today's). Drawn by two
760
+ pseudo-elements laid one over the other in the button's own row (the canvas forces a node's position, so nothing here
761
+ is positioned); its icon stays for a renderer without this file. */
762
+ [data-iox-menu-button='dots'] > * { display: none; }
763
+ [data-iox-menu-button='dots']::before,
764
+ [data-iox-menu-button='dots']::after {
765
+ content: '';
766
+ flex: none;
767
+ width: 18px;
768
+ height: 18px;
769
+ transition:
770
+ opacity var(--iox-dur-ui, 200ms) var(--iox-ease-standard),
771
+ scale var(--iox-dur-ui, 200ms) var(--iox-ease-standard),
772
+ rotate var(--iox-dur-ui, 200ms) var(--iox-ease-standard);
773
+ }
774
+ [data-iox-menu-button='dots']::before {
775
+ background: radial-gradient(circle, currentColor 1.6px, transparent 2.1px) 0 0 / 6px 6px;
776
+ }
777
+ [data-iox-menu-button='dots']::after {
778
+ margin-inline-start: -18px;
779
+ background:
780
+ radial-gradient(circle at 3px 3px, currentColor 2px, transparent 2.5px),
781
+ radial-gradient(circle at 15px 3px, currentColor 2px, transparent 2.5px),
782
+ radial-gradient(circle at 9px 9px, currentColor 2px, transparent 2.5px),
783
+ radial-gradient(circle at 3px 15px, currentColor 2px, transparent 2.5px),
784
+ radial-gradient(circle at 15px 15px, currentColor 2px, transparent 2.5px);
785
+ opacity: 0;
786
+ scale: 0.6;
787
+ rotate: -45deg;
788
+ }
789
+ @media (hover: hover) and (pointer: fine) {
790
+ [data-iox-menu-button='dots']:not([aria-expanded='true']):hover::before { scale: 1.3; }
791
+ }
792
+ /* Open: the opener while its menu is open, and the Close inside the menu (which arrives closed and turns). */
793
+ :is([data-iox-menu-button='dots'][aria-expanded='true'], :is(dialog, .dialog-surface) [data-iox-menu-button='dots'])::before { opacity: 0; scale: 0.6; }
794
+ :is([data-iox-menu-button='dots'][aria-expanded='true'], :is(dialog, .dialog-surface) [data-iox-menu-button='dots'])::after { opacity: 1; scale: 1; rotate: 0deg; }
795
+ dialog[data-iox-closing] [data-iox-menu-button='dots']::before,
796
+ .dialog-stage[data-iox-closing] [data-iox-menu-button='dots']::before { opacity: 1; scale: 1; }
797
+ dialog[data-iox-closing] [data-iox-menu-button='dots']::after,
798
+ .dialog-stage[data-iox-closing] [data-iox-menu-button='dots']::after { opacity: 0; scale: 0.6; rotate: -45deg; }
799
+ [data-iox-menu-button='word'] > * {
800
+ transition:
801
+ opacity var(--iox-dur-ui, 200ms) var(--iox-ease-standard),
802
+ translate var(--iox-dur-ui, 200ms) var(--iox-ease-standard);
803
+ }
804
+ dialog[data-iox-closing] [data-iox-menu-button='word'] > *,
805
+ .dialog-stage[data-iox-closing] [data-iox-menu-button='word'] > * { opacity: 0; translate: 0 6px; }
806
+ @starting-style {
807
+ :is(dialog[open], .dialog-surface) [data-iox-menu-button='dots']::before { opacity: 1; scale: 1; }
808
+ :is(dialog[open], .dialog-surface) [data-iox-menu-button='dots']::after { opacity: 0; scale: 0.6; rotate: -45deg; }
809
+ :is(dialog[open], .dialog-surface) [data-iox-menu-button='word'] > * { opacity: 0; translate: 0 6px; }
810
+ }
811
+ @media (prefers-reduced-motion: reduce) {
812
+ /* The cross and the words still cross-fade; nothing turns, grows or rises — only opacity moves. */
813
+ [data-iox-menu-button='dots']::before,
814
+ [data-iox-menu-button='dots']::after,
815
+ [data-iox-menu-button='word'] > * { transition-property: opacity; }
816
+ }
817
+
818
+ /* HOVER in the menu (mouse only — G1): a line draws under the page name (today's), the others dim, or the row lights up;
819
+ `none` leaves the names still. The current page keeps its line whatever the hover. */
820
+ :is(dialog, .dialog-surface):is([data-iox-menu-hover='dim'], [data-iox-menu-hover='row'], [data-iox-menu-hover='none']) .iox-role-nav-drawer-link.iox-es-link:not([aria-current='page']) {
821
+ background-size: 0% var(--iox-link-underline-thickness, 1px);
822
+ }
823
+ :is(dialog, .dialog-surface)[data-iox-menu-hover='dim'] .iox-role-nav-drawer-link {
824
+ transition: opacity var(--iox-dur-hover, 150ms) var(--iox-ease-hover, ease), color var(--iox-dur-hover, 150ms) var(--iox-ease-hover, ease);
825
+ }
826
+ :is(dialog, .dialog-surface)[data-iox-menu-hover='row'] .iox-role-nav-drawer-link {
827
+ border-radius: var(--iox-radius-sm);
828
+ transition: background-color var(--iox-dur-hover, 150ms) var(--iox-ease-hover, ease), box-shadow var(--iox-dur-hover, 150ms) var(--iox-ease-hover, ease), color var(--iox-dur-hover, 150ms) var(--iox-ease-hover, ease);
829
+ }
830
+ @media (hover: hover) and (pointer: fine) {
831
+ :is(dialog, .dialog-surface)[data-iox-menu-hover='dim'] .iox-role-nav-drawer-links:has(.iox-role-nav-drawer-link:hover) .iox-role-nav-drawer-link:not(:hover) {
832
+ opacity: 0.18;
833
+ }
834
+ /* The row's light reaches past the words by its own shadow — nothing about the link's box moves. */
835
+ :is(dialog, .dialog-surface)[data-iox-menu-hover='row'] .iox-role-nav-drawer-link:hover {
836
+ background-color: color-mix(in srgb, currentColor 8%, transparent);
837
+ box-shadow: 0 0 0 8px color-mix(in srgb, currentColor 8%, transparent);
838
+ }
839
+ :is(dialog, .dialog-surface):is([data-iox-menu-hover='dim'], [data-iox-menu-hover='row'], [data-iox-menu-hover='none']) .iox-role-nav-drawer-link.iox-es-link:not([aria-current='page']):hover {
840
+ background-size: 0% var(--iox-link-underline-thickness, 1px);
841
+ }
842
+ }
843
+
472
844
  /* The BOTTOM BAR (board 2, "The CSS, exactly"): fixed to the bottom of the viewport (on the canvas, of the
473
845
  global overlay — a transform contains fixed children). Attached flavors pad it above the home
474
846
  indicator / gesture bar with env(safe-area-inset-bottom) (needs viewport-fit=cover); a FLOATING flavor