浏览代码

Skatepark: updated font sizes (#5416)

* changed font sizes

* moved normal back to custom

* changed font size on patterns and templates

* fix block markup

* correct font size for search
Maggie 3 年之前
父节点
当前提交
7871f79b21

+ 1 - 1
blockbase/inc/patterns/footer-columns.php

@@ -15,7 +15,7 @@ return array(
 		<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"60px","bottom":"60px"}}},"className":"pre-footer"} -->
 		<div class="wp-block-group alignwide pre-footer" style="padding-top:60px;padding-bottom:60px"><!-- wp:columns -->
 		<div class="wp-block-columns"><!-- wp:column -->
-		<div class="wp-block-column"><!-- wp:site-title {"style":{"typography":{"textTransform":"uppercase"}},"fontSize":"large"} /-->
+		<div class="wp-block-column"><!-- wp:site-title {"style":{"typography":{"textTransform":"uppercase"}},"fontSize":"medium"} /-->
 
 		<!-- wp:site-tagline {"fontSize":"small"} /-->
 

+ 1 - 1
skatepark/assets/theme.css

@@ -317,7 +317,7 @@ body:not(.has-featured-image) h1.wp-block-post-title {
 }
 .wp-block-quote.is-style-testimonial-quote p, .wp-block-quote.is-style-testimonial-quote div.block-editor-rich-text__editable {
   flex: 0 0 75%;
-  font-size: calc(var(--wp--preset--font-size--huge) * 1.34);
+  font-size: calc(var(--wp--preset--font-size--x-large) * 1.34);
   font-weight: bold;
   line-height: 115%;
   margin-bottom: 0;

+ 1 - 1
skatepark/block-templates/search.html

@@ -12,7 +12,7 @@
 	<!-- wp:query {"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true}} -->
 	<!-- wp:post-template -->
 
-		<!-- wp:post-title {"level":3,"isLink":true,"style":{"typography":{"fontStyle":"normal","fontWeight":"800"}},"fontSize":"huge","style":{"spacing":{"margin":{"top":"1em"}}}} /-->
+		<!-- wp:post-title {"level":3,"isLink":true,"style":{"typography":{"fontStyle":"normal","fontWeight":"800"},"spacing":{"margin":{"top":"1em"}}},"fontSize":"x-large"} /-->
 		<!-- wp:post-excerpt {"style":{"spacing":{"padding":{"bottom":"2em"}}}} /-->
 		<!-- wp:separator {"className":"is-style-wide"} -->
 			<hr class="wp-block-separator is-style-wide"/>

+ 1 - 1
skatepark/inc/patterns/blog-posts.php

@@ -17,7 +17,7 @@ return array(
 
 	<!-- wp:post-featured-image {"isLink":true} /-->
 
-	<!-- wp:post-title {"isLink":true,"fontSize":"normal"} /-->
+	<!-- wp:post-title {"isLink":true,"style":{"typography":{"fontSize":"var(--wp--custom--font-sizes--normal)"}}} /-->
 
 	<!-- wp:post-excerpt {"moreText":"' . esc_html__( 'Continue reading', 'skatepark' ) . '"} /-->
 

+ 2 - 2
skatepark/sass/block-styles/_testimonial-quote.scss

@@ -29,9 +29,9 @@
 
 	p, div.block-editor-rich-text__editable {
 		flex: 0 0 75%;
-		font-size: calc( var(--wp--preset--font-size--huge) * 1.34);
+		font-size: calc( var(--wp--preset--font-size--x-large) * 1.34);
 		font-weight: bold;
 		line-height: 115%;
 		margin-bottom: 0;
 	}
-}
+}