Jelajahi Sumber

Blockbase: Move custom checkbox styles to Blockbase theme.json

Sarah Norris 4 tahun lalu
induk
melakukan
a57b2c153c

+ 25 - 0
blockbase/theme.json

@@ -159,6 +159,31 @@
 					"style": "solid",
 					"width": "2px"
 				},
+				"checkbox": {
+					"checked": {
+						"content": "\"\\2715\"",
+						"fontSize": "14px",
+						"position": {
+							"left": "3px",
+							"top": "4px"
+						},
+						"sizing": {
+							"height": "12px",
+							"width": "12px"
+						}
+					},
+					"unchecked": {
+						"content": "\"\"",
+						"position": {
+							"left": "0",
+							"top": "0.2em"
+						},
+						"sizing": {
+							"height": "16px",
+							"width": "16px"
+						}
+					}
+				},
 				"color": {
 					"background": "transparent",
 					"boxShadow": "none",

+ 28 - 0
mayland-blocks/theme.json

@@ -167,6 +167,31 @@
 					"style": "solid",
 					"width": "2px"
 				},
+				"checkbox": {
+					"checked": {
+						"content": "\"\\2715\"",
+						"fontSize": "14px",
+						"position": {
+							"left": "3px",
+							"top": "4px"
+						},
+						"sizing": {
+							"height": "12px",
+							"width": "12px"
+						}
+					},
+					"unchecked": {
+						"content": "\"\"",
+						"position": {
+							"left": "0",
+							"top": "0.2em"
+						},
+						"sizing": {
+							"height": "16px",
+							"width": "16px"
+						}
+					}
+				},
 				"color": {
 					"background": "transparent",
 					"boxShadow": "none",
@@ -206,6 +231,9 @@
 					}
 				}
 			},
+			"layout": {
+				"contentSize": "620px"
+			},
 			"list": {
 				"spacing": {
 					"padding": {

+ 0 - 25
quadrat/child-theme.json

@@ -155,31 +155,6 @@
 					"style": "solid",
 					"width": "2px"
 				},
-				"checkbox": {
-					"checked": {
-						"content": "\"\\2715\"",
-						"fontSize": "14px",
-						"position": {
-							"left": "3px",
-							"top": "4px"
-						},
-						"sizing": {
-							"height": "12px",
-							"width": "12px"
-						}
-					},
-					"unchecked": {
-						"content": "\"\"",
-						"position": {
-							"left": "0",
-							"top": "0.2em"
-						},
-						"sizing": {
-							"height": "16px",
-							"width": "16px"
-						}
-					}
-				},
 				"padding": "20px"
 			},
 			"body": {

+ 13 - 13
quadrat/theme.json

@@ -205,19 +205,6 @@
 					"style": "solid",
 					"width": "2px"
 				},
-				"color": {
-					"background": "transparent",
-					"boxShadow": "none",
-					"text": "var(--wp--custom--color--foreground)"
-				},
-				"label": {
-					"typography": {
-						"fontSize": "var(--wp--preset--font-size--tiny)"
-					}
-				},
-				"typography": {
-					"fontSize": "var(--wp--preset--font-size--normal)"
-				},
 				"checkbox": {
 					"checked": {
 						"content": "\"\\2715\"",
@@ -242,6 +229,19 @@
 							"width": "16px"
 						}
 					}
+				},
+				"color": {
+					"background": "transparent",
+					"boxShadow": "none",
+					"text": "var(--wp--custom--color--foreground)"
+				},
+				"label": {
+					"typography": {
+						"fontSize": "var(--wp--preset--font-size--tiny)"
+					}
+				},
+				"typography": {
+					"fontSize": "var(--wp--preset--font-size--normal)"
 				}
 			},
 			"gallery": {

+ 25 - 0
seedlet-blocks/theme.json

@@ -200,6 +200,31 @@
 					"style": "solid",
 					"width": "2px"
 				},
