Skip to content

Commit

Permalink
Merge pull request #199 from Johann150/main
Browse files Browse the repository at this point in the history
fix (missing) margin collapses for sections
  • Loading branch information
lkhrs authored Jun 8, 2024
2 parents b188cc8 + f24a010 commit 287082c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion simple.css
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,9 @@ article, fieldset, dialog {
}

article h2:first-child,
section h2:first-child {
section h2:first-child,
article h3:first-child,
section h3:first-child {
margin-top: 1rem;
}

Expand All @@ -359,6 +361,10 @@ section:first-child {
padding-top: 0;
}

section + section {
margin-top: 0;
}

section:last-child {
border-bottom: 0;
padding-bottom: 0;
Expand Down

0 comments on commit 287082c

Please sign in to comment.