Skip to content

Commit

Permalink
feat: disable scroll when toc dialog is open
Browse files Browse the repository at this point in the history
  • Loading branch information
HEIGE-PCloud committed Dec 24, 2024
1 parent 61bb404 commit cd4a2fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion assets/css/_partial/_single/_toc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,8 @@
translate: 100vw 0;
}
}
}
}

html:has(#toc-dialog[open]) {
overflow: hidden;
}

0 comments on commit cd4a2fe

Please sign in to comment.