Simplify CSS for TOC block (#55)

Not perfect, but fixes Goldmark and respect blackfriday simultaneously
(looks slightly different now).

Fixes #22

Closes #41
This commit is contained in:
Vimux 2021-07-04 19:16:32 +03:00 committed by GitHub
parent 2479b02425
commit 04d51be8c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -485,26 +485,17 @@ button:not(:-moz-focusring):focus > .main-nav__btn-box {
padding: .5rem 0 .5rem .5rem; padding: .5rem 0 .5rem .5rem;
} }
.toc ul { .toc nav ul {
padding: 0;
margin: 0;
list-style: none;
}
.toc ul ul ul a {
padding-left: 25px; padding-left: 25px;
} }
.toc ul ul ul ul a { .toc nav ul li {
padding-left: 45px; list-style: none;
} }
.toc ul ul ul ul ul a { .toc nav > ul {
padding-left: 65px; padding: 0;
} margin: 0;
.toc ul ul ul ul ul ul a {
padding-left: 85px;
} }
.entry__footer { .entry__footer {