Skip to content

Commit

Permalink
Fix horizontal flex layout in classic themes. (WordPress#60154)
Browse files Browse the repository at this point in the history
Co-authored-by: tellthemachines <isabel_brison@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: ramonjd <ramonopoly@git.wordpress.org>
  • Loading branch information
4 people authored and cbravobernal committed Apr 9, 2024
1 parent 7920cb5 commit 16c07c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/edit-post/src/classic.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// Provide baseline auto margin for centering blocks.
// Specificity is kept at this level as many classic themes output
// rules like figure { margin: 0; } which would break centering.
.editor-styles-wrapper .wp-block {
// 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 {
margin-left: auto;
margin-right: auto;
}
Expand Down

0 comments on commit 16c07c8

Please sign in to comment.