Procházet zdrojové kódy

added padding rules

MaggieCabrera před 3 roky
rodič
revize
0c7237b949
1 změnil soubory, kde provedl 8 přidání a 0 odebrání
  1. 8 0
      blockbase/theme.json

+ 8 - 0
blockbase/theme.json

@@ -555,6 +555,14 @@
 					"fontWeight": "var(--wp--custom--button--typography--font-weight)",
 					"fontWeight": "var(--wp--custom--button--typography--font-weight)",
 					"lineHeight": "var(--wp--custom--button--typography--line-height)",
 					"lineHeight": "var(--wp--custom--button--typography--line-height)",
 					"textDecoration": "none"
 					"textDecoration": "none"
+				},
+				"spacing": {
+					"padding": {
+						"top": "calc( var(--wp--custom--button--spacing--padding--top) + var(--wp--custom--button--border--width) )",
+						"bottom": "calc( var(--wp--custom--button--spacing--padding--bottom) + var(--wp--custom--button--border--width) )",
+						"left": "calc( var(--wp--custom--button--spacing--padding--left) + var(--wp--custom--button--border--width) )",
+						"right": "calc( var(--wp--custom--button--spacing--padding--right) + var(--wp--custom--button--border--width) )"
+					}
 				}
 				}
 			},
 			},
 			"h1": {
 			"h1": {