Varia: Center image block by default.
@@ -11,6 +11,7 @@
@import "code/editor";
@import "cover/editor";
@import "heading/editor";
+@import "image/editor";
@import "gallery/editor";
@import "group/editor";
@import "latest-comments/editor";
@@ -0,0 +1,9 @@
+/* Center image block by default in the editor */
+
+.wp-block-image > div {
+ text-align: center;
+}
+[data-type="core/image"] .block-editor-block-list__block-edit figure.is-resized {
+ margin:0 auto;
@@ -1,4 +1,5 @@
.wp-block-image {
figcaption {
color: #{map-deep-get($config-global, "color", "foreground", "light")};
@@ -396,6 +396,15 @@ object {
line-height: 1.125;
}
+ margin: 0 auto;
.wp-block-gallery figcaption {
margin-bottom: 0;
@@ -1423,6 +1423,10 @@ h6, .h6 {
+.wp-block-image {
.wp-block-image figcaption {
color: #767676;
font-size: 0.69444rem;