Browse Source

Removes instances of x-small font size (#5952)

Jason Crist 3 years ago
parent
commit
69e9f76e21
3 changed files with 11 additions and 16 deletions
  1. 2 2
      pendant/patterns/hero.php
  2. 3 3
      pendant/style.css
  3. 6 11
      pendant/theme.json

+ 2 - 2
pendant/patterns/hero.php

@@ -15,8 +15,8 @@
 <div class="wp-block-column is-vertically-aligned-bottom" style="padding-left:var(--wp--custom--gap--horizontal);flex-basis:calc(1240px / 2)"><!-- wp:group {"style":{"spacing":{"padding":{"top":"100px","bottom":"100px","right":"calc(var(--wp--custom--gap--horizontal)/2)"}}},"layout":{"inherit":true}} -->
 <div class="wp-block-group" style="padding-top:100px;padding-right:calc(var(--wp--custom--gap--horizontal)/2);padding-bottom:100px">
 
-<!-- wp:paragraph {"style":{"typography":{"textTransform":"uppercase","letterSpacing":"0.1em","fontStyle":"normal","fontWeight":"500"}},"fontSize":"x-small"} -->
-<p class="has-x-small-font-size" style="font-style:normal;font-weight:500;text-transform:uppercase;letter-spacing:0.1em"><?php echo esc_html__( 'Featured', 'pendant' ); ?></p>
+<!-- wp:paragraph {"style":{"typography":{"textTransform":"uppercase","letterSpacing":"0.1em","fontStyle":"normal","fontWeight":"500"}},"fontSize":"0.9rem"} -->
+<p style="font-style:normal;font-weight:500;text-transform:uppercase;letter-spacing:0.1em;font-size:0.9rem"><?php echo esc_html__( 'Featured', 'pendant' ); ?></p>
 <!-- /wp:paragraph -->
 
 <!-- wp:heading {"level":1,"style":{"typography":{"lineHeight":"1"}}} -->

+ 3 - 3
pendant/style.css

@@ -198,7 +198,7 @@ body > .is-root-container > .wp-block-template-part > .wp-block-cover,
 .wp-block-quote cite {
 	font-family: var(--wp--preset--font-family--body-font);
 	font-style: italic;
-	font-size: var(--wp--preset--font-size--x-small);
+	font-size: 0.9rem;
 }
 
 /* The plain quote block has a left-padding that doesn't work well with our design */
@@ -211,7 +211,7 @@ body > .is-root-container > .wp-block-template-part > .wp-block-cover,
 	text-transform: uppercase;
 	font-weight: 500;
 	line-height: 2.6;
-	font-size: var(--wp--preset--font-size--x-small);
+	font-size: 0.9rem;
 	letter-spacing: 0.1em;
 }
 
@@ -232,7 +232,7 @@ body > .is-root-container > .wp-block-template-part > .wp-block-cover,
 
  .pendant-post-navigation .wp-block-post-navigation-link .post-navigation-link__label {
 	font-family: var(--wp--preset--font-family--body-font);
-	font-size: var(--wp--preset--font-size--x-small);
+	font-size: 0.9rem;
 	font-weight: 600;
 	letter-spacing: 0.1em;
 	text-transform: uppercase;

+ 6 - 11
pendant/theme.json

@@ -158,11 +158,6 @@
 				}
 			],
 			"fontSizes": [
-				{
-					"name": "Extra Small",
-					"size": "0.9rem",
-					"slug": "x-small"
-				},
 				{
 					"name": "Small",
 					"size": "1rem",
@@ -209,7 +204,7 @@
 				},
 				"typography": {
 					"fontFamily": "var(--wp--preset--font-family--body-font)",
-					"fontSize": "var(--wp--preset--font-size--x-small)",
+					"fontSize": "0.9rem",
 					"letterSpacing": "0.1em",
 					"textTransform": "uppercase",
 					"fontWeight": "600",
@@ -219,7 +214,7 @@
 			"core/categories": {
 				"typography": {
 					"fontFamily": "var(--wp--preset--font-family--body-font)",
-					"fontSize": "var(--wp--preset--font-size--x-small)",
+					"fontSize": "0.9rem",
 					"fontWeight": "500",
 					"letterSpacing": "0.1em",
 					"textTransform": "uppercase",
@@ -261,20 +256,20 @@
 				"typography": {
 					"fontWeight": "500",
 					"textTransform": "uppercase",
-					"fontSize": "var(--wp--preset--font-size--x-small)"
+					"fontSize": "0.9rem"
 				}
 			},
 			"core/query-pagination-numbers": {
 				"typography": {
 					"fontWeight": "500",
-					"fontSize": "var(--wp--preset--font-size--x-small)"
+					"fontSize": "0.9rem"
 				}
 			},
 			"core/query-pagination-previous": {
 				"typography": {
 					"fontWeight": "500",
 					"textTransform": "uppercase",
-					"fontSize": "var(--wp--preset--font-size--x-small)"
+					"fontSize": "0.9rem"
 				}
 			},
 			"core/quote": {
@@ -313,7 +308,7 @@
 					"fontStyle": "normal",
 					"fontWeight": "500",
 					"letterSpacing": "0.1em",
-					"fontSize": "var:preset|font-size|x-small",
+					"fontSize": "0.9rem",
 					"textTransform": "uppercase"
 				}
 			}