Add border when table of contents is open

This commit is contained in:
Helen Chong 2025-02-23 16:56:38 +08:00
parent dc2eed45e0
commit 79c2d672fb
1 changed files with 6 additions and 2 deletions

View File

@ -23,13 +23,17 @@
color: var(--clr-sub-heading);
}
.toc ol,
.toc ol ol {
.toc__wrapper[open] > .toc__heading {
margin-bottom: 0.5em;
}
.toc ol, .toc ol ol {
display: grid;
gap: 0.3em;
}
.toc ol {
border-top: 0.1em solid var(--clr-title-border);
padding-left: 1.3em;
padding-top: 1em;
}