add table of contents

This commit is contained in:
Huy Tran 2018-09-30 09:32:57 +10:00
parent 1b974ce9d3
commit b517159c0e
13 changed files with 161 additions and 23 deletions

View 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;
}