Rename id of ToC aside from toc to toc-aside

This commit is contained in:
Philipp Oppermann
2019-03-19 12:51:43 +01:00
parent 06b334396a
commit 06ec0dbf25
2 changed files with 8 additions and 8 deletions

View File

@@ -162,7 +162,7 @@ a.anchorjs-link:hover {
text-decoration: none; text-decoration: none;
} }
aside#toc { #toc-aside {
display: none; display: none;
} }
@@ -172,7 +172,7 @@ aside#all-posts-link {
} }
@media (min-width: 80rem) { @media (min-width: 80rem) {
aside#toc { #toc-aside {
display: block; display: block;
width: 12rem; width: 12rem;
position: fixed; position: fixed;
@@ -184,22 +184,22 @@ aside#all-posts-link {
transition: opacity .5s; transition: opacity .5s;
} }
aside#toc:hover { #toc-aside:hover {
opacity: 1; opacity: 1;
} }
aside#toc h2 { #toc-aside h2 {
font-size: 110%; font-size: 110%;
margin-bottom: .2rem; margin-bottom: .2rem;
} }
aside#toc ol { #toc-aside ol {
margin: 0 0 .2rem 0; margin: 0 0 .2rem 0;
padding: 0 0 0 1rem; padding: 0 0 0 1rem;
list-style:none; list-style:none;
} }
aside#toc ol li:before { #toc-aside ol li:before {
content: ""; content: "";
border-color: transparent #008eef; border-color: transparent #008eef;
border-style: solid; border-style: solid;
@@ -212,7 +212,7 @@ aside#all-posts-link {
position: relative; position: relative;
} }
aside#toc.coarse li ol { #toc-aside.coarse li ol {
display: none; display: none;
} }

View File

@@ -21,7 +21,7 @@
</div> </div>
{% endif %} {% endif %}
<aside id="toc"> <aside id="toc-aside">
<h2>Table of Contents</h2> <h2>Table of Contents</h2>
<ol> <ol>
{% for h2 in page.toc %}<li> {% for h2 in page.toc %}<li>