diff options
| author | Reorx <novoreorx@gmail.com> | 2022-05-05 17:03:28 +0800 |
|---|---|---|
| committer | Reorx <novoreorx@gmail.com> | 2022-05-05 17:03:41 +0800 |
| commit | b8592bd443f255dc9d6c8a0bbb0b5b1cbaa87050 (patch) | |
| tree | 3cde84583cd7435365bc3a6981558cc02d3b1df7 /assets | |
| parent | cbba5c25bd910661e181cbff72712bf92d27cd5b (diff) | |
add toc max height, fix scroll bar color
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/css/common/post-single.css | 9 |
1 files 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; |
