add table of contents
This commit is contained in:
parent
1b974ce9d3
commit
b517159c0e
13 changed files with 161 additions and 23 deletions
31
static-src/scss/tocbot.scss
Normal file
31
static-src/scss/tocbot.scss
Normal file
|
@ -0,0 +1,31 @@
|
|||
@import 'hugo-toc';
|
||||
|
||||
.toc {
|
||||
font-size: $toc-font-size;
|
||||
overflow-y: auto;
|
||||
background: $toc-background-color;
|
||||
padding-left: 0rem;
|
||||
padding-top: 1em;
|
||||
> .toc-list {
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
li {
|
||||
list-style: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
.toc-list {
|
||||
margin: 0;
|
||||
padding-left: 1rem;
|
||||
}
|
||||
.is-collapsible {
|
||||
max-height: 1000px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.is-collapsed {
|
||||
max-height: 0;
|
||||
}
|
||||
.is-position-fixed {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue