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
This commit is contained in:
Jb Audras 2021-11-25 22:29:49 +00:00
parent 1ef4bafe1a
commit d939ada7a9
3 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}