fix: set correct margin before ul

pull/1/head
Nicolas Doby 2022-11-02 17:40:38 +01:00
parent 3f8d581e31
commit 1d65e67ca4
1 changed files with 15 additions and 9 deletions

View File

@ -127,16 +127,24 @@ h2 {
font-weight: 700; font-weight: 700;
letter-spacing: .02rem; letter-spacing: .02rem;
line-height: 1.7rem; line-height: 1.7rem;
margin: 3rem 0 2rem;
}
p, li {
font-size: 1.125rem;
line-height: 1.5rem;
} }
p { p {
font-size: 1.125rem; margin: 0;
line-height: 1.5rem;
margin: 1.5rem 0;
} }
li { p + p {
line-height: 1.5; margin-top: 1.5rem;
}
p ~ ul {
margin-top: .5rem;
} }
a { a {
@ -174,9 +182,6 @@ hr {
margin: 4rem 15vw; margin: 4rem 15vw;
} }
p + h2 {
margin-top: .5rem;
}
figure + h2, figure + h2,
pre + h2 { pre + h2 {
margin-top: 2rem; margin-top: 2rem;
@ -188,7 +193,7 @@ img {
figure { figure {
text-align: center; text-align: center;
margin: 0; margin: 2rem;
} }
figure img { figure img {
@ -374,6 +379,7 @@ pre[class*="language-diff-"] {
--eleventy-code-padding: 1.25em; --eleventy-code-padding: 1.25em;
padding-left: var(--eleventy-code-padding); padding-left: var(--eleventy-code-padding);
padding-right: var(--eleventy-code-padding); padding-right: var(--eleventy-code-padding);
margin: 1.5rem 0;
} }
.token.deleted { .token.deleted {
background-color: hsl(0, 51%, 37%); background-color: hsl(0, 51%, 37%);