Browse Source

Club: removing custom font size (#6335)

* Club: changing fontsize guide removing custom font size and adding it to the default fontsizes array

* Club: set medium font size as default. Remove  ad-hoc default font size definition
Matias Benedetto 2 years ago
parent
commit
9a7b5f9959
2 changed files with 23 additions and 23 deletions
  1. 7 7
      club/parts/footer.html
  2. 16 16
      club/theme.json

+ 7 - 7
club/parts/footer.html

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

+ 16 - 16
club/theme.json

@@ -63,9 +63,6 @@
             "gap": {
             "gap": {
                 "horizontal": "min(30px, 5vw)",
                 "horizontal": "min(30px, 5vw)",
                 "vertical": "min(30px, 5vw)"
                 "vertical": "min(30px, 5vw)"
-            },
-            "fontSizes":{
-                "default-title": "clamp(1.25rem, calc(1.25rem + ((1vw - 0.48rem) * 2.4038)), 2.5rem)"
             }
             }
         },
         },
         "layout": {
         "layout": {
@@ -144,22 +141,25 @@
                     "name": "Small"
                     "name": "Small"
                 },
                 },
                 {
                 {
-                    "size": "1.25rem",
+                    "size": "1rem",
                     "fluid": {
                     "fluid": {
-                        "min": "1.25rem",
-                        "max": "1.5rem"
+                        "min": "1rem",
+                        "max": "1.25rem"
                     },
                     },
                     "slug": "medium",
                     "slug": "medium",
                     "name": "Medium"
                     "name": "Medium"
                 },
                 },
                 {
                 {
-                    "size": "1.75rem",
-                    "fluid": false,
+                    "size": "1.25rem",
+                    "fluid": {
+                        "min": "1.25rem",
+                        "max": "2.5rem"
+                    },
                     "slug": "large",
                     "slug": "large",
                     "name": "Large"
                     "name": "Large"
                 },
                 },
                 {
                 {
-                    "size": "2.5rem",
+                    "size": "3rem",
                     "fluid": false,
                     "fluid": false,
                     "slug": "x-large",
                     "slug": "x-large",
                     "name": "Extra Large"
                     "name": "Extra Large"
@@ -292,7 +292,7 @@
             },
             },
             "core/navigation": {
             "core/navigation": {
                 "typography": {
                 "typography": {
-                    "fontSize": "var(--wp--custom--font-sizes--default-title)"
+                    "fontSize": "var(--wp--preset--font-size--large)"
                 }
                 }
             },
             },
             "core/post-date": {
             "core/post-date": {
@@ -300,7 +300,7 @@
                     "text": "var(--wp--preset--color--foreground)"
                     "text": "var(--wp--preset--color--foreground)"
                 },
                 },
                 "typography": {
                 "typography": {
-                    "fontSize": "var(--wp--custom--font-sizes--default-title)",
+                    "fontSize": "var(--wp--preset--font-size--large)",
                     "textTransform": "uppercase",
                     "textTransform": "uppercase",
                     "letterSpacing": "-0.04em"
                     "letterSpacing": "-0.04em"
                     
                     
@@ -322,7 +322,7 @@
                 "typography": {
                 "typography": {
                     "lineHeight": "1.125",
                     "lineHeight": "1.125",
                     "fontWeight": "400",
                     "fontWeight": "400",
-                    "fontSize": "var(--wp--custom--font-sizes--default-title)"
+                    "fontSize": "var(--wp--preset--font-size--large)"
                 }
                 }
             },
             },
             "core/pullquote": {
             "core/pullquote": {
@@ -388,12 +388,12 @@
             "core/site-title": {
             "core/site-title": {
                 "typography": {
                 "typography": {
                     "lineHeight": ".8",
                     "lineHeight": ".8",
-                    "fontSize": "var(--wp--custom--font-sizes--default-title)"
+                    "fontSize": "var(--wp--preset--font-size--large)"
                 },
                 },
                 "elements": {
                 "elements": {
                     "link": {
                     "link": {
                         "typography": {
                         "typography": {
-                            "fontSize": "var(--wp--custom--font-sizes--default-title)",
+                            "fontSize": "var(--wp--preset--font-size--large)",
                             "fontWeight": "700",
                             "fontWeight": "700",
                             "textDecoration": "underline solid 1.5px",
                             "textDecoration": "underline solid 1.5px",
                             "fontStyle": "italic",
                             "fontStyle": "italic",
@@ -415,7 +415,7 @@
             "core/read-more": {
             "core/read-more": {
                 "typography": {
                 "typography": {
                     "textTransform": "uppercase",
                     "textTransform": "uppercase",
-                    "fontSize": "var(--wp--custom--font-sizes--default-title)",
+                    "fontSize": "var(--wp--preset--font-size--large)",
                     "letterSpacing": "-0.04em"
                     "letterSpacing": "-0.04em"
                 },
                 },
                 "border": {
                 "border": {
@@ -532,7 +532,7 @@
         },
         },
         "typography": {
         "typography": {
             "fontFamily": "var(--wp--preset--font-family--spacemono)",
             "fontFamily": "var(--wp--preset--font-family--spacemono)",
-            "fontSize": "clamp(0.875rem, calc(0.875rem + ((1vw - 0.48rem) * 0.7212)), 1.25rem)",
+            "fontSize": "var(--wp--preset--font-size--medium)",
             "lineHeight": "1.6"
             "lineHeight": "1.6"
         }
         }
     },
     },