From 7c1411a28264232f556ccd654f50de1f0226a033 Mon Sep 17 00:00:00 2001 From: tellthemachines Date: Thu, 18 Apr 2024 13:03:06 +1000 Subject: [PATCH] Restore classic auto margin rule to its previous specificity. (#60802) Co-authored-by: tellthemachines Co-authored-by: andrewserong Co-authored-by: ramonjd Co-authored-by: arthur791004 --- packages/edit-post/src/classic.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/edit-post/src/classic.scss b/packages/edit-post/src/classic.scss index 5e1f2b8335d97..263315ab18f08 100644 --- a/packages/edit-post/src/classic.scss +++ b/packages/edit-post/src/classic.scss @@ -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; }