Ver Fonte

Blockbase: search block font size (#4865)

* defined a font size for search block
* added line-height control and removed it from the CSS
* rebuilt children
Maggie há 3 anos atrás
pai
commit
508e6866e9

+ 0 - 1
blockbase/assets/ponyfill.css

@@ -782,7 +782,6 @@ div.wp-block-query-pagination .wp-block-query-pagination-numbers .current {
 }
 
 .wp-block-search .wp-block-search__input {
-	line-height: var(--wp--custom--button--typography--line-height);
 	padding: var(--wp--custom--form--padding);
 	border: var(--wp--custom--form--border--width) var(--wp--custom--form--border--style) var(--wp--custom--form--border--color);
 }

+ 0 - 1
blockbase/sass/blocks/_search.scss

@@ -14,7 +14,6 @@
 	}
 
 	.wp-block-search__input {
-		line-height: var(--wp--custom--button--typography--line-height);
 		padding: var(--wp--custom--form--padding);
 		border: var(--wp--custom--form--border--width) var(--wp--custom--form--border--style) var(--wp--custom--form--border--color);
 	}

+ 6 - 0
blockbase/theme.json

@@ -450,6 +450,12 @@
 					}
 				}
 			},
+			"core/search": {
+				"typography": {
+					"fontSize": "var(--wp--custom--button--typography--font-size)",
+					"lineHeight": "var(--wp--custom--body--typography--line-height)"
+				}
+			},
 			"core/separator": {
 				"color": {
 					"text": "var(--wp--custom--color--foreground)"

+ 6 - 0
geologist/theme.json

@@ -454,6 +454,12 @@
 					}
 				}
 			},
+			"core/search": {
+				"typography": {
+					"fontSize": "var(--wp--custom--button--typography--font-size)",
+					"lineHeight": "var(--wp--custom--body--typography--line-height)"
+				}
+			},
 			"core/separator": {
 				"color": {
 					"text": "var(--wp--custom--color--foreground)"

+ 6 - 0
mayland-blocks/theme.json

@@ -479,6 +479,12 @@
 					}
 				}
 			},
+			"core/search": {
+				"typography": {
+					"fontSize": "var(--wp--custom--button--typography--font-size)",
+					"lineHeight": "var(--wp--custom--body--typography--line-height)"
+				}
+			},
 			"core/separator": {
 				"color": {
 					"text": "var(--wp--custom--color--foreground)"

+ 14 - 13
payton/theme.json

@@ -463,6 +463,12 @@
 					}
 				}
 			},
+			"core/search": {
+				"typography": {
+					"fontSize": "var(--wp--custom--button--typography--font-size)",
+					"lineHeight": "var(--wp--custom--body--typography--line-height)"
+				}
+			},
 			"core/separator": {
 				"color": {
 					"text": "var(--wp--custom--color--foreground)"
@@ -473,24 +479,12 @@
 					"width": "0 0 1px 0"
 				}
 			},
-			"core/site-title": {
-				"typography": {
-					"fontSize": "var(--wp--preset--font-size--normal)",
-					"fontWeight": 700
-				}
-			},
 			"core/quote": {
 				"border": {
 					"color": "var(--wp--custom--color--primary)",
 					"style": "solid",
 					"width": "0 0 0 1px"
 				},
-				"citation": {
-					"typography": {
-						"fontSize": "var(--wp--custom--font-sizes--tiny)",
-						"fontWeight": "400"
-					}
-				},
 				"spacing": {
 					"padding": {
 						"left": "var(--wp--custom--gap--horizontal)"
@@ -500,6 +494,13 @@
 					"fontSize": "var(--wp--preset--font-size--normal)",
 					"fontStyle": "normal"
 				}
+			},
+			"core/site-title": {
+				"typography": {
+					"fontSize": "var(--wp--preset--font-size--normal)",
+					"fontWeight": "700",
+					"textDecoration": "none"
+				}
 			}
 		},
 		"color": {
@@ -598,7 +599,7 @@
 			}
 		},
 		"spacing": {
-			"blockGap": "0.5em"
+			"blockGap": "1em"
 		},
 		"typography": {
 			"lineHeight": "var(--wp--custom--body--typography--line-height)",

+ 6 - 0
quadrat/theme.json

@@ -510,6 +510,12 @@
 					}
 				}
 			},
+			"core/search": {
+				"typography": {
+					"fontSize": "var(--wp--custom--button--typography--font-size)",
+					"lineHeight": "var(--wp--custom--body--typography--line-height)"
+				}
+			},
 			"core/separator": {
 				"color": {
 					"text": "var(--wp--custom--color--foreground)"

+ 6 - 0
russell/theme.json

@@ -459,6 +459,12 @@
 					}
 				}
 			},
+			"core/search": {
+				"typography": {
+					"fontSize": "var(--wp--custom--button--typography--font-size)",
+					"lineHeight": "var(--wp--custom--body--typography--line-height)"
+				}
+			},
 			"core/separator": {
 				"color": {
 					"text": "var(--wp--custom--color--foreground)"

+ 6 - 0
seedlet-blocks/theme.json

@@ -515,6 +515,12 @@
 					}
 				}
 			},
+			"core/search": {
+				"typography": {
+					"fontSize": "var(--wp--custom--button--typography--font-size)",
+					"lineHeight": "var(--wp--custom--body--typography--line-height)"
+				}
+			},
 			"core/separator": {
 				"color": {
 					"text": "#EFEFEF"

+ 6 - 0
skatepark/theme.json

@@ -502,6 +502,12 @@
 					}
 				}
 			},
+			"core/search": {
+				"typography": {
+					"fontSize": "var(--wp--custom--button--typography--font-size)",
+					"lineHeight": "var(--wp--custom--body--typography--line-height)"
+				}
+			},
 			"core/separator": {
 				"color": {
 					"text": "var(--wp--custom--color--foreground)"

+ 6 - 0
videomaker/theme.json

@@ -453,6 +453,12 @@
 					}
 				}
 			},
+			"core/search": {
+				"typography": {
+					"fontSize": "var(--wp--custom--button--typography--font-size)",
+					"lineHeight": "var(--wp--custom--body--typography--line-height)"
+				}
+			},
 			"core/separator": {
 				"color": {
 					"text": "var(--wp--custom--color--foreground)"

+ 6 - 0
zoologist/theme.json

@@ -455,6 +455,12 @@
 					}
 				}
 			},
+			"core/search": {
+				"typography": {
+					"fontSize": "var(--wp--custom--button--typography--font-size)",
+					"lineHeight": "var(--wp--custom--body--typography--line-height)"
+				}
+			},
 			"core/separator": {
 				"color": {
 					"text": "var(--wp--custom--color--foreground)"