Browse Source

Geologist: Make vertical position of the post title consistent (#4794)

* Geologist: Make vertical position of the post title consistent

* Remove the CSS for featured image spacing. This is needed in Quadrat, but not here
Ben Dwyer 3 years ago
parent
commit
631b1ff451

+ 0 - 4
geologist/assets/theme.css

@@ -374,8 +374,4 @@ textarea:focus {
 	content: ",";
 }
 
-.wp-block-query .wp-block-post-featured-image {
-	margin-top: calc( var(--wp--custom--gap--vertical) / 2);
-}
-
 /*# sourceMappingURL=theme.css.map */

+ 4 - 0
geologist/block-templates/index.html

@@ -3,6 +3,8 @@
 <!-- wp:query {"tagName":"main","layout":{"inherit":true},"queryId":1,"query":{"perPage":5,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","sticky":"","inherit":true}} -->
 <main class="wp-block-query">
 	<!-- wp:post-template -->
+		<!-- wp:group {"layout":{"inherit":true}} -->
+		<div class="wp-block-group">
 		<!-- wp:post-title {"isLink":true, "level": 3, "textAlign":"left"} /-->
 		<!-- wp:post-featured-image {"isLink":true} /-->
 		<!-- wp:post-excerpt /-->
@@ -10,6 +12,8 @@
 		<!-- wp:spacer {"height":120} -->
 		<div style="height:120px" aria-hidden="true" class="wp-block-spacer"></div>
 		<!-- /wp:spacer -->
+		</div>
+		<!-- /wp:group -->
 	<!-- /wp:post-template -->
 	<!-- wp:query-pagination {"align":"wide"} -->
 	<div class="wp-block-query-pagination alignwide"><!-- wp:query-pagination-previous /-->

+ 0 - 5
geologist/sass/templates/_query.scss

@@ -1,5 +0,0 @@
-.wp-block-query {
-	.wp-block-post-featured-image {
-		margin-top: calc( var(--wp--custom--gap--vertical) / 2 );
-	}
-}

+ 0 - 1
geologist/sass/theme.scss

@@ -18,4 +18,3 @@
 @import "elements/forms";
 @import "templates/index";
 @import "templates/meta";
-@import "templates/query";