瀏覽代碼

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

Button-2: Center image caption on frontend
Michael Cain 5 年之前
父節點
當前提交
b7d436ba04
共有 3 個文件被更改,包括 14 次插入2 次删除
  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 */
 
-[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 {
 	color: #555d66;
-	font-family: Lato, Helvetica, sans-serif;
+	font-family: Lora, Garamond, serif;
 	font-size: 13px;
+	font-style: italic;
+	text-align: center;
 	line-height: 1.6;
 }
 

+ 3 - 0
button-2/style.css

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