CSS: Improve formatting of list elements

This commit is contained in:
Philipp Oppermann
2019-06-19 16:45:01 +02:00
parent 5d2f27f870
commit bfab946078
2 changed files with 12 additions and 0 deletions

View File

@@ -169,6 +169,10 @@ a.anchorjs-link:hover {
margin-bottom: .2rem; margin-bottom: .2rem;
} }
#toc-aside li, #toc-inline li {
margin-top: 0;
}
aside#all-posts-link { aside#all-posts-link {
font-size: 90%; font-size: 90%;
margin-top: 0.5rem; margin-top: 0.5rem;

View File

@@ -111,6 +111,14 @@ ul, ol, dl {
margin-bottom: 1rem; margin-bottom: 1rem;
} }
li {
margin-top: .5rem;
}
li > ul > li:first-child {
margin-top: .2rem;
}
/* Nested lists */ /* Nested lists */
li ul, li ol, li dl { li ul, li ol, li dl {
margin-bottom: 0; margin-bottom: 0;