浏览代码

Update header design.

Matías Ventura 3 年之前
父节点
当前提交
4e39dcd5dc
共有 2 个文件被更改,包括 20 次插入24 次删除
  1. 6 22
      rainfall/parts/header.html
  2. 14 2
      rainfall/theme.json

+ 6 - 22
rainfall/parts/header.html

@@ -1,30 +1,14 @@
 <!-- wp:group {"layout":{"inherit":"true"}} -->
 <div class="wp-block-group">
-	<!-- wp:group {"align":"full","layout":{"type":"flex","justifyContent":"space-between"},"style":{"spacing":{"padding":{"bottom":"30px","top":"30px"}}}} -->
-	<div class="wp-block-group alignfull" style="padding-bottom:30px;padding-top:30px">
-	
-		<!-- wp:group {"layout":{"type":"flex"}} -->
-		<div class="wp-block-group">
-			<!-- wp:site-logo {"width":64} /-->
-	
-			<!-- wp:group -->
-			<div class="wp-block-group">
-				<!-- wp:site-title /-->
-				<!-- wp:site-tagline /-->
-			</div>
-			<!-- /wp:group -->
-		</div>
-		<!-- /wp:group -->
-	
-		<!-- wp:navigation {"layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right","orientation":"horizontal"},"style":{"spacing":{"margin":{"top":"0"}}}} /-->
+	<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"bottom":"30px","top":"30px"}}},"layout":{"type":"flex","justifyContent":"space-between"}} -->
+	<div class="wp-block-group alignfull" style="padding-top:30px;padding-bottom:30px">
+		<!-- wp:site-title {"style":{"elements":{"link":{"color":{"text":"var:preset|color|black"}}},"typography":{"textTransform":"uppercase"}},"fontSize":"small"} /-->
 	
+	<!-- wp:navigation {"layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right","orientation":"horizontal"},"style":{"spacing":{"margin":{"top":"0"}}}} /-->
 	</div>
 	<!-- /wp:group -->
-
 </div>
 <!-- /wp:group -->
-
-<!-- wp:spacer {"height":50} -->
+<!-- wp:spacer {"height":"50px"} -->
 <div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>
-<!-- /wp:spacer -->
- 
+<!-- /wp:spacer -->

+ 14 - 2
rainfall/theme.json

@@ -116,6 +116,18 @@
 						}
 					}
 				}
+			},
+			"core/site-title": {
+				"typography": {
+					"fontWeight": "bold"
+				},
+				"elements": {
+					"link": {
+						"typography": {
+							"textDecoration": "none"
+						}
+					}
+				}
 			}
 		},
 		"color": {
@@ -247,11 +259,11 @@
 	"templateParts": [
 		{
 			"area": "header",
-			"name": "header"
+			"name": "Header"
 		},
 		{
 			"area": "footer",
-			"name": "footer"
+			"name": "Footer"
 		}
 	],
 	"version": 2