ソースを参照

Added additional margin top to achieve design target (#4664)

Jason Crist 3 年 前
コミット
ce3fda4a16
2 ファイル変更3 行追加1 行削除
  1. 1 0
      skatepark/assets/theme.css
  2. 2 1
      skatepark/sass/templates/_header.scss

+ 1 - 0
skatepark/assets/theme.css

@@ -490,6 +490,7 @@ header.wp-block-template-part {
 	max-width: var(--wp--custom--layout--wide-size);
 	margin: 0 auto;
 	width: 100%;
+	margin-top: calc( 0.5 * var(--wp--custom--gap--vertical));
 }
 
 header.wp-block-template-part > .wp-block-group {

+ 2 - 1
skatepark/sass/templates/_header.scss

@@ -2,7 +2,8 @@ header.wp-block-template-part {
 	max-width: var(--wp--custom--layout--wide-size); // Layouts can be flex OR flow/default (inherit), not both. So we need to mimick the wide width alignment supplied by Gutenberg here.
 	margin: 0 auto;
 	width: 100%;
-
+	margin-top: calc( 0.5 * var(--wp--custom--gap--vertical) );
+	
 	> .wp-block-group {
 		gap: 0;
 		justify-content: space-between; // Apply a cluster (flex?) layout