Bladeren bron

Blockbase: Update font size names

Ben Dwyer 3 jaren geleden
bovenliggende
commit
b07750894e

+ 1 - 1
blockbase/assets/ponyfill.css

@@ -464,7 +464,7 @@ p.has-background {
 
 .wp-block-post-comments form input:not([type=submit]):not([type=checkbox]),
 .wp-block-post-comments form textarea {
-	font-size: var(--wp--preset--font-size--normal);
+	font-size: var(--wp--preset--font-size--medium);
 	background: var(--wp--custom--color--background);
 	border: var(--wp--custom--form--border--width) var(--wp--custom--form--border--style) var(--wp--custom--form--border--color);
 	width: 100%;

+ 2 - 2
blockbase/block-template-parts/footer.html

@@ -1,7 +1,7 @@
 <!-- wp:group -->
 <div class="wp-block-group">
-	<!-- wp:paragraph {"align":"center","fontSize":"tiny"} -->
-	<p class="has-text-align-center has-tiny-font-size">Proudly Powered by <a href="https://wordpress.org" rel="nofollow">WordPress</a></p>
+	<!-- wp:paragraph {"align":"center","fontSize":"xs"} -->
+	<p class="has-text-align-center has-xs-font-size">Proudly Powered by <a href="https://wordpress.org" rel="nofollow">WordPress</a></p>
 	<!-- /wp:paragraph -->
 </div>
 <!-- /wp:group -->

+ 4 - 4
blockbase/block-template-parts/post-meta.html

@@ -1,8 +1,8 @@
 <!-- wp:group {"className":"post-meta","layout":{"type":"flex"}} -->
 <div class="wp-block-group post-meta">
-    <!-- wp:post-author {"showAvatar":false,"showBio":false,"fontSize":"tiny"} /-->
-    <!-- wp:post-date {"fontSize":"tiny","isLink":true} /-->
-    <!-- wp:post-terms {"term":"category","fontSize":"tiny"} /-->
-    <!-- wp:post-terms {"term": "post_tag", "fontSize":"tiny"} /-->
+    <!-- wp:post-author {"showAvatar":false,"showBio":false,"fontSize":"xs"} /-->
+    <!-- wp:post-date {"fontSize":"xs","isLink":true} /-->
+    <!-- wp:post-terms {"term":"category","fontSize":"xs"} /-->
+    <!-- wp:post-terms {"term": "post_tag", "fontSize":"xs"} /-->
 </div>
 <!-- /wp:group -->

+ 2 - 2
blockbase/sass/blocks/_post-comments.scss

@@ -30,7 +30,7 @@
 
 		input:not([type=submit]):not([type=checkbox]),
 		textarea {
-			font-size: var(--wp--preset--font-size--normal);
+			font-size: var(--wp--preset--font-size--medium);
 			background: var(--wp--custom--color--background);
 			border: var(--wp--custom--form--border--width) var(--wp--custom--form--border--style) var(--wp--custom--form--border--color);
 			width: 100%;
@@ -132,7 +132,7 @@
 				font-size: var(--wp--custom--post-comment--typography--font-size);
 				line-height: var(--wp--custom--post-comment--typography--line-height);
 				margin-bottom: var(--wp--custom--gap--vertical);
-				margin-top: var(--wp--custom--gap--vertical);	
+				margin-top: var(--wp--custom--gap--vertical);
 			}
 		}
 	}

+ 47 - 37
blockbase/theme.json

@@ -98,7 +98,7 @@
 					}
 				},
 				"typography": {
-					"fontSize": "var(--wp--preset--font-size--normal)",
+					"fontSize": "var(--wp--preset--font-size--medium)",
 					"fontWeight": "normal",
 					"lineHeight": 2
 				}
