Skip to content

Commit

The docs page behind an expanded diagram no longer scrolls: while a diagram's dialog is open the page's scrolling is held, and scrolling past either end of the diagram stops at the dialog.

syntaqxcommitted Parentdb52129Browse files
1 file+6−00/1 viewed
+6−0
725725 padding: 0;
726726 color: var(--g1t-fg);
727727 box-shadow: var(--g1t-docs-menu-shadow);
728+ /* Scrolling past either end of the diagram stops here. */
729+ overscroll-behavior: contain;
730+}
731+/* The page behind an open diagram stays where it is. */
732+html:has(.g1t-diagram__dialog[open]) {
733+ overflow: hidden;
728734 }
729735 .g1t-diagram__dialog::backdrop {
730736 background: rgb(0 0 0 / 0.6);