Jelajahi Sumber

Merge pull request #1726 from Automattic/fix/#1725

Button-2: Center image caption on frontend
Michael Cain 5 tahun lalu
induk
melakukan
b7d436ba04
3 mengubah file dengan 14 tambahan dan 2 penghapusan
  1. 8 1
      button-2/blocks.css
  2. 3 1
      button-2/editor-blocks.css
  3. 3 0
      button-2/style.css

+ 8 - 1
button-2/blocks.css

@@ -20,7 +20,14 @@ Description: Used to style Gutenberg blocks
 
 
 /* Captions */
 /* Captions */
 
 
-[class^="wp-block-"] figcaption {}
+[class^="wp-block-"] figcaption {
+	color: #555d66;
+	font-family: Lora, Garamond, serif;
+	font-size: 13px;
+	font-style: italic;
+	text-align: center;
+	line-height: 1.6;
+}
 
 
 
 
 /*--------------------------------------------------------------
 /*--------------------------------------------------------------

+ 3 - 1
button-2/editor-blocks.css

@@ -155,8 +155,10 @@ Description: Gutenberg Block Editor Styles
 
 
 [class^="wp-block-"] figcaption {
 [class^="wp-block-"] figcaption {
 	color: #555d66;
 	color: #555d66;
-	font-family: Lato, Helvetica, sans-serif;
+	font-family: Lora, Garamond, serif;
 	font-size: 13px;
 	font-size: 13px;
+	font-style: italic;
+	text-align: center;
 	line-height: 1.6;
 	line-height: 1.6;
 }
 }
 
 

+ 3 - 0
button-2/style.css

@@ -1914,9 +1914,12 @@ figure {
 }
 }
 
 
 .wp-caption-text {
 .wp-caption-text {
+	color: #555d66;
 	font-family: Lora, Garamond, serif;
 	font-family: Lora, Garamond, serif;
+	font-size: 13px;
 	font-style: italic;
 	font-style: italic;
 	text-align: center;
 	text-align: center;
+	line-height: 1.6;
 }
 }
 
 
 /*--------------------------------------------------------------
 /*--------------------------------------------------------------