Skip to content
⌘K
Explore
Download
Docs
Sign in
Sign up
flagon-io
/
g1t
public
Star
0
Overview
Code
Issues
Pull requests
Workflows
Deployments
Insights
Files
Commits
Branches
Tags
Releases
Compare
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.
syntaqx
committed
10h ago
Parent
db52129
Browse files
f776fea310d6
1
file
+6
−0
0/1 viewed
Collapse all
Unified
Split
apps/docs/src/styles/g1t.css
+6
−0
View
Blame
Viewed
725
725
padding: 0;
726
726
color: var(--g1t-fg);
727
727
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;
728
734
}
729
735
.g1t-diagram__dialog::backdrop {
730
736
background: rgb(0 0 0 / 0.6);