Skip to content

Commit

Permalink
Try: Zero out excerpt paragraph margins. (#47538)
Browse files Browse the repository at this point in the history
* Try: Zero out excerpt paragraph margins.

* Address feedback.

* Commit change.
  • Loading branch information
jasmussen authored and Mamaduka committed Feb 3, 2023
1 parent fc85b3e commit 404ba23
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/block-library/src/post-excerpt/style.scss
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit 404ba23

Please sign in to comment.