浏览代码

separation between block posts

Maggie 4 年之前
父节点
当前提交
5ea57c58b4
共有 3 个文件被更改,包括 18 次插入9 次删除
  1. 2 1
      seedlet/assets/sass/structure/_vertical-margins.scss
  2. 8 4
      seedlet/style-rtl.css
  3. 8 4
      seedlet/style.css

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

@@ -100,7 +100,8 @@
 .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 > *,
+.wp-block-post-template > *,
+.wp-block-post-template .wp-block-post > *,
 [class*="inner-container"] > *,
 .wp-block-template-part > *,
 .widget-area > *,

+ 8 - 4
seedlet/style-rtl.css

@@ -460,7 +460,8 @@ Included in theme screenshot and in block patterns.
 .site-main > article > *,
 .site-main > .not-found > *,
 .entry-content > *,
-.wp-block-query .wp-block-post > *,
+.wp-block-post-template > *,
+.wp-block-post-template .wp-block-post > *,
 [class*="inner-container"] > *,
 .wp-block-template-part > *,
 .widget-area > *,
@@ -474,7 +475,8 @@ Included in theme screenshot and in block patterns.
 	.site-main > article > *,
 	.site-main > .not-found > *,
 	.entry-content > *,
-	.wp-block-query .wp-block-post > *,
+	.wp-block-post-template > *,
+	.wp-block-post-template .wp-block-post > *,
 	[class*="inner-container"] > *,
 	.wp-block-template-part > *,
 	.widget-area > *,
@@ -488,7 +490,8 @@ 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,
+.wp-block-post-template > *:first-child,
+.wp-block-post-template .wp-block-post > *:first-child,
 [class*="inner-container"] > *:first-child,
 .wp-block-template-part > *:first-child,
 .widget-area > *:first-child,
@@ -500,7 +503,8 @@ 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,
+.wp-block-post-template > *:last-child,
+.wp-block-post-template .wp-block-post > *:last-child,
 [class*="inner-container"] > *:last-child,
 .wp-block-template-part > *:last-child,
 .widget-area > *:last-child,

+ 8 - 4
seedlet/style.css

@@ -460,7 +460,8 @@ Included in theme screenshot and in block patterns.
 .site-main > article > *,
 .site-main > .not-found > *,
 .entry-content > *,
-.wp-block-query .wp-block-post > *,
+.wp-block-post-template > *,
+.wp-block-post-template .wp-block-post > *,
 [class*="inner-container"] > *,
 .wp-block-template-part > *,
 .widget-area > *,
@@ -474,7 +475,8 @@ Included in theme screenshot and in block patterns.
 	.site-main > article > *,
 	.site-main > .not-found > *,
 	.entry-content > *,
-	.wp-block-query .wp-block-post > *,
+	.wp-block-post-template > *,
+	.wp-block-post-template .wp-block-post > *,
 	[class*="inner-container"] > *,
 	.wp-block-template-part > *,
 	.widget-area > *,
@@ -488,7 +490,8 @@ 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,
+.wp-block-post-template > *:first-child,
+.wp-block-post-template .wp-block-post > *:first-child,
 [class*="inner-container"] > *:first-child,
 .wp-block-template-part > *:first-child,
 .widget-area > *:first-child,
@@ -500,7 +503,8 @@ 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,
+.wp-block-post-template > *:last-child,
+.wp-block-post-template .wp-block-post > *:last-child,
 [class*="inner-container"] > *:last-child,
 .wp-block-template-part > *:last-child,
 .widget-area > *:last-child,