Make table of contents dark.

This commit is contained in:
Danila Fedorin 2020-06-30 22:11:27 -07:00
parent 1908126607
commit ef3c61e9e6
3 changed files with 21 additions and 5 deletions

View File

@ -261,12 +261,14 @@ figure {
nav { nav {
width: auto; width: auto;
margin: 0px;
} }
ul { ul {
position: relative; position: relative;
list-style: none; list-style: none;
padding-left: 2rem; padding-left: 2rem;
margin: 0px;
} }
li { li {
@ -276,4 +278,15 @@ figure {
a { a {
padding: 0; padding: 0;
} }
div.wrapper {
@include bordered-block;
padding: 1rem;
background-color: $toc-color;
border-color: $toc-border-color;
@include below-two-margins {
width: auto;
}
}
} }

View File

@ -2,14 +2,15 @@ $container-width: 45rem;
$standard-border-width: .075rem; $standard-border-width: .075rem;
$primary-color: #36e281; $primary-color: #36e281;
$primary-color-dark: darken($primary-color, 10%);
$code-color: #f0f0f0;
$code-color-dark: darken($code-color, 10%);
$border-color: #bfbfbf; $border-color: #bfbfbf;
$code-color: #f0f0f0;
$code-border-color: darken($code-color, 10%);
$toc-color: $code-color;
$toc-border-color: $code-border-color;
$font-heading: "Lora", serif; $font-heading: "Lora", serif;
$font-body: "Raleway", serif; $font-body: "Raleway", serif;
$font-code: "Inconsolata", monospace; $font-code: "Inconsolata", monospace;
$standard-border: $standard-border-width solid $border-color; $standard-border: $standard-border-width solid $border-color;
$code-border: 0.0375rem solid darken($code-color, 10%); $code-border: 0.0375rem solid $code-border-color;

View File

@ -10,12 +10,14 @@
</div> </div>
<div class="post-content"> <div class="post-content">
{{ if not (eq .TableOfContents "<nav id=\"TableOfContents\"></nav>") }}
<div class="table-of-contents"> <div class="table-of-contents">
<div> <div class="wrapper">
<em>Table of Contents</em> <em>Table of Contents</em>
{{ .TableOfContents }} {{ .TableOfContents }}
</div> </div>
</div> </div>
{{ end }}
{{ .Content }} {{ .Content }}
</div> </div>
{{ end }} {{ end }}