فهرست منبع

Videomaker: Update header and footer (#4774)

* Videomaker: Update header spacing

* Videomaker: Update header and footer
Ben Dwyer 3 سال پیش
والد
کامیت
d7699fd25c
4فایلهای تغییر یافته به همراه54 افزوده شده و 16 حذف شده
  1. 14 5
      videomaker/block-template-parts/footer.html
  2. 6 5
      videomaker/block-template-parts/header.html
  3. 15 0
      videomaker/child-theme.json
  4. 19 6
      videomaker/theme.json

+ 14 - 5
videomaker/block-template-parts/footer.html

@@ -1,7 +1,16 @@
-<!-- wp:group -->
-<div class="wp-block-group">
-	<!-- wp:paragraph {"align":"center","style":{"typography":{"fontSize":"var(--wp--custom--font-sizes--tiny)"}}} -->
-	<p class="has-text-align-center" style="font-size:var(--wp--custom--font-sizes--tiny)">Proudly Powered by <a href="https://wordpress.org" rel="nofollow">WordPress</a></p>
-	<!-- /wp:paragraph -->
+<!-- wp:group {"align":"full","layout":{"type":"flex"},"style":{"spacing":{"padding":{"top":"170px","right":"var(--wp--custom--gap--horizontal","bottom":"var(--wp--custom--gap--horizontal","left":"var(--wp--custom--gap--horizontal"}}}} -->
+<div class="wp-block-group alignfull" style="padding-top: 170px; padding-right: var(--wp--custom--gap--horizontal);padding-bottom: var(--wp--custom--gap--horizontal);padding-left: var(--wp--custom--gap--horizontal);">
+	<!-- wp:group -->
+	<div class="wp-block-group">
+	<!-- wp:navigation {"orientation":"vertical","__unstableLocation":"footer"} --><!-- /wp:navigation -->
+	</div>
+	<!-- /wp:group -->
+	<!-- wp:group -->
+	<div class="wp-block-group">
+		<!-- wp:paragraph {"fontSize":"small"} -->
+		<p class="has-small-font-size">Proudly Powered by <a href="https://wordpress.org" rel="nofollow">WordPress</a></p>
+		<!-- /wp:paragraph -->
+	</div>
+	<!-- /wp:group -->
 </div>
 <!-- /wp:group -->

+ 6 - 5
videomaker/block-template-parts/header.html

@@ -1,7 +1,8 @@
-<!-- wp:group {"style":{"spacing":{"padding":{"bottom":"40px","top":"40px"}}},"className":"site-header","layout":{"type":"flex"}} -->
-<div class="wp-block-group site-header" style="padding-top:40px;padding-bottom:40px">
+<!-- wp:group {"tagName":"header","layout":{"type":"flex"},"style":{"spacing":{"padding":{"bottom":"170px"}}},"className":"site-header"} -->
+<header class="wp-block-group site-header" style="padding-bottom:170px">
 	<!-- wp:site-logo /-->
-	<!-- wp:site-title {"style":{"typography":{"textTransform":"uppercase"}}} /-->
-	<!-- wp:navigation {"isResponsive":true,"__unstableLocation":"primary","style":{"typography":{"textTransform":"uppercase"}}} /-->
-</div>
+	<!-- wp:site-title /-->
+	<!-- wp:site-tagline /-->
+	<!-- wp:navigation {"isResponsive":true,"__unstableLocation":"primary"} /-->
+</header>
 <!-- /wp:group -->

+ 15 - 0
videomaker/child-theme.json

@@ -150,6 +150,11 @@
 					"fontFamily": "var(--wp--preset--font-family--inter)"
 				}
 			},
+			"core/navigation": {
+				"typography": {
+					"textTransform": "uppercase"
+				}
+			},
 			"core/post-date": {
 				"typography": {
 					"fontSize": "var(--wp--preset--font-size--small)"
@@ -165,6 +170,16 @@
 					"fontSize": "var(--wp--preset--font-size--huge)",
 					"fontFamily": "var(--wp--preset--font-family--inter)"
 				}
+			},
+			"core/site-tagline": {
+				"typography": {
+					"fontSize": "var(--wp--preset--font-size--small)"
+				}
+			},
+			"core/site-title": {
+				"typography": {
+					"textTransform": "uppercase"
+				}
 			}
 		},
 		"elements": {

+ 19 - 6
videomaker/theme.json

@@ -1,4 +1,5 @@
 {
+	"$schema": "https://json.schemastore.org/theme-v1.json",
 	"version": 1,
 	"templateParts": [
 		{
@@ -239,7 +240,7 @@
 				}
 			},
 			"gap": {
-				"baseline": "10px",
+				"baseline": "15px",
 				"horizontal": "min(30px, 5vw)",
 				"vertical": "min(30px, 5vw)"
 			},
@@ -412,10 +413,16 @@
 			},
 			"core/navigation": {
 				"typography": {
-					"fontSize": "var(--wp--preset--font-size--normal)"
+					"fontSize": "var(--wp--preset--font-size--normal)",
+					"textTransform": "uppercase"
 				}
 			},
 			"core/post-title": {
+				"spacing": {
+					"margin": {
+						"bottom": "0"
+					}
+				},
 				"typography": {
 					"fontFamily": "var(--wp--preset--font-family--inter)",
 					"fontSize": "var(--wp--preset--font-size--huge)",
@@ -438,7 +445,7 @@
 				},
 				"typography": {
 					"fontStyle": "italic",
-					"fontSize": "var(--wp--preset--font-size--huge)"
+					"fontSize": "var(--wp--preset--font-size--large)"
 				},
 				"spacing": {
 					"padding": {
@@ -462,7 +469,8 @@
 			"core/site-title": {
 				"typography": {
 					"fontSize": "var(--wp--preset--font-size--normal)",
-					"fontWeight": 700
+					"fontWeight": 700,
+					"textTransform": "uppercase"
 				}
 			},
 			"core/quote": {
@@ -491,6 +499,11 @@
 				"typography": {
 					"fontSize": "var(--wp--preset--font-size--small)"
 				}
+			},
+			"core/site-tagline": {
+				"typography": {
+					"fontSize": "var(--wp--preset--font-size--small)"
+				}
 			}
 		},
 		"color": {
@@ -531,7 +544,7 @@
 					"fontFamily": "var(--wp--preset--font-family--inter)",
 					"fontWeight": "var(--wp--custom--heading--typography--font-weight)",
 					"lineHeight": "var(--wp--custom--heading--typography--line-height)",
-					"fontSize": "var(--wp--preset--font-size--huge)"
+					"fontSize": "var(--wp--preset--font-size--large)"
 				},
 				"spacing": {
 					"margin": {
@@ -545,7 +558,7 @@
 					"fontFamily": "var(--wp--preset--font-family--inter)",
 					"fontWeight": "var(--wp--custom--heading--typography--font-weight)",
 					"lineHeight": "var(--wp--custom--heading--typography--line-height)",
-					"fontSize": "var(--wp--preset--font-size--large)"
+					"fontSize": "var(--wp--preset--font-size--medium)"
 				},
 				"spacing": {
 					"margin": {