mirror of https://github.com/lxndrblz/anatole.git

Alexander Bilz
04.43.2021 4b11819a89b7f43f66b13930c7555086459725a4
feat: added basic CSS for TOC

2 files modified
25 ■■■■■ changed files
assets/css/style.css 24 ●●●●● patch | view | raw | blame | history
layouts/_default/single.html 1 ●●●● patch | view | raw | blame | history
assets/css/style.css
@@ -912,6 +912,30 @@
  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);
layouts/_default/single.html
@@ -40,6 +40,7 @@
        <h3>Table of Contents</h3>
        {{ .TableOfContents }}
      {{- end -}}
      {{ .Content }}