@@ -190,14 +190,14 @@
 						}
 					},
 					"typography": {
-						"fontSize": "var(--wp--preset--font-size--tiny)",
+						"fontSize": "var(--wp--preset--font-size--xs)",
 						"fontWeight": "normal",
 						"letterSpacing": "normal",
 						"textTransform": "none"
 					}
 				},
 				"typography": {
-					"fontSize": "var(--wp--preset--font-size--normal)"
+					"fontSize": "var(--wp--preset--font-size--medium)"
 				}
 			},
 			"gallery": {
@@ -254,14 +254,14 @@
 			},
 			"post-comment": {
 				"typography": {
-					"fontSize": "var(--wp--preset--font-size--normal)",
+					"fontSize": "var(--wp--preset--font-size--medium)",
 					"lineHeight": "var(--wp--custom--body--typography--line-height)"
 				}
 			},
 			"pullquote": {
 				"citation": {
 					"typography": {
-						"fontSize": "var(--wp--preset--font-size--tiny)",
+						"fontSize": "var(--wp--preset--font-size--xs)",
 						"fontFamily": "inherit",
 						"fontStyle": "italic"
 					},
@@ -278,7 +278,7 @@
 			"quote": {
 				"citation": {
 					"typography": {
-						"fontSize": "var(--wp--preset--font-size--tiny)",
+						"fontSize": "var(--wp--preset--font-size--xs)",
 						"fontStyle": "italic",
 						"fontWeight": "400"
 					}
@@ -295,7 +295,7 @@
 			"table": {
 				"figcaption": {
 					"typography": {
-						"fontSize": "var(--wp--preset--font-size--tiny)"
+						"fontSize": "var(--wp--preset--font-size--xs)"
 					}
 				}
 			},
@@ -334,9 +334,9 @@
 			],
 			"fontSizes": [
 				{
-					"name": "Tiny",
+					"name": "Extra Small",
 					"size": "14px",
-					"slug": "tiny"
+					"slug": "xs"
 				},
 				{
 					"name": "Small",
@@ -344,9 +344,9 @@
 					"slug": "small"
 				},
 				{
-					"name": "Normal",
+					"name": "Medium",
 					"size": "18px",
-					"slug": "normal"
+					"slug": "medium"
 				},
 				{
 					"name": "Large",
@@ -354,9 +354,9 @@
 					"slug": "large"
 				},
 				{
-					"name": "Huge",
+					"name": "Extra Large",
 					"size": "28px",
-					"slug": "huge"
+					"slug": "xl"
 				}
 			]
 		}
@@ -406,23 +406,33 @@
 			},
 			"core/navigation": {
 				"typography": {
-					"fontSize": "var(--wp--preset--font-size--normal)"
+					"fontSize": "var(--wp--preset--font-size--medium)"
 				}
 			},
 			"core/post-title": {
 				"typography": {
 					"fontFamily": "var(--wp--preset--font-family--system-font)",
-					"fontSize": "var(--wp--preset--font-size--huge)",
+					"fontSize": "var(--wp--preset--font-size--xl)",
 					"lineHeight": "var(--wp--custom--heading--typography--line-height)"
 				}
 			},
+			"core/post-author": {
+				"typography": {
+					"fontSize": "var(--wp--preset--font-size--xs)"
+				}
+			},
 			"core/post-date": {
 				"color": {
 					"link": "var(--wp--custom--color--foreground)",
 					"text": "var(--wp--custom--color--foreground)"
 				},
 				"typography": {
-					"fontSize": "var(--wp--preset--font-size--small)"
+					"fontSize": "var(--wp--preset--font-size--xs)"
+				}
+			},
+			"core/post-terms": {
+				"typography": {
+					"fontSize": "var(--wp--preset--font-size--xs)"
 				}
 			},
 			"core/pullquote": {
@@ -432,7 +442,7 @@
 				},
 				"typography": {
 					"fontStyle": "italic",
-					"fontSize": "var(--wp--preset--font-size--huge)"
+					"fontSize": "var(--wp--preset--font-size--xl)"
 				},
 				"spacing": {
 					"padding": {
@@ -443,22 +453,6 @@
 					}
 				}
 			},
-			"core/separator": {
-				"color": {
-					"text": "var(--wp--custom--color--foreground)"
-				},
-				"border": {
-					"color": "currentColor",
-					"style": "solid",
-					"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)",
@@ -471,9 +465,25 @@
 					}
 				},
 				"typography": {
-					"fontSize": "var(--wp--preset--font-size--normal)",
+					"fontSize": "var(--wp--preset--font-size--medium)",
 					"fontStyle": "normal"
 				}
