浏览代码

Make spacing between post title and content match the spacing between content and meta. (#4733)

Jeff Ong 3 年之前
父节点
当前提交
540e644645
共有 2 个文件被更改,包括 13 次插入5 次删除
  1. 9 4
      blockbase/assets/ponyfill.css
  2. 4 1
      blockbase/sass/base/_layout.scss

+ 9 - 4
blockbase/assets/ponyfill.css

@@ -205,6 +205,10 @@ pre {
 	flex-direction: column;
 	flex-direction: column;
 }
 }
 
 
+.wp-site-blocks > main {
+	margin-top: 0;
+}
+
 .site-footer-container {
 .site-footer-container {
 	margin-top: auto;
 	margin-top: auto;
 }
 }
@@ -652,6 +656,11 @@ p.has-drop-cap:not(:focus):first-letter {
 	margin-bottom: var(--wp--custom--gap--baseline);
 	margin-bottom: var(--wp--custom--gap--baseline);
 }
 }
 
 
+.wp-block-post-template {
+	margin-top: 0;
+	margin-bottom: 0;
+}
+
 .wp-block-pullquote.is-style-solid-color,
 .wp-block-pullquote.is-style-solid-color,
 .wp-block-pullquote {
 .wp-block-pullquote {
 	text-align: var(--wp--custom--pullquote--typography--text-align);
 	text-align: var(--wp--custom--pullquote--typography--text-align);
@@ -935,8 +944,4 @@ div.wp-block-query-pagination .wp-block-query-pagination-numbers .current {
 	mask-image: url(svg/post-tag.svg);
 	mask-image: url(svg/post-tag.svg);
 }
 }
 
 
-.wp-block-post-template {
-	margin: 0;
-}
-
 /*# sourceMappingURL=ponyfill.css.map */
 /*# sourceMappingURL=ponyfill.css.map */

+ 4 - 1
blockbase/sass/base/_layout.scss

@@ -6,6 +6,9 @@
 	min-height: 100vh;
 	min-height: 100vh;
 	display: flex;
 	display: flex;
 	flex-direction: column;
 	flex-direction: column;
+	> main {
+		margin-top: 0;
+	}
 }
 }
 
 
 .site-footer-container {
 .site-footer-container {
@@ -20,4 +23,4 @@ body.admin-bar {
 	.wp-site-blocks {
 	.wp-site-blocks {
 		min-height: calc( 100vh - var(--wpadmin-bar--height) );
 		min-height: calc( 100vh - var(--wpadmin-bar--height) );
 	}
 	}
-}
+}