diff options
Diffstat (limited to 'assets/css/toc.scss')
-rw-r--r-- | assets/css/toc.scss | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/assets/css/toc.scss b/assets/css/toc.scss new file mode 100644 index 0000000..eceb614 --- /dev/null +++ b/assets/css/toc.scss @@ -0,0 +1,57 @@ +{{ if .Site.Params.primaryColor}} +$primary: {{ .Site.Params.primaryColor }}; +{{end}} + +/* TOC */ +.post-toc li { + list-style-type: none; + padding: 0.1em; +} +.toc { + overflow-y: auto; +} +.toc > .toc-list { + overflow: hidden; + position: relative; + + li { + list-style: none; + } +} +.toc-list { + margin: 0; + padding-left: 1rem +} +a.toc-link { + color: currentColor; +} +.is-collapsible { + overflow: hidden; + transition: all 300ms ease-in-out +} +.is-collapsed { + max-height: 0 +} +.is-position-fixed { + position: fixed !important; + top: 3rem +} +.is-active-link { + font-weight: 700 +} + +{{ if .Site.Params.primaryColor}} +a.is-active-link { + color: $primary; +} +{{end}} +.toc-link::before { + background-color: #EEE; + content: ' '; + display: inline-block; + height: inherit; + left: 0; + margin-top: -1px; + position: absolute; + width: 2px +} |