Set margin-top instead of margin-bottom for content elements
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Luca 2020-12-01 17:11:10 +01:00
parent 64ed10ab23
commit 27311d2456
1 changed files with 6 additions and 3 deletions

View File

@ -20,7 +20,6 @@ body {
} }
header { header {
margin-bottom: 1em;
} }
main { main {
@ -51,8 +50,12 @@ footer {
} }
h1, h2, h3, h4, h5, h6, p, ul { h1, h2, h3, h4, h5, h6, p, ul {
margin-bottom: 0.5em; margin-top: 0.5em;
padding: 0 0.5rem; padding: 0 0.5rem;
&:last-child {
margin-bottom: 0.5em;
}
} }
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {
@ -64,7 +67,7 @@ h1 {
} }
figure { figure {
margin-bottom: 1rem; margin: 1rem 0;
img { img {
max-width: 100%; max-width: 100%;