Ver Fonte

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

Takashi Irie há 2 anos atrás
pai
commit
02db82324e
2 ficheiros alterados com 3 adições e 4 exclusões
  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": {