diff --git a/package/index.css b/package/index.css index 688a468..ebd0d41 100644 --- a/package/index.css +++ b/package/index.css @@ -14,6 +14,11 @@ -webkit-text-size-adjust: none; color-scheme: dark light; tab-size: 2; + scrollbar-gutter: stable; +} + +:where(html:has(dialog:modal[open])) { + overflow: clip; } @media (prefers-reduced-motion: no-preference) { @@ -89,6 +94,18 @@ overflow: visible; } +:where(dialog) { + border: none; + background: none; + inset: unset; + max-width: unset; + max-height: unset; +} + +:where(dialog:not([open])) { + display: none !important; +} + :where(:focus-visible) { outline: 3px solid CanvasText; box-shadow: 0 0 0 5px Canvas;