diff options
author | Alexander Bilz <mail@alexbilz.com> | 2021-07-04 22:43:26 +0300 |
---|---|---|
committer | Alexander Bilz <mail@alexbilz.com> | 2021-07-04 22:43:26 +0300 |
commit | 4b11819a89b7f43f66b13930c7555086459725a4 (patch) | |
tree | 13bb24225e4410b9fc9b2c6dbf6797731a1646fb | |
parent | d55cac4876671d57d91a15cb4fee574a8525f80b (diff) |
feat: added basic CSS for TOC
-rw-r--r-- | assets/css/style.css | 24 | ||||
-rw-r--r-- | layouts/_default/single.html | 1 |
2 files changed, 25 insertions, 0 deletions
diff --git a/assets/css/style.css b/assets/css/style.css index e9450c0..7e56c2b 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -912,6 +912,30 @@ a.btn { display: none; } +#TableOfContents { + display: block; + background: transparent; +} + +#TableOfContents ul { + list-style: none; + line-height: 1.9em; + margin: 0; +} + +#TableOfContents > ul { + padding-left: 0; +} + +#TableOfContents li a { + display: inherit; + color: var(--link-color); +} + +#TableOfContents li a:hover { + display: inherit; +} + @media screen and (min-width: 960px), print { header { border-bottom: 1px solid var(--border-color); diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 3659a1f..b4a20f1 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -40,6 +40,7 @@ <h3>Table of Contents</h3> {{ .TableOfContents }} + {{- end -}} {{ .Content }} |