From b069a7d28ec52f4e03d3015a897aea8140ef0237 Mon Sep 17 00:00:00 2001 From: tellthemachines Date: Wed, 17 Apr 2024 14:31:23 +1000 Subject: [PATCH] Restore classic auto margin rule to its previous specificity. --- 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 5e1f2b8335d970..263315ab18f084 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; }