add toc max height, fix scroll bar color

This commit is contained in:
Reorx 2022-05-05 17:03:28 +08:00
parent cbba5c25bd
commit b8592bd443
1 changed files with 5 additions and 4 deletions

View File

@ -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;