Skip to content

Commit

Permalink
Add buttons menu pattern. Remove theme attribute. #35
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed Feb 4, 2022
1 parent 3a396bf commit 2205f94
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 9 deletions.
13 changes: 13 additions & 0 deletions patterns/buttons-menu-alternative-with-padding.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!-- wp:buttons -->
<div class="wp-block-buttons"><!-- wp:button {"style":{"spacing":{"padding":{"top":"20px","right":"20px","bottom":"20px","left":"20px"}}}} -->
<div class="wp-block-button"><a class="wp-block-button__link" href="/" style="padding-top:20px;padding-right:20px;padding-bottom:20px;padding-left:20px">Home</a></div>
<!-- /wp:button -->

<!-- wp:button {"style":{"spacing":{"padding":{"top":"16px","right":"16px","bottom":"16px","left":"16px"}}}} -->
<div class="wp-block-button"><a class="wp-block-button__link" href="/about/" style="padding-top:16px;padding-right:16px;padding-bottom:16px;padding-left:16px">About</a></div>
<!-- /wp:button -->

<!-- wp:button {"style":{"spacing":{"padding":{"top":"12px","right":"12px","bottom":"12px","left":"12px"}}}} -->
<div class="wp-block-button"><a class="wp-block-button__link" href="/privacy-notice/" style="padding-top:12px;padding-right:12px;padding-bottom:12px;padding-left:12px">Privacy notice</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->
6 changes: 3 additions & 3 deletions patterns/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- wp:template-part {"slug":"header","theme":"thisis","layout":{"inherit":false,"contentSize":"100%"}} /-->
<!-- wp:template-part {"slug":"header","layout":{"inherit":false,"contentSize":"100%"}} /-->

<!-- wp:site-title {"style":{"color":{"link":"var:preset|color|background"},"typography":{"lineHeight":"0.7"}},"backgroundColor":"bold-blue"} /-->

Expand Down Expand Up @@ -42,6 +42,6 @@ <h2>FSE is...</h2>
<!-- /wp:column --></div>
<!-- /wp:columns -->

<!-- wp:template-part {"slug":"footer","theme":"thisis"} /-->
<!-- wp:template-part {"slug":"footer"} /-->

<!-- wp:template-part {"slug":"quixote","theme":"thisis"} /-->
<!-- wp:template-part {"slug":"quixote"} /-->
6 changes: 3 additions & 3 deletions patterns/page.html → patterns/page.htm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- wp:template-part {"slug":"header","theme":"thisis","layout":{"inherit":false,"contentSize":"100%"}} /-->
<!-- wp:template-part {"slug":"header","layout":{"inherit":false,"contentSize":"100%"}} /-->

<!-- wp:group {"backgroundColor":"site-header-background","layout":{"inherit":true}} -->
<div class="wp-block-group has-site-header-background-background-color has-background"><!-- wp:columns -->
Expand All @@ -8,7 +8,7 @@
<!-- /wp:columns --></div>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"main-body","theme":"thisis","layout":{"inherit":true}} /-->
<!-- wp:template-part {"slug":"main-body","layout":{"inherit":true}} /-->

<!-- wp:group {"align":"wide"} -->
<div class="wp-block-group alignwide"><!-- wp:columns -->
Expand All @@ -30,7 +30,7 @@
<!-- /wp:spacer --></div>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer","theme":"thisis","style":{"color":{"background":"#f7f7f7"}},"textColor":"foreground","layout":{"inherit":true}} /-->
<!-- wp:template-part {"slug":"footer","style":{"color":{"background":"#f7f7f7"}},"textColor":"foreground","layout":{"inherit":true}} /-->

<!-- wp:paragraph -->
<p></p>
Expand Down
6 changes: 3 additions & 3 deletions patterns/single-post.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- wp:template-part {"slug":"header","theme":"thisis","layout":{"inherit":false,"contentSize":"100%"}} /-->
<!-- wp:template-part {"slug":"header","layout":{"inherit":false,"contentSize":"100%"}} /-->

<!-- wp:group {"backgroundColor":"site-header-background","layout":{"inherit":true}} -->
<div class="wp-block-group has-site-header-background-background-color has-background"><!-- wp:columns -->
Expand All @@ -8,9 +8,9 @@
<!-- /wp:columns --></div>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"main-body","theme":"thisis","layout":{"inherit":true}} /-->
<!-- wp:template-part {"slug":"main-body","layout":{"inherit":true}} /-->

<!-- wp:template-part {"slug":"footer","theme":"thisis","style":{"color":{"background":"#f7f7f7"}},"textColor":"foreground","layout":{"inherit":true}} /-->
<!-- wp:template-part {"slug":"footer","style":{"color":{"background":"#f7f7f7"}},"textColor":"foreground","layout":{"inherit":true}} /-->

<!-- wp:paragraph -->
<p></p>
Expand Down

0 comments on commit 2205f94

Please sign in to comment.