Browse Source

Styled navigation (open overlay) (#5800)

Jason Crist 3 năm trước cách đây
mục cha
commit
7f6d5d9505
3 tập tin đã thay đổi với 10 bổ sung5 xóa
  1. 1 1
      pendant/parts/header.html
  2. 8 3
      pendant/style.css
  3. 1 1
      pendant/theme.json

+ 1 - 1
pendant/parts/header.html

@@ -1,6 +1,6 @@
 <!-- wp:group {"layout":{"inherit":true}} -->
 <div class="wp-block-group"><!-- wp:group {"align":"full","style":{"spacing":{"padding":{"bottom":"3vw","top":"3vw"}}},"backgroundColor":"foreground","textColor":"background","layout":{"type":"flex","justifyContent":"space-between","flexWrap":"nowrap"}} -->
-<div class="wp-block-group alignfull has-background-color has-foreground-background-color has-text-color has-background" style="padding-top:3vw;padding-bottom:3vw"><!-- wp:navigation {"overlayMenu":"always"} /-->
+<div class="wp-block-group alignfull has-background-color has-foreground-background-color has-text-color has-background" style="padding-top:3vw;padding-bottom:3vw"><!-- wp:navigation {"overlayMenu":"always","overlayBackgroundColor":"foreground","overlayTextColor":"background"} /-->
 
 <!-- wp:site-title {"textAlign":"center","isLink":false,"style":{"elements":{"link":{"color":{"text":"var:preset|color|background"}}}}} /-->
 

+ 8 - 3
pendant/style.css

@@ -168,6 +168,11 @@ body > .is-root-container > .wp-block-template-part > .wp-block-cover,
 	width: inherit;
 }
 
-.custom-404-wp-search {
-	max-width: 500px;
-}
+/** Navigation sub-menu items **/
+.wp-block-navigation .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container {
+	text-transform: uppercase;
+	font-weight: 500;
+	line-height: 2.6;
+	font-size: var(--wp--preset--font-size--x-small);
+	letter-spacing: 0.1em;
+}

+ 1 - 1
pendant/theme.json

@@ -228,7 +228,7 @@
 			},
 			"core/navigation": {
 				"typography": {
-					"fontSize": "var(--wp--preset--font-size--medium)"
+					"fontSize": "var(--wp--preset--font-size--large)"
 				}
 			},
 			"core/query-pagination": {