Browse Source

extended theme spacing rules to apply to query loop children too

Maggie 4 years ago
parent
commit
e73504639e

+ 1 - 0
seedlet/assets/sass/structure/_vertical-margins.scss

@@ -100,6 +100,7 @@
 .site-main > article > *, // apply vertical margins to article level
 .site-main > .not-found > *, // apply vertical margins to article level
 .entry-content > *,
+.wp-block-query .wp-block-post > *,
 [class*="inner-container"] > *,
 .wp-block-template-part > *,
 .widget-area > *,

+ 4 - 0
seedlet/style-rtl.css

@@ -460,6 +460,7 @@ Included in theme screenshot and in block patterns.
 .site-main > article > *,
 .site-main > .not-found > *,
 .entry-content > *,
+.wp-block-query .wp-block-post > *,
 [class*="inner-container"] > *,
 .wp-block-template-part > *,
 .widget-area > *,
@@ -473,6 +474,7 @@ Included in theme screenshot and in block patterns.
 	.site-main > article > *,
 	.site-main > .not-found > *,
 	.entry-content > *,
+	.wp-block-query .wp-block-post > *,
 	[class*="inner-container"] > *,
 	.wp-block-template-part > *,
 	.widget-area > *,
@@ -486,6 +488,7 @@ Included in theme screenshot and in block patterns.
 .site-main > article > *:first-child,
 .site-main > .not-found > *:first-child,
 .entry-content > *:first-child,
+.wp-block-query .wp-block-post > *:first-child,
 [class*="inner-container"] > *:first-child,
 .wp-block-template-part > *:first-child,
 .widget-area > *:first-child,
@@ -497,6 +500,7 @@ Included in theme screenshot and in block patterns.
 .site-main > article > *:last-child,
 .site-main > .not-found > *:last-child,
 .entry-content > *:last-child,
+.wp-block-query .wp-block-post > *:last-child,
 [class*="inner-container"] > *:last-child,
 .wp-block-template-part > *:last-child,
 .widget-area > *:last-child,

+ 4 - 0
seedlet/style.css

@@ -460,6 +460,7 @@ Included in theme screenshot and in block patterns.
 .site-main > article > *,
 .site-main > .not-found > *,
 .entry-content > *,
+.wp-block-query .wp-block-post > *,
 [class*="inner-container"] > *,
 .wp-block-template-part > *,
 .widget-area > *,
@@ -473,6 +474,7 @@ Included in theme screenshot and in block patterns.
 	.site-main > article > *,
 	.site-main > .not-found > *,
 	.entry-content > *,
+	.wp-block-query .wp-block-post > *,
 	[class*="inner-container"] > *,
 	.wp-block-template-part > *,
 	.widget-area > *,
@@ -486,6 +488,7 @@ Included in theme screenshot and in block patterns.
 .site-main > article > *:first-child,
 .site-main > .not-found > *:first-child,
 .entry-content > *:first-child,
+.wp-block-query .wp-block-post > *:first-child,
 [class*="inner-container"] > *:first-child,
 .wp-block-template-part > *:first-child,
 .widget-area > *:first-child,
@@ -497,6 +500,7 @@ Included in theme screenshot and in block patterns.
 .site-main > article > *:last-child,
 .site-main > .not-found > *:last-child,
 .entry-content > *:last-child,
+.wp-block-query .wp-block-post > *:last-child,
 [class*="inner-container"] > *:last-child,
 .wp-block-template-part > *:last-child,
 .widget-area > *:last-child,