Skip to content

Commit

Permalink
Merge pull request #1248 from utelecon/202410-box-in-details-margin
Browse files Browse the repository at this point in the history
`<details>` 内の `.box` に十分なmarginを与える
  • Loading branch information
jtamatsukuri authored Nov 13, 2024
2 parents 5ece725 + e87b0c7 commit 9c43e43
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/styles/margin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,10 @@ blockquote, figure, ol, p, ul, .box, .box--alert, .box--important {
:is(ol, ul) & + & {
margin-top: 1em;
}
details > &:first-child {
margin-top: 1em;
}
details > &:last-child {
margin-bottom: 1em;
}
}

0 comments on commit 9c43e43

Please sign in to comment.