rename to dialog.css and avoid scrollable page
This commit is contained in:
parent
906345e80b
commit
2726a109d4
1 changed files with 6 additions and 0 deletions
|
|
@ -13,3 +13,9 @@ dialog::backdrop {
|
|||
opacity: 0.85;
|
||||
filter: brightness(50%);
|
||||
}
|
||||
|
||||
/* Prevent page scroll: https://blog.mayank.co/is-dialog-enough */
|
||||
|
||||
html:has(dialog[open]:modal) {
|
||||
overflow: hidden;
|
||||
}
|
||||
Loading…
Reference in a new issue