Skip to content

Commit

Permalink
fix(callouts): reduce inner bottom spacing (#10944)
Browse files Browse the repository at this point in the history
* fix(layout): remove unnecessary margin-bottom on last paragraph

We already add margins to all paragraphs, and this specific rule
caused trailing margin in callouts (previously also in noteblocks,
but this was overridden using !important).

* chore(notecard): remove unnecessary !important flag

This is no longer necessary, as the specific p:last-child rule is gone.
  • Loading branch information
caugner authored Apr 19, 2024
1 parent df72b4a commit 5720ae0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions client/src/document/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,6 @@
.section-content {
p {
font: var(--type-article-p);

&:last-child {
margin-bottom: 2rem;
}
}

figure {
Expand Down
2 changes: 1 addition & 1 deletion client/src/ui/molecules/notecards/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

p {
line-height: 2;
margin: 0 !important;
margin: 0;
}

&:before {
Expand Down

0 comments on commit 5720ae0

Please sign in to comment.