From 509d540eff3c27e27e34968ffe84a9a5f91f409c Mon Sep 17 00:00:00 2001 From: William Patton Date: Tue, 12 Nov 2019 11:46:22 +0000 Subject: [PATCH] Make size margins `auto` for resized images (#1002) --- assets/css/editor-style-block-rtl.css | 5 +++++ assets/css/editor-style-block.css | 5 +++++ style-rtl.css | 4 ++++ style.css | 4 ++++ 4 files changed, 18 insertions(+) diff --git a/assets/css/editor-style-block-rtl.css b/assets/css/editor-style-block-rtl.css index 97f868df5..4b3018a08 100644 --- a/assets/css/editor-style-block-rtl.css +++ b/assets/css/editor-style-block-rtl.css @@ -1060,6 +1060,11 @@ 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/assets/css/editor-style-block.css b/assets/css/editor-style-block.css index c71b257c3..55d1446f3 100644 --- a/assets/css/editor-style-block.css +++ b/assets/css/editor-style-block.css @@ -1060,6 +1060,11 @@ 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 { diff --git a/style-rtl.css b/style-rtl.css index 06062b071..a06df0d50 100644 --- a/style-rtl.css +++ b/style-rtl.css @@ -1202,6 +1202,10 @@ button.toggle { } } +.wp-block-image.is-resized { + margin-right: auto; + margin-left: auto; +} /* Search Form ------------------------------- */ diff --git a/style.css b/style.css index 2fdbb2fa2..85f7cf728 100644 --- a/style.css +++ b/style.css @@ -1208,6 +1208,10 @@ button.toggle { } } +.wp-block-image.is-resized { + margin-left: auto; + margin-right: auto; +} /* Search Form ------------------------------- */