You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
783 B
43 lines
783 B
// Hugo {{ .TableOfContents }}
|
|
$toc-background-color: #eee;
|
|
$toc-font-size: .9rem;
|
|
|
|
.toc-wrapper {
|
|
font-size: $toc-font-size;
|
|
padding: 0.5em 0.5em 0.5em 0em;
|
|
background: $toc-background-color;
|
|
label {
|
|
background: url(/img/menu-close-dark.svg) no-repeat right center;
|
|
display: block;
|
|
cursor: pointer;
|
|
padding-left: 1em;
|
|
}
|
|
}
|
|
#TableOfContents {
|
|
overflow: hidden;
|
|
margin-top: 0;
|
|
max-height: 100%;
|
|
> ul {
|
|
list-style-type: none;
|
|
padding-left: 0;
|
|
> li ul {
|
|
list-style-type: none;
|
|
padding-left: 1em;
|
|
}
|
|
}
|
|
}
|
|
|
|
input#tocToggle {
|
|
display: none;
|
|
+ label {
|
|
font-weight: bold;
|
|
}
|
|
&:checked {
|
|
+ label {
|
|
background-image: url(/img/menu-open-dark.svg);
|
|
}
|
|
~ #TableOfContents {
|
|
max-height: 0;
|
|
}
|
|
}
|
|
}
|
|
|