+			},
+			"core/separator": {
+				"color": {
+					"text": "var(--wp--custom--color--foreground)"
+				},
+				"border": {
+					"color": "currentColor",
+					"style": "solid",
+					"width": "0 0 1px 0"
+				}
+			},
+			"core/site-title": {
+				"typography": {
+					"fontSize": "var(--wp--preset--font-size--medium)",
+					"fontWeight": 700
+				}
 			}
 		},
 		"color": {
@@ -514,7 +524,7 @@
 					"fontFamily": "var(--wp--preset--font-family--system-font)",
 					"fontWeight": "var(--wp--custom--heading--typography--font-weight)",
 					"lineHeight": "var(--wp--custom--heading--typography--line-height)",
-					"fontSize": "var(--wp--preset--font-size--huge)"
+					"fontSize": "var(--wp--preset--font-size--xl)"
 				},
 				"spacing": {
 					"margin": {
@@ -542,7 +552,7 @@
 					"fontFamily": "var(--wp--preset--font-family--system-font)",
 					"fontWeight": "var(--wp--custom--heading--typography--font-weight)",
 					"lineHeight": "var(--wp--custom--heading--typography--line-height)",
-					"fontSize": "var(--wp--preset--font-size--normal)"
+					"fontSize": "var(--wp--preset--font-size--medium)"
 				},
 				"spacing": {
 					"margin": {
@@ -577,7 +587,7 @@
 		"typography": {
 			"lineHeight": "var(--wp--custom--body--typography--line-height)",
 			"fontFamily": "var(--wp--preset--font-family--system-font)",
-			"fontSize": "var(--wp--preset--font-size--normal)"
+			"fontSize": "var(--wp--preset--font-size--medium)"
 		}
 	}
 }

+ 13 - 8
geologist/child-theme.json

@@ -159,7 +159,7 @@
 			"quote": {
 				"citation": {
 					"typography": {
-						"fontSize": "var(--wp--preset--font-size--tiny)",
+						"fontSize": "var(--wp--preset--font-size--xs)",
 						"fontStyle": "normal",
 						"fontWeight": "400"
 					}
@@ -191,9 +191,9 @@
 			],
 			"fontSizes": [
 				{
-					"name": "Tiny",
+					"name": "Extra Small",
 					"size": "15px",
-					"slug": "tiny"
+					"slug": "xs"
 				},
 				{
 					"name": "Small",
@@ -201,9 +201,9 @@
 					"slug": "small"
 				},
 				{
-					"name": "Normal",
+					"name": "Medium",
 					"size": "18px",
-					"slug": "normal"
+					"slug": "medium"
 				},
 				{
 					"name": "Large",
@@ -322,7 +322,7 @@
 			},
 			"core/query-pagination": {
 				"typography": {
-					"fontSize": "18px",
+					"fontSize": "var(--wp--preset--font-size--normal)",
 					"fontWeight": "500"
 				}
 			},
@@ -331,10 +331,15 @@
 					"link": "var(--wp--custom--color--primary)"
 				},
 				"typography": {
-					"fontSize": "18px",
+					"fontSize": "var(--wp--preset--font-size--medium)",
 					"fontWeight": 700,
 					"textTransform": "uppercase"
 				}
+			},
+			"core/site-tagline": {
+				"typography": {
+					"fontSize": "var(--wp--preset--font-size--xs)"
+				}
 			}
 		},
 		"elements": {
@@ -369,7 +374,7 @@
 			"h5": {
 				"typography": {
 					"fontFamily": "var(--wp--preset--font-family--dm-sans)",
-					"fontSize": "18px",
+					"fontSize": "var(--wp--preset--font-size--medium)",
 					"lineHeight": 1.4
 				}
 			},

+ 54 - 32
geologist/theme.json

@@ -210,14 +210,14 @@
 						}
 					},
 					"typography": {
-						"fontSize": "var(--wp--preset--font-size--tiny)",
+						"fontSize": "var(--wp--preset--font-size--xs)",
 						"fontWeight": "normal",
 						"letterSpacing": "normal",
 						"textTransform": "none"
 					}
 				},
 				"typography": {
-					"fontSize": "var(--wp--preset--font-size--normal)"
+					"fontSize": "var(--wp--preset--font-size--medium)"
 				}
 			},
 			"gallery": {
@@ -274,14 +274,14 @@
 			},
 			"post-comment": {
 				"typography": {
-					"fontSize": "var(--wp--preset--font-size--normal)",
+					"fontSize": "var(--wp--preset--font-size--medium)",
 					"lineHeight": "var(--wp--custom--body--typography--line-height)"
 				}
 			},
 			"pullquote": {
 				"citation": {
 					"typography": {
-						"fontSize": "var(--wp--preset--font-size--tiny)",
+						"fontSize": "var(--wp--preset--font-size--xs)",
 						"fontFamily": "inherit",
 						"fontStyle": "normal",
 						"fontWeight": 400
@@ -299,7 +299,7 @@
 			"quote": {
 				"citation": {
 					"typography": {
-						"fontSize": "var(--wp--preset--font-size--tiny)",
+						"fontSize": "var(--wp--preset--font-size--xs)",
 						"fontStyle": "normal",
 						"fontWeight": "400"
 					}
@@ -316,7 +316,7 @@
 			"table": {
 				"figcaption": {
 					"typography": {
-						"fontSize": "var(--wp--preset--font-size--tiny)"
+						"fontSize": "var(--wp--preset--font-size--xs)"
 					}
 				}
 			},
@@ -359,9 +359,9 @@
 			],
 			"fontSizes": [
 				{
-					"name": "Tiny",
+					"name": "Extra Small",
 					"size": "15px",
-					"slug": "tiny"
+					"slug": "xs"
 				},
 				{
 					"name": "Small",
@@ -369,9 +369,9 @@
 					"slug": "small"
 				},
 				{
-					"name": "Normal",
+					"name": "Medium",
 					"size": "18px",
-					"slug": "normal"
+					"slug": "medium"
 				},
 				{
 					"name": "Large",
@@ -433,6 +433,13 @@
 					"background": "var(--wp--custom--color--tertiary)"
 				}
 			},
+			"core/gallery": {
+				"spacing": {
+					"margin": {
+						"bottom": "var(--wp--custom--gap--vertical)"
+					}
+				}
+			},
 			"core/navigation": {
 				"typography": {
 					"fontSize": "18px"
@@ -446,13 +453,23 @@
 					"fontWeight": "var(--wp--custom--heading--typography--font-weight)"
 				}
 			},
+			"core/post-author": {
+				"typography": {
+					"fontSize": "var(--wp--preset--font-size--xs)"
+				}
+			},
 			"core/post-date": {
 				"color": {
 					"link": "var(--wp--custom--color--foreground)",
 					"text": "var(--wp--custom--color--foreground)"
 				},
 				"typography": {
-					"fontSize": "var(--wp--preset--font-size--small)"
+					"fontSize": "var(--wp--preset--font-size--xs)"
+				}
+			},
+			"core/post-terms": {
+				"typography": {
+					"fontSize": "var(--wp--preset--font-size--xs)"
 				}
 			},
 			"core/pullquote": {
@@ -475,26 +492,6 @@
 					}
 				}
 			},
-			"core/separator": {
-				"color": {
-					"text": "var(--wp--custom--color--foreground)"
-				},
-				"border": {
-					"color": "currentColor",
-					"style": "solid",
-					"width": "0 0 1px 0"
-				}
-			},
-			"core/site-title": {
-				"typography": {
-					"fontSize": "18px",
-					"fontWeight": 700,
-					"textTransform": "uppercase"
-				},
-				"color": {
-					"link": "var(--wp--custom--color--primary)"
-				}
-			},
 			"core/quote": {
 				"border": {
 					"color": "var(--wp--custom--color--primary)",
@@ -519,6 +516,26 @@
 					}
 				}
 			},
+			"core/separator": {
+				"color": {
+					"text": "var(--wp--custom--color--foreground)"
+				},
+				"border": {
+					"color": "currentColor",
+					"style": "solid",
+					"width": "0 0 1px 0"
+				}
+			},
+			"core/site-title": {
+				"typography": {
+					"fontSize": "18px",
+					"fontWeight": 700,
+					"textTransform": "uppercase"
+				},
+				"color": {
+					"link": "var(--wp--custom--color--primary)"
+				}
+			},
 			"core/navigation-link": {
 				"color": {
 					"background": "transparent",
@@ -544,6 +561,11 @@
 					"fontSize": "18px",
 					"fontWeight": "500"
 				}
+			},
+			"core/site-tagline": {
+				"typography": {
+					"fontSize": "var(--wp--preset--font-size--xs)"
+				}
 			}
 		},
 		"color": {
@@ -647,7 +669,7 @@
 		"typography": {
 			"lineHeight": "var(--wp--custom--body--typography--line-height)",
 			"fontFamily": "var(--wp--preset--font-family--dm-sans)",
-			"fontSize": "var(--wp--preset--font-size--normal)",
+			"fontSize": "var(--wp--preset--font-size--medium)",
 			"fontWeight": "400"
 		},
 		"core/site-logo": {