瀏覽代碼

Merge pull request #7082 from Automattic/fix/course-theme-variation-button-spacing

Update course theme variation button spacing
Imran Hossain 2 年之前
父節點
當前提交
468bcf0cdc
共有 4 個文件被更改,包括 12 次插入1 次删除
  1. 3 1
      course/style.css
  2. 3 0
      course/styles/blue.json
  3. 3 0
      course/styles/dark.json
  4. 3 0
      course/styles/gold.json

+ 3 - 1
course/style.css

@@ -263,10 +263,12 @@ a {
 	border-color: currentcolor;
 	border-width: 1px;
 	color: currentcolor;
-	padding: 0.5856em 1.5238em;
 	text-decoration: none;
 }
 
+.wp-block-button {
+	text-align: center;
+}
 /*
  * Pagination styles
  */

+ 3 - 0
course/styles/blue.json

@@ -286,6 +286,9 @@
 				"typography": {
 					"fontFamily": "var(--wp--preset--font-family--body)",
 					"letterSpacing": "-0.04em"
+				},
+				"spacing": {
+					"padding": "0.9em 1.75em"
 				}
 			},
 			"heading": {

+ 3 - 0
course/styles/dark.json

@@ -255,6 +255,9 @@
 				"typography": {
 					"fontWeight": "500",
 					"letterSpacing": "-0.01em"
+				},
+				"spacing": {
+					"padding": "0.9em 1.6em"
 				}
 			},
 			"heading": {

+ 3 - 0
course/styles/gold.json

@@ -303,6 +303,9 @@
 					"fontWeight": "700",
 					"letterSpacing": "0.001em",
 					"fontSize": "var(--wp--preset--font-size--x-small)"
+				},
+				"spacing": {
+					"padding": "1em 1.3em"
 				}
 			}
 		},