Skip to content

Commit

Permalink
Reducing specificity of style book margin rules so that they don't ov…
Browse files Browse the repository at this point in the history
…erride

user-defined styles.
  • Loading branch information
ramonjd committed Nov 11, 2024
1 parent 55913fe commit f2cb169
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 f2cb169

Please sign in to comment.