Fix Table of Contents

This commit is contained in:
vimux 2018-06-16 16:04:15 +03:00
parent 07fe4c777c
commit c638445a70
No known key found for this signature in database
GPG key ID: 5A34FDC4EE832E34

View file

@ -679,7 +679,7 @@ mark {
background: #111; background: #111;
} }
.post__toc { .toc {
padding: .5rem; padding: .5rem;
margin-bottom: 1rem; margin-bottom: 1rem;
color: #f8ae00; color: #f8ae00;
@ -687,26 +687,41 @@ mark {
background: #111; background: #111;
} }
.post__toc[open] { .toc[open] {
color: #fff; color: #fff;
} }
.post__toc ul {
padding-top: 1rem;
padding-left: 0;
list-style: none;
}
.post__toc ul ul {
padding-top: 0;
padding-left: 2rem;
}
.toc__title { .toc__title {
padding: .25rem; padding: .25rem;
font-weight: 700; font-weight: 700;
} }
.toc nav {
padding: .5rem 0 .5rem .5rem;
}
.toc ul {
margin: 0;
padding: 0;
list-style: none;
}
.toc ul ul ul a {
padding-left: 25px;
}
.toc ul ul ul ul a {
padding-left: 45px;
}
.toc ul ul ul ul ul a {
padding-left: 65px;
}
.toc ul ul ul ul ul ul a {
padding-left: 85px;
}
.post__footer { .post__footer {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;