浏览代码

Gallery: Add margins to the gallery block using theme.json (#4631)

* Gallery: Add margins to the gallery block using theme.json

* Remove unused code
Ben Dwyer 3 年之前
父节点
当前提交
0d25520809
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      blockbase/theme.json

+ 7 - 0
blockbase/theme.json

@@ -396,6 +396,13 @@
 					"fontFamily": "monospace"
 					"fontFamily": "monospace"
 				}
 				}
 			},
 			},
+			"core/gallery": {
+				"spacing": {
+					"margin": {
+						"bottom": "var(--wp--custom--gap--vertical)"
+					}
+				}
+			},
 			"core/navigation": {
 			"core/navigation": {
 				"typography": {
 				"typography": {
 					"fontSize": "var(--wp--preset--font-size--normal)"
 					"fontSize": "var(--wp--preset--font-size--normal)"