mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Rename id of ToC aside from toc to toc-aside
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user