From 5720ae05276d58b23f982ac7c465f6c4e0a9886b Mon Sep 17 00:00:00 2001 From: Claas Augner <495429+caugner@users.noreply.github.com> Date: Fri, 19 Apr 2024 16:47:37 +0200 Subject: [PATCH] fix(callouts): reduce inner bottom spacing (#10944) * 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. --- client/src/document/index.scss | 4 ---- client/src/ui/molecules/notecards/index.scss | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/client/src/document/index.scss b/client/src/document/index.scss index 5ffaf549f795..3c55c8536ca1 100644 --- a/client/src/document/index.scss +++ b/client/src/document/index.scss @@ -213,10 +213,6 @@ .section-content { p { font: var(--type-article-p); - - &:last-child { - margin-bottom: 2rem; - } } figure { diff --git a/client/src/ui/molecules/notecards/index.scss b/client/src/ui/molecules/notecards/index.scss index d8adbd8ade80..3d8760d7e053 100644 --- a/client/src/ui/molecules/notecards/index.scss +++ b/client/src/ui/molecules/notecards/index.scss @@ -17,7 +17,7 @@ p { line-height: 2; - margin: 0 !important; + margin: 0; } &:before {