Ver Fonte

Varia: Make sure resized and non-resized images appear centered initially, unless a user explicity chooses to have the image left or right aligned

Allan Cole há 5 anos atrás
pai
commit
98837f655d

+ 0 - 4
varia/sass/blocks/image/_editor.scss

@@ -1,9 +1,5 @@
 /* Center image block by default in the editor */
 
-.wp-block-image {
-	text-align: center;
-}
-
 .wp-block-image > div {
 	text-align: center;
 }

+ 1 - 0
varia/sass/blocks/image/_style.scss

@@ -1,4 +1,5 @@
 .wp-block-image {
+	text-align: center;
 
 	figcaption {
 		color: #{map-deep-get($config-global, "color", "foreground", "light")};

+ 0 - 4
varia/style-editor.css

@@ -397,10 +397,6 @@ object {
 }
 
 /* Center image block by default in the editor */
-.wp-block-image {
-	text-align: center;
-}
-
 .wp-block-image > div {
 	text-align: center;
 }

+ 4 - 0
varia/style-rtl.css

@@ -1423,6 +1423,10 @@ h6, .h6 {
 	line-height: 1.125;
 }
 
+.wp-block-image {
+	text-align: center;
+}
+
 .wp-block-image figcaption {
 	color: #767676;
 	font-size: 0.69444rem;

+ 4 - 0
varia/style.css

@@ -1423,6 +1423,10 @@ h6, .h6 {
 	line-height: 1.125;
 }
 
+.wp-block-image {
+	text-align: center;
+}
+
 .wp-block-image figcaption {
 	color: #767676;
 	font-size: 0.69444rem;