Skip to content

Commit

Permalink
Merge pull request #4360 from Automattic/seedlet-blocks-footer-fix
Browse files Browse the repository at this point in the history
Seedlet blocks: fix broken footer
  • Loading branch information
MaggieCabrera authored Aug 19, 2021
2 parents 85249e6 + 67ffdd2 commit 73e02b3
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 16 deletions.
8 changes: 7 additions & 1 deletion seedlet-blocks/assets/theme.css

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

22 changes: 9 additions & 13 deletions seedlet-blocks/block-template-parts/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,18 @@
<div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:group {"className":"footer-credit","layout":{"inherit":false}} -->
<!-- wp:group {"className":"footer-credit","layout":{"type":"flex"}} -->
<div class="wp-block-group footer-credit"><!-- wp:site-title {"level":0} /-->

<!-- wp:paragraph -->
<p>, </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"left","fontSize":"small"} -->
<p class="has-text-align-left has-small-font-size">Proudly Powered by <a href="https://wordpress.org" rel="nofollow">WordPress</a></p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->
<!-- wp:paragraph -->
<p>, </p>
<!-- /wp:paragraph -->
<!-- wp:paragraph {"align":"left","fontSize":"small"} -->
<p class="has-text-align-left has-small-font-size">Proudly Powered by <a href="https://wordpress.org" rel="nofollow">WordPress</a></p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->

<!-- wp:spacer {"height":30} -->
<div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:paragraph -->
<p></p>
<!-- /wp:paragraph -->
2 changes: 1 addition & 1 deletion seedlet-blocks/block-templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
</div>
<!-- /wp:query -->

<!-- wp:template-part {"slug":"footer","tagName":"footer","layout":{"inherit":true},"className":"site-footer-container"} /-->
<!-- wp:template-part {"slug":"footer","tagName":"footer","layout":{"inherit":true},"className":"site-footer-container","align":"full"} /-->
7 changes: 6 additions & 1 deletion seedlet-blocks/sass/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,14 @@
}

.footer-credit {
display: flex;
font-family: var(--wp--preset--font-family--headings);
white-space: pre-wrap;
&[class*="wp-container-"] {
margin-left: auto !important;
margin-right: auto !important;
padding: 0;
column-gap: 0;
}
}

.footer-credit > * {
Expand Down

0 comments on commit 73e02b3

Please sign in to comment.