Skip to content

Commit

Permalink
Style book:reduce margin selector specificity to avoid overriding glo…
Browse files Browse the repository at this point in the history
…bal block styles (#66895)


Co-authored-by: ramonjd <[email protected]>
Co-authored-by: aaronrobertshaw <[email protected]>
  • Loading branch information
3 people authored Nov 11, 2024
1 parent dd042a2 commit 17a1809
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/edit-site/src/components/style-book/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,10 @@ export const STYLE_BOOK_IFRAME_STYLES = `
.edit-site-style-book__example-preview .block-list-appender {
display: none;
}
.edit-site-style-book__example-preview .is-root-container > .wp-block:first-child {
:where(.is-root-container > .wp-block:first-child) {
margin-top: 0;
}
.edit-site-style-book__example-preview .is-root-container > .wp-block:last-child {
:where(.is-root-container > .wp-block:last-child) {
margin-bottom: 0;
}
`;

0 comments on commit 17a1809

Please sign in to comment.