Skip to content

Commit

Permalink
Add margin to header child when it has no siblings
Browse files Browse the repository at this point in the history
Fix for issue #168
  • Loading branch information
lkhrs committed Oct 9, 2023
1 parent a187e94 commit 5791043
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions simple.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ body > header {
grid-column: 1 / -1;
}

body > header > *:only-child {
margin-block-start: 2rem;
}

body > header h1 {
max-width: 1200px;
margin: 1rem auto;
Expand Down

0 comments on commit 5791043

Please sign in to comment.