Browse Source

Fixes to Theme.json and Footer Template

This commit fixes the issues mentioned in the PR

- Footer template now has the site title in it
- Block spacing and font weight fixes
Onur Oztaskiran 2 years ago
parent
commit
7ccf4b084d
2 changed files with 15 additions and 12 deletions
  1. 10 10
      spearhead-blocks/parts/footer.html
  2. 5 2
      spearhead-blocks/theme.json

+ 10 - 10
spearhead-blocks/parts/footer.html

@@ -1,11 +1,11 @@
-<!-- wp:group {"layout":{"inherit":true}} -->
-<div class="wp-block-group">
-	<!-- wp:group {"style":{"spacing":{"padding":{"top":"80px","bottom":"30px"}}}} -->
-	<div class="wp-block-group" style="padding-top:80px;padding-bottom:30px">
-		<!-- wp:paragraph {"align":"center"} -->
-		<p class="has-text-align-center">Proudly Powered by <a href="https://wordpress.org" rel="nofollow">WordPress</a></p>
-		<!-- /wp:paragraph -->
-	</div>
-	<!-- /wp:group -->
-</div>
+<!-- wp:group {"layout":{"inherit":true,"type":"constrained"}} -->
+<div class="wp-block-group"><!-- wp:group {"style":{"spacing":{"padding":{"top":"80px","bottom":"30px"}}}} -->
+<div class="wp-block-group" style="padding-top:80px;padding-bottom:30px"><!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"center"}} -->
+<div class="wp-block-group"><!-- wp:site-title {"style":{"typography":{"fontSize":"1.2rem","fontStyle":"normal","fontWeight":"700"}}} /-->
+
+<!-- wp:paragraph {"align":"center"} -->
+<p class="has-text-align-center">Proudly Powered by <a href="https://wordpress.org" rel="nofollow">WordPress</a></p>
+<!-- /wp:paragraph --></div>
+<!-- /wp:group --></div>
+<!-- /wp:group --></div>
 <!-- /wp:group -->

+ 5 - 2
spearhead-blocks/theme.json

@@ -275,7 +275,7 @@
 				"typography": {
 					"fontSize": "var:preset|font-size|medium",
 					"fontStyle": "normal",
-					"fontWeight": "700",
+					"fontWeight": "500",
 					"lineHeight": "1.125"
 				}
 			},
@@ -346,6 +346,9 @@
 						":hover": {
 							"color": {
 								"text": "var(--wp--preset--color--secondary)"
+							},
+							"typography": {
+								"textDecoration": "none"
 							}
 						},
 						"color": {
@@ -427,7 +430,7 @@
 			}
 		},
 		"spacing": {
-			"blockGap": "35px"
+			"blockGap": "0.5em"
 		},
 		"typography": {
 			"fontFamily": "var:preset|font-family|libre-franklin",