Kaynağa Gözat

Pendant: Update category style per design (#5871)

Jason Crist 3 yıl önce
ebeveyn
işleme
7f2f40a223

+ 4 - 2
pendant/patterns/hero.php

@@ -13,8 +13,10 @@
 
 
 <!-- wp:column {"verticalAlignment":"bottom","width":"calc(1240px / 2)","style":{"spacing":{"padding":{"left":"var(--wp--custom--gap--horizontal)"}}}} -->
 <!-- wp:column {"verticalAlignment":"bottom","width":"calc(1240px / 2)","style":{"spacing":{"padding":{"left":"var(--wp--custom--gap--horizontal)"}}}} -->
 <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-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 {"placeholder":"Content…","style":{"typography":{"textTransform":"uppercase"}},"fontSize":"x-small"} -->
-<p class="has-x-small-font-size" style="text-transform:uppercase"><?php echo esc_html__( 'Featured', 'pendant' ); ?></p>
+<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 -->
 <!-- /wp:paragraph -->
 
 
 <!-- wp:heading {"level":1,"style":{"typography":{"lineHeight":"1"}}} -->
 <!-- wp:heading {"level":1,"style":{"typography":{"lineHeight":"1"}}} -->

+ 1 - 1
pendant/templates/single.html

@@ -2,7 +2,7 @@
 <div class="wp-block-group"><!-- wp:template-part {"slug":"header","tagName":"header"} /-->
 <div class="wp-block-group"><!-- wp:template-part {"slug":"header","tagName":"header"} /-->
 
 
 <!-- wp:group {"style":{"spacing":{"padding":{"bottom":"50px","top":"40px"},"blockGap":"40px"}},"className":"has-text-align-center","layout":{"inherit":true}} -->
 <!-- wp:group {"style":{"spacing":{"padding":{"bottom":"50px","top":"40px"},"blockGap":"40px"}},"className":"has-text-align-center","layout":{"inherit":true}} -->
-<div class="wp-block-group has-text-align-center" style="padding-top:40px;padding-bottom:50px"><!-- wp:post-terms {"term":"category","style":{"elements":{"link":{"color":{"text":"var:preset|color|foreground"}}},"typography":{"textTransform":"uppercase"}}} /-->
+<div class="wp-block-group has-text-align-center" style="padding-top:40px;padding-bottom:50px"><!-- wp:post-terms {"term":"category","style":{"elements":{"link":{"color":{"text":"var:preset|color|foreground"}}}}} /-->
 
 
 <!-- wp:post-featured-image /-->
 <!-- wp:post-featured-image /-->
 
 

+ 5 - 3
pendant/theme.json

@@ -224,7 +224,8 @@
 			"core/categories": {
 			"core/categories": {
 				"typography": {
 				"typography": {
 					"fontFamily": "var(--wp--preset--font-family--body-font)",
 					"fontFamily": "var(--wp--preset--font-family--body-font)",
-					"fontSize": "var(--wp--preset--font-size--small)",
+					"fontSize": "var(--wp--preset--font-size--x-small)",
+					"fontWeight": "500",
 					"letterSpacing": "0.1em",
 					"letterSpacing": "0.1em",
 					"textTransform": "uppercase",
 					"textTransform": "uppercase",
 					"lineHeight": 2.3 
 					"lineHeight": 2.3 
@@ -305,8 +306,9 @@
 				"typography": {
 				"typography": {
 					"fontStyle": "normal",
 					"fontStyle": "normal",
 					"fontWeight": "500",
 					"fontWeight": "500",
-					"letterSpacing": "3px",
-					"fontSize": "var:preset|font-size|small"
+					"letterSpacing": "0.1em",
+					"fontSize": "var:preset|font-size|x-small",
+					"textTransform": "uppercase"
 				}
 				}
 			}
 			}
 		},
 		},