From cd4a2fe2033a7b6dee52e9daf2ead6dbb697b4b7 Mon Sep 17 00:00:00 2001 From: PCloud Date: Tue, 24 Dec 2024 16:14:13 +0000 Subject: [PATCH] feat: disable scroll when toc dialog is open --- assets/css/_partial/_single/_toc.scss | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/assets/css/_partial/_single/_toc.scss b/assets/css/_partial/_single/_toc.scss index e564a36a5..391b178e3 100644 --- a/assets/css/_partial/_single/_toc.scss +++ b/assets/css/_partial/_single/_toc.scss @@ -151,4 +151,8 @@ translate: 100vw 0; } } -} \ No newline at end of file +} + +html:has(#toc-dialog[open]) { + overflow: hidden; +}