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 Feb 1, 2023
1 parent cf83979 commit 9b9e612
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;
}

1 comment on commit 9b9e612

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 9b9e612.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4063794659
📝 Reported issues:

Please sign in to comment.