add toc max height, fix scroll bar color
This commit is contained in:
parent
cbba5c25bd
commit
b8592bd443
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue