瀏覽代碼

Fix outline button

Rich Tabor 1 年之前
父節點
當前提交
b98eb10b2b
共有 1 個文件被更改,包括 26 次插入4 次删除
  1. 26 4
      assembler/theme.json

+ 26 - 4
assembler/theme.json

@@ -241,13 +241,35 @@
 	},
 	},
 	"styles": {
 	"styles": {
 		"blocks": {
 		"blocks": {
+            "core/buttons": {
+                "spacing": {
+                    "blockGap": "8px"
+                }
+            },
+            "core/button": {
+                "variations": {
+					"outline": {
+						"border": {
+                            "width": "1px"
+						},
+						"spacing": {
+							"padding": {
+                                "bottom": "9px",
+                                "left": "19px",
+                                "right": "19px",
+                                "top": "9px"
+                            }
+						}
+					}
+                }
+            },
 			"core/navigation": {
 			"core/navigation": {
 				"typography": {
 				"typography": {
 					"fontSize": "var(--wp--preset--font-size--small)"
 					"fontSize": "var(--wp--preset--font-size--small)"
 				}
 				}
 			},
 			},
 			"core/post-title": {
 			"core/post-title": {
-				"css": ":not([class*=\"text-align-\"]) {\n    text-align:center;\n}",
+				"css": ":not([class*=\"text-align-\"]){text-align:center;}",
 				"typography": {
 				"typography": {
 					"fontSize": "var(--wp--preset--font-size--x-large)"
 					"fontSize": "var(--wp--preset--font-size--x-large)"
 				}
 				}
@@ -273,7 +295,7 @@
 		"elements": {
 		"elements": {
 			"button": {
 			"button": {
 				"border": {
 				"border": {
-					"radius": "4px"
+					"radius": "6px"
 				},
 				},
 				"color": {
 				"color": {
 					"background": {
 					"background": {
@@ -286,8 +308,8 @@
 				"spacing": {
 				"spacing": {
 					"padding": {
 					"padding": {
 						"bottom": "10px",
 						"bottom": "10px",
-						"left": "18px",
-						"right": "18px",
+						"left": "20px",
+						"right": "20px",
 						"top": "10px"
 						"top": "10px"
 					}
 					}
 				},
 				},