From b8592bd443f255dc9d6c8a0bbb0b5b1cbaa87050 Mon Sep 17 00:00:00 2001 From: Reorx Date: Thu, 5 May 2022 17:03:28 +0800 Subject: [PATCH] add toc max height, fix scroll bar color --- assets/css/common/post-single.css | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/assets/css/common/post-single.css b/assets/css/common/post-single.css index 3857fec..aa13c3d 100644 --- a/assets/css/common/post-single.css +++ b/assets/css/common/post-single.css @@ -314,6 +314,11 @@ h6:hover .anchor { top: 118px; font-size: .8em; z-index: 1; + max-height: calc(100% - 150px); + overflow: auto; + } + .toc.side::-webkit-scrollbar-thumb { + border: 5px solid var(--code-bg); } .toc.side.left { left: 15px; @@ -325,10 +330,6 @@ h6:hover .anchor { } } -.dark .toc { - background: var(--entry); -} - .toc details summary { cursor: pointer; margin-inline-start: 15px;