浏览代码

Club: font size fixes in various elements (#6366)

* Club: fixing line-height of h1 and h2 elements

* Club: fixing size of post and page titles

* Club: post comment form submit button font size update

* Club; pagination links font size

* Club: Remove the underline from query pagination and post navigation blocks

* Club: removing double underline from reply comment link

* Club: changing line-height of the footer elemetns

* Club: same font size for comment meta and content
Matias Benedetto 2 年之前
父节点
当前提交
c890b20a93
共有 4 个文件被更改,包括 63 次插入15 次删除
  1. 7 7
      club/parts/footer.html
  2. 1 1
      club/templates/page.html
  3. 1 1
      club/templates/single.html
  4. 54 6
      club/theme.json

+ 7 - 7
club/parts/footer.html

@@ -1,20 +1,20 @@
 <!-- wp:group -->
 <div class="wp-block-group"><!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
 	<div class="wp-block-group"><!-- wp:group {"style":{"spacing":{"blockGap":"0.5rem"}},"layout":{"type":"flex","orientation":"vertical"}} -->
-	<div class="wp-block-group"><!-- wp:site-title {"level":2,"style":{"typography":{"lineHeight":"1.6"}},"fontSize":"large"} /-->
+	<div class="wp-block-group"><!-- wp:site-title {"level":2,"style":{"typography":{"lineHeight":"1.3"}},"fontSize":"large"} /-->
 	
-	<!-- wp:paragraph {"fontSize":"large"} -->
-	<p class="has-large-font-size">Club 6 West 25th St, NY 10010</p>
+	<!-- wp:paragraph {"style":{"typography":{"lineHeight":"1.3"}},"fontSize":"large"} -->
+	<p class="has-large-font-size" style="line-height:1.3">Club 6 West 25th St, NY 10010</p>
 	<!-- /wp:paragraph --></div>
 	<!-- /wp:group -->
 	
 	<!-- wp:group {"style":{"spacing":{"blockGap":"0.5rem"}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"right"}} -->
-	<div class="wp-block-group"><!-- wp:paragraph {"align":"right","fontSize":"large"} -->
-	<p class="has-text-align-right has-large-font-size">info@cl.ub</p>
+	<div class="wp-block-group"><!-- wp:paragraph {"align":"right","style":{"typography":{"lineHeight":"1.3"}},"fontSize":"large"} -->
+	<p class="has-text-align-right has-large-font-size" style="line-height:1.3">info@cl.ub</p>
 	<!-- /wp:paragraph -->
 	
-	<!-- wp:paragraph {"align":"right","fontSize":"large"} -->
-	<p class="has-text-align-right has-large-font-size">+12345678910</p>
+	<!-- wp:paragraph {"align":"right","style":{"typography":{"lineHeight":"1.3"}},"fontSize":"large"} -->
+	<p class="has-text-align-right has-large-font-size" style="line-height:1.3">+12345678910</p>
 	<!-- /wp:paragraph --></div>
 	<!-- /wp:group --></div>
 	<!-- /wp:group -->

+ 1 - 1
club/templates/page.html

@@ -2,7 +2,7 @@
 
 <!-- wp:post-featured-image {"align":"full"} /-->
 
-<!-- wp:post-title {"level":1,"fontSize":"header-two"} /-->
+<!-- wp:post-title {"level":2} /-->
 
 <!-- wp:columns -->
 <div class="wp-block-columns"><!-- wp:column {"width":"33.33%"} -->

+ 1 - 1
club/templates/single.html

@@ -16,7 +16,7 @@
     <!-- /wp:column --></div>
     <!-- /wp:columns -->
     
-    <!-- wp:post-title {"level":1,"fontSize":"header-two"} /-->
+    <!-- wp:post-title {"level":2} /-->
     
     <!-- wp:columns {"lock":{"move":false,"remove":true}} -->
     <div class="wp-block-columns"><!-- wp:column {"width":"33.33%"} -->

+ 54 - 6
club/theme.json

@@ -223,8 +223,7 @@
 					"text": "var(--wp--preset--color--primary)"
 				},
 				"typography": {
-					"fontSize": "var(--wp--preset--font-size--small)",
-					"textDecoration": "underline"
+					"fontSize": "var(--wp--preset--font-size--small)"
 				}
 			},
 			"core/comments-title": {
@@ -234,13 +233,15 @@
 			},
 			"core/comment-content": {
 				"typography": {
-					"fontSize": "1.125rem",
-					"lineHeight": "1.6"
+					"fontSize": "var(--wp--preset--font-size--small)"
 				}
 			},
             "core/post-comments-form": {
                 "elements": {
                     "button": {
+                        "typography": {
+                            "fontSize": "var(--wp--preset--font-size--large)"
+                        },
                         "color":{
                             "background": "var(--wp--preset--color--background)",
                             "text": "var(--wp--preset--color--foreground)"
@@ -380,6 +381,28 @@
                     "textTransform": "uppercase"
                 }
             },
+            "core/query-pagination": {
+                "typography": {
+                    "fontSize": "var(--wp--preset--font-size--large)"
+                },
+                "elements": {
+                    "link": {
+                        "typography": {
+                            "textDecoration": "none"
+                        },
+                        ":hover": {
+                            "typography": {
+                                "textDecoration": "underline"
+                            }
+                        },
+                        ":active": {
+                            "typography": {
+                                "textDecoration": "underline dashed"
+                            }
+                        }
+                    }
+                }
+            },
             "core/search": {
                 "typography": {
                     "fontSize": "var(--wp--preset--font-size--large)",
@@ -431,6 +454,29 @@
                     }
                 }
             },
+            "core/post-navigation-link": {
+                "typography": {
+                    "fontSize": "var(--wp--preset--font-size--large)",
+                    "textDecoration": "none"
+                },
+                "elements": {
+                    "link": {
+                        "typography": {
+                            "textDecoration": "none"
+                        },
+                        ":hover": {
+                            "typography": {
+                                "textDecoration": "underline"
+                            }
+                        },
+                        ":active": {
+                            "typography": {
+                                "textDecoration": "underline dashed"
+                            }
+                        }
+                    }
+                }
+            },
             "core/post-template": {
                 "spacing": {
                     "blockGap": "0px"
@@ -504,13 +550,15 @@
             "h1": {
                 "typography": {
                     "fontSize": "clamp(3.75rem, calc(3.75rem + ((1vw - 0.48rem) * 8.4135)), 8.125rem)",
-                    "fontWeight": "400"
+                    "fontWeight": "400",
+                    "lineHeight": "1em"
                 }
             },
             "h2": {
                 "typography": {
                     "fontSize": "clamp(2.5rem, calc(2.5rem + ((1vw - 0.48rem) * 8.4135)), 6.875rem)",
-                    "fontWeight": "400"
+                    "fontWeight": "400",
+                    "lineHeight": "1em"
                 }
             },
             "h3": {