浏览代码

Lineup: Make sure gap between posts are 0 (#7181)

Takashi Irie 2 年之前
父节点
当前提交
02db82324e
共有 2 个文件被更改,包括 3 次插入4 次删除
  1. 0 4
      lineup/style.css
  2. 3 0
      lineup/theme.json

+ 0 - 4
lineup/style.css

@@ -253,7 +253,3 @@ div[id^="contact-form-"] .contact-form-submission {
 	overflow: hidden;
 	white-space: nowrap;
 }
-/* This removes the gap between each posts in the query loop block */
-.wp-block-post-template li {
-	margin: 0;
-}

+ 3 - 0
lineup/theme.json

@@ -472,6 +472,9 @@
 					}
 				}
 			},
+			"core/post-template": {
+				"css": ".wp-block-post-template > * + * { margin-top: 0;}"
+			},
 			"core/post-terms": {
 				"elements": {
 					"link": {