浏览代码

Merge pull request #4400 from Automattic/Blockbase-percentage-units

added % units to blockbase and rebuilt children
Maggie 3 年之前
父节点
当前提交
cd98425191

+ 1 - 0
blockbase/theme.json

@@ -291,6 +291,7 @@
 		"spacing": {
 			"customPadding": true,
 			"units": [
+				"%",
 				"px",
 				"em",
 				"rem",

+ 0 - 4
mayland-blocks/child-theme.json

@@ -90,10 +90,6 @@
 			"contentSize": "782px",
 			"wideSize": "1000px"
 		},
-		"spacing": {
-			"customPadding": true,
-			"units": [ "px", "em", "rem", "vh", "vw" ]
-		},
 		"typography": {
 			"customFontSize": true,
 			"customLineHeight": true,

+ 1 - 0
mayland-blocks/theme.json

@@ -303,6 +303,7 @@
 		"spacing": {
 			"customPadding": true,
 			"units": [
+				"%",
 				"px",
 				"em",
 				"rem",

+ 0 - 10
quadrat/child-theme.json

@@ -209,16 +209,6 @@
 			"contentSize": "664px",
 			"wideSize": "1128px"
 		},
-		"spacing": {
-			"customPadding": true,
-			"units": [
-				"px",
-				"em",
-				"rem",
-				"vh",
-				"vw"
-			]
-		},
 		"typography": {
 			"customFontSize": true,
 			"customLineHeight": true,

+ 1 - 0
quadrat/theme.json

@@ -341,6 +341,7 @@
 		"spacing": {
 			"customPadding": true,
 			"units": [
+				"%",
 				"px",
 				"em",
 				"rem",

+ 1 - 0
seedlet-blocks/theme.json

@@ -332,6 +332,7 @@
 		"spacing": {
 			"customPadding": true,
 			"units": [
+				"%",
 				"px",
 				"em",
 				"rem",

+ 1 - 0
skatepark/theme.json

@@ -336,6 +336,7 @@
 		"spacing": {
 			"customPadding": true,
 			"units": [
+				"%",
 				"px",
 				"em",
 				"rem",