Skip to content

Commit

Permalink
Restore classic auto margin rule to its previous specificity. (#60802)
Browse files Browse the repository at this point in the history
Co-authored-by: tellthemachines <[email protected]>
Co-authored-by: andrewserong <[email protected]>
Co-authored-by: ramonjd <[email protected]>
Co-authored-by: arthur791004 <[email protected]>
  • Loading branch information
5 people authored and arthur791004 committed Apr 18, 2024
1 parent 33a8f2c commit 7c1411a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/edit-post/src/classic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Specificity is kept at this level as many classic themes output
// rules like figure { margin: 0; } which would break centering.
// These rules should also not apply to direct children of flex layout blocks.
:where(.editor-styles-wrapper) :where(:not(.is-layout-flex, .is-layout-grid)) > .wp-block {
.editor-styles-wrapper :where(:not(.is-layout-flex, .is-layout-grid)) > .wp-block {
margin-left: auto;
margin-right: auto;
}
Expand Down

0 comments on commit 7c1411a

Please sign in to comment.