Fix list alignment

Resolve #420

- Remove `margin-top` for the first child in various list items, to improve alignment.
- Add examples of lists to `docs/tests/styling`.
This commit is contained in:
PLanCompS
2020-09-29 17:13:13 +02:00
parent 76f8f064ac
commit 59f757a790
5 changed files with 256 additions and 0 deletions

View File

@@ -154,6 +154,41 @@
visibility: hidden;
}
}
dd {
blockquote,
div,
dl,
dt,
h1,
h2,
h3,
h4,
h5,
h6,
li,
ol,
p,
pre,
table,
ul,
.table-wrapper {
&:first-child {
margin-top: 0;
}
}
}
dd,
ol,
ul {
dl:first-child {
dt:first-child,
dd:nth-child(2) {
margin-top: 0;
}
}
}
.anchor-heading:hover,
h1:hover > .anchor-heading,