From c1bb2c2f744b457a31acf86e73cbc2b90dbca6f7 Mon Sep 17 00:00:00 2001 From: Ian Belanger Date: Wed, 22 Apr 2020 19:23:54 +0000 Subject: [PATCH] Bundled Themes: Twenty Twenty resized images are centered inside the editor (with no alignment set) since WordPress 5.4. Fixes the image alignment issue by removing `margin-left: auto;` and `margin-right: auto;` from `.editor-styles-wrapper .wp-block-image.is-resized`. Props dianeco, JavierCasares. Fixes #49600. git-svn-id: https://develop.svn.wordpress.org/trunk@47613 602fd350-edb4-49c9-b593-d223f7449a82 --- .../twentytwenty/assets/css/editor-style-block-rtl.css | 5 ----- .../themes/twentytwenty/assets/css/editor-style-block.css | 5 ----- 2 files changed, 10 deletions(-) diff --git a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css index aaeed4338a..a78928d2a9 100644 --- a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css +++ b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css @@ -1054,11 +1054,6 @@ hr.wp-block-separator.is-style-dots::before { margin-top: 30px; } -.editor-styles-wrapper .wp-block-image.is-resized { - margin-right: auto; - margin-left: auto; -} - /* Block: Group ------------------------------ */ .editor-styles-wrapper .wp-block-group.has-background { diff --git a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css index 4e709dc59d..665a972e9c 100644 --- a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css +++ b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css @@ -1054,11 +1054,6 @@ hr.wp-block-separator.is-style-dots::before { margin-top: 30px; } -.editor-styles-wrapper .wp-block-image.is-resized { - margin-left: auto; - margin-right: auto; -} - /* Block: Group ------------------------------ */ .editor-styles-wrapper .wp-block-group.has-background {