From 404ba23b5376a7e0ebdbe1e74ea2d4a566d59f14 Mon Sep 17 00:00:00 2001 From: Joen A <1204802+jasmussen@users.noreply.github.com> Date: Wed, 1 Feb 2023 12:18:37 +0100 Subject: [PATCH] Try: Zero out excerpt paragraph margins. (#47538) * Try: Zero out excerpt paragraph margins. * Address feedback. * Commit change. --- .../block-library/src/post-excerpt/style.scss | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/packages/block-library/src/post-excerpt/style.scss b/packages/block-library/src/post-excerpt/style.scss index e7b3e18491177e..60ad186da6acc3 100644 --- a/packages/block-library/src/post-excerpt/style.scss +++ b/packages/block-library/src/post-excerpt/style.scss @@ -1,3 +1,21 @@ +.wp-block-post-excerpt { + margin-top: var(--wp--style--block-gap); + margin-bottom: var(--wp--style--block-gap); +} + +// Zero out the margin on the excerpt paragraph, to match the body paragraphs. +.wp-block-post-excerpt__excerpt { + margin-top: 0; + margin-bottom: 0; +} + +// Matches block gap. +.wp-block-post-excerpt__more-text { + margin-top: var(--wp--style--block-gap); + margin-bottom: 0; +} + .wp-block-post-excerpt__more-link { display: inline-block; } +