From d939ada7a925e97e1fd16253d66aeced317c356d Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Thu, 25 Nov 2021 22:29:49 +0000 Subject: [PATCH] Twenty Twenty One: Remove Image block placeholder alignment override in editor styles. This changes excludes the Image block placeholder from the default image centering in Twenty Twenty-One editor styles. Props multidots1896, sabernhardt, Boniu91, justinahinon. Fixes #54254. git-svn-id: https://develop.svn.wordpress.org/trunk@52250 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentytwentyone/assets/css/ie-editor.css | 2 +- .../themes/twentytwentyone/assets/css/style-editor.css | 2 +- .../twentytwentyone/assets/sass/05-blocks/image/_editor.scss | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-content/themes/twentytwentyone/assets/css/ie-editor.css b/src/wp-content/themes/twentytwentyone/assets/css/ie-editor.css index d3bbb93c11..5afd750a7a 100644 --- a/src/wp-content/themes/twentytwentyone/assets/css/ie-editor.css +++ b/src/wp-content/themes/twentytwentyone/assets/css/ie-editor.css @@ -1197,7 +1197,7 @@ h6, /* Center image block by default in the editor */ .wp-block-image, -.wp-block-image > div { +.wp-block-image > div:not(.components-placeholder) { text-align: center; } diff --git a/src/wp-content/themes/twentytwentyone/assets/css/style-editor.css b/src/wp-content/themes/twentytwentyone/assets/css/style-editor.css index 8f61bab00c..d6019c45bb 100644 --- a/src/wp-content/themes/twentytwentyone/assets/css/style-editor.css +++ b/src/wp-content/themes/twentytwentyone/assets/css/style-editor.css @@ -1128,7 +1128,7 @@ h6, /* Center image block by default in the editor */ .wp-block-image, -.wp-block-image > div { +.wp-block-image > div:not(.components-placeholder) { text-align: center; } diff --git a/src/wp-content/themes/twentytwentyone/assets/sass/05-blocks/image/_editor.scss b/src/wp-content/themes/twentytwentyone/assets/sass/05-blocks/image/_editor.scss index dcbf6d3511..c108a60f9a 100644 --- a/src/wp-content/themes/twentytwentyone/assets/sass/05-blocks/image/_editor.scss +++ b/src/wp-content/themes/twentytwentyone/assets/sass/05-blocks/image/_editor.scss @@ -1,7 +1,7 @@ /* Center image block by default in the editor */ .wp-block-image, -.wp-block-image > div { +.wp-block-image > div:not(.components-placeholder) { text-align: center; }