+				"checkbox": {
+					"checked": {
+						"content": "\"\\2715\"",
+						"fontSize": "14px",
+						"position": {
+							"left": "3px",
+							"top": "4px"
+						},
+						"sizing": {
+							"height": "12px",
+							"width": "12px"
+						}
+					},
+					"unchecked": {
+						"content": "\"\"",
+						"position": {
+							"left": "0",
+							"top": "0.2em"
+						},
+						"sizing": {
+							"height": "16px",
+							"width": "16px"
+						}
+					}
+				},
 				"color": {
 					"background": "transparent",
 					"boxShadow": "none",

+ 7 - 16
skatepark/child-theme.json

@@ -101,19 +101,6 @@
 					}
 				}
 			],
-			"form": {
-				"padding": "calc( 0.5 * var(--wp--custom--margin--horizontal) )",
-				"border": {
-					"color": "var(--wp--custom--color--primary)",
-					"width": "3px"
-				},
-				"color": {
-					"background": "transparent"
-				},
-				"typography": {
-					"fontSize": "var(--wp--preset--font-size--small)"
-				}
-			},
 			"fontsToLoadFromGoogle": [
 				"family=Red+Hat+Display:ital,wght@0,400;0,500;0,700;0,900;1,400;1,500;1,700;1,900"
 			],
@@ -126,7 +113,6 @@
 				},
 				"checkbox": {
 					"checked": {
-						"content": "\"\\2715\"",
 						"fontSize": "var(--wp--preset--font-size--normal)",
 						"position": {
 							"left": "7px",
@@ -138,9 +124,7 @@
 						}
 					},
 					"unchecked": {
-						"content": "\"\"",
 						"position": {
-							"left": "0",
 							"top": "-0.4em"
 						},
 						"sizing": {
@@ -149,6 +133,9 @@
 						}
 					}
 				},
+				"color": {
+					"background": "transparent"
+				},
 				"label": {
 					"spacing": {
 						"margin": {
@@ -161,6 +148,10 @@
 						"letterSpacing": ".1em",
 						"textTransform": "uppercase"
 					}
+				},
+				"padding": "calc( 0.5 * var(--wp--custom--margin--horizontal) )",
+				"typography": {
+					"fontSize": "var(--wp--preset--font-size--small)"
 				}
 			},
 			"heading": {

+ 21 - 21
skatepark/theme.json

@@ -151,27 +151,6 @@
 					"style": "solid",
 					"width": "3px"
 				},
-				"color": {
-					"background": "transparent",
-					"boxShadow": "none",
-					"text": "var(--wp--custom--color--foreground)"
-				},
-				"label": {
-					"typography": {
-						"fontSize": "var(--wp--preset--font-size--tiny)",
-						"fontWeight": "900",
-						"letterSpacing": ".1em",
-						"textTransform": "uppercase"
-					},
-					"spacing": {
-						"margin": {
-							"bottom": "var(--wp--custom--margin--baseline)"
-						}
-					}
-				},
-				"typography": {
-					"fontSize": "var(--wp--preset--font-size--normal)"
-				},
 				"checkbox": {
 					"checked": {
 						"content": "\"\\2715\"",
@@ -196,6 +175,27 @@
 							"width": "30px"
 						}
 					}
+				},
+				"color": {
+					"background": "transparent",
+					"boxShadow": "none",
+					"text": "var(--wp--custom--color--foreground)"
+				},
+				"label": {
+					"typography": {
+						"fontSize": "var(--wp--preset--font-size--tiny)",
+						"fontWeight": "900",
+						"letterSpacing": ".1em",
+						"textTransform": "uppercase"
+					},
+					"spacing": {
+						"margin": {
+							"bottom": "var(--wp--custom--margin--baseline)"
+						}
+					}
+				},
+				"typography": {
+					"fontSize": "var(--wp--preset--font-size--small)"
 				}
 			},
 			"gallery": {