From da0ea762d0895ee757ae34efbe5412121e8cfb7e Mon Sep 17 00:00:00 2001 From: Denis Koshelev Date: Sun, 3 Dec 2023 17:28:23 -0500 Subject: [PATCH] Add scrolling over TOC --- assets/css/compiled/main.css | 6 ++++++ assets/css/main.css | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/assets/css/compiled/main.css b/assets/css/compiled/main.css index 8b8868aa..efe958a1 100644 --- a/assets/css/compiled/main.css +++ b/assets/css/compiled/main.css @@ -1131,6 +1131,12 @@ body:has(#menu-controller:checked) { /* Table of Contents */ +.toc { + max-height: 100vh; + overflow-y: auto; + padding-bottom: 50px; +} + .toc ul, .toc li { list-style-type: none; diff --git a/assets/css/main.css b/assets/css/main.css index d23b285e..7d0ceecf 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -59,6 +59,12 @@ body:has(#menu-controller:checked) { } /* Table of Contents */ +.toc { + max-height: 100vh; + overflow-y: auto; + padding-bottom: 50px; +} + .toc ul, .toc li { @apply list-none px-0 leading-snug;