Skip to content

Commit

Permalink
Move flex layout to group so we can reuse templates from blockbase.
Browse files Browse the repository at this point in the history
  • Loading branch information
jffng committed Aug 10, 2021
1 parent 406d65c commit 9534e37
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
12 changes: 6 additions & 6 deletions skatepark/assets/theme.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions skatepark/block-template-parts/header.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- wp:group { "layout":{"type":"flex"},"align":"full"} -->
<div class="wp-block-group">
<!-- wp:group -->
<div class="wp-block-group">
<!-- wp:site-logo /-->
Expand All @@ -23,4 +25,6 @@

<!-- wp:social-link {"url":"instagram.com","service":"instagram"} /--></ul>
<!-- /wp:social-links --></div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->
2 changes: 1 addition & 1 deletion skatepark/block-templates/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- wp:template-part {"slug":"header","tagName":"header","layout":{"type":"flex"},"align":"full"} /-->
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->

<!-- wp:query {"tagName":"main","queryId":1,"query":{"perPage":10,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","sticky":""}} -->
<main class="wp-block-query">
Expand Down
2 changes: 1 addition & 1 deletion skatepark/block-templates/singular.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- wp:template-part {"slug":"header","tagName":"header","layout":{"type":"flex"},"align":"full"} /-->
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->

<!-- wp:group {"layout":{"inherit":true}} -->
<div class="wp-block-group">
Expand Down
2 changes: 1 addition & 1 deletion skatepark/sass/templates/_header.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
header.wp-block-template-part {
header.wp-block-template-part > .wp-block-group {
align-items: flex-end; // Needed until theme.json layout lets me specify
justify-content: space-between; // Apply a cluster (flex?) layout
flex-wrap: wrap-reverse;
Expand Down

0 comments on commit 9534e37

Please sign in to comment.