Skip to content

Commit

Permalink
feat: added basic CSS for TOC
Browse files Browse the repository at this point in the history
  • Loading branch information
lxndrblz committed Jul 4, 2021
1 parent d55cac4 commit 4b11819
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
24 changes: 24 additions & 0 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ <h1>{{ .Title }}</h1>
<h3>Table of Contents</h3>
{{ .TableOfContents }}


{{- end -}}

{{ .Content }}
Expand Down

0 comments on commit 4b11819

Please sign in to comment.