Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes the two first tasks on issue #126 #150

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 20 additions & 7 deletions purr/parts/footer.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
<!-- wp:group {"style":{"border":{"top":{"color":"#f2f2f2","width":"1px"},"right":[],"bottom":[],"left":[]}},"layout":{"inherit":true,"type":"constrained"}} -->
<div class="wp-block-group" style="border-top-color:#f2f2f2;border-top-width:1px"><!-- wp:group {"style":{"spacing":{"padding":{"top":"80px","bottom":"30px"}}}} -->
<div class="wp-block-group" style="padding-top:80px;padding-bottom:30px"><!-- wp:paragraph {"align":"center"} -->
<p class="has-text-align-center">Proudly Powered by <a href="https://wordpress.org" rel="nofollow">WordPress</a></p>
<!-- /wp:paragraph --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
<!-- wp:group {"style":{"border":{"top":{"color":"var:preset|color|custom-gray-lightest","width":"var:custom|border|light"},"right":[],"bottom":[],"left":[]}},"layout":{"inherit":true,"type":"constrained"}} -->
<div
class="wp-block-group"
style="
border-top-color: var(--wp--preset--color--custom-gray-lightest);
border-top-width: var(--wp--custom--border--light);
"
>
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:custom|padding|80","bottom":"var:custom|padding|30"}}}} -->
<div class="wp-block-group" style="padding-top: var(--wp--custom--padding--80); padding-bottom: var(--wp--custom--padding--30)">
<!-- wp:paragraph {"align":"center"} -->
<p class="has-text-align-center">
Proudly Powered by
<a href="https://wordpress.org" rel="nofollow">WordPress</a>
</p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->
29 changes: 22 additions & 7 deletions purr/parts/header.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
<!-- wp:group {"style":{"spacing":{"margin":{"top":"var:preset|spacing|40"},"padding":{"right":"var:preset|spacing|40","left":"var:preset|spacing|40","top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"}},"border":{"bottom":{"style":"none","width":"0px"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="border-bottom-style:none;border-bottom-width:0px;margin-top:var(--wp--preset--spacing--40);padding-top:var(--wp--preset--spacing--40);padding-right:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--40);padding-left:var(--wp--preset--spacing--40)"><!-- wp:group {"layout":{"type":"flex","orientation":"vertical"}} -->
<div class="wp-block-group"><!-- wp:site-title /-->
<!-- wp:group {"style":{"spacing":{"margin":{"top":"var:preset|spacing|40"},"padding":{"right":"var:preset|spacing|40","left":"var:preset|spacing|40","top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"}},"border":{"bottom":{"style":"var:custom|border|style|none","width":"var:custom|spacing|none"}}},"layout":{"type":"constrained"}} -->
<div
class="wp-block-group"
style="
border-bottom-style: var(--wp--custom--border--style--none);
border-bottom-width: var(--wp--custom--spacing--none);
margin-top: var(--wp--preset--spacing--40);
padding-top: var(--wp--preset--spacing--40);
padding-right: var(--wp--preset--spacing--40);
padding-bottom: var(--wp--preset--spacing--40);
padding-left: var(--wp--preset--spacing--40);
"
>
<!-- wp:group {"layout":{"type":"flex","orientation":"vertical"}} -->
<div class="wp-block-group">
<!-- wp:site-title /-->

<!-- wp:site-tagline /--></div>
<!-- /wp:group --></div>
<!-- wp:site-tagline /-->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->

<!-- wp:spacer {"height":"50px"} -->
<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<div style="height: 50px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
6 changes: 1 addition & 5 deletions purr/parts/right-sidebar.html
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
<!-- wp:group {"style":{"position":{"type":""},"layout":{"selfStretch":"fixed","flexSize":"25%"},"spacing":{"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"flex","orientation":"vertical","flexWrap":"nowrap","justifyContent":"stretch"}} -->
<div class="wp-block-group" style="margin-top:0;margin-bottom:0"><!-- wp:search {"label":"Search","showLabel":false,"placeholder":"Search posts","widthUnit":"%","buttonText":"Search","buttonPosition":"no-button","style":{"layout":{"selfStretch":"fit","flexSize":null},"border":{"radius":"10px","width":"1px"}},"borderColor":"custom-gray-light"} /-->

<!-- wp:tag-cloud {"showTagCounts":true} /--></div>
<!-- /wp:group -->
<!-- wp:pattern {"slug":"purr/right-sidebar"} /-->
28 changes: 16 additions & 12 deletions purr/patterns/left-sidebar.php
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
<?php

/**
* Title: Left Sidebar
* Slug: purr/left-sidebar
* Categories: sidebar
*/
?>
<!-- wp:group {"style":{"position":{"type":""},"layout":{"selfStretch":"fixed","flexSize":"25%"},"spacing":{"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch","flexWrap":"nowrap"}} -->
<div class="wp-block-group" style="margin-top:0;margin-bottom:0"><!-- wp:group {"style":{"spacing":{"margin":{"top":"var:preset|spacing|40","bottom":"0"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="margin-top:var(--wp--preset--spacing--40);margin-bottom:0"><!-- wp:site-logo {"width":94,"className":"is-style-rounded"} /--></div>
<!-- /wp:group -->
<!-- wp:group {"style":{"layout":{"selfStretch":"fixed","flexSize":"var:preset|custom|sidebar|width"}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch","flexWrap":"nowrap"}} -->
<div class="wp-block-group"><!-- wp:group {"style":{"spacing":{"margin":{"top":"var:preset|spacing|40"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="margin-top:var(--wp--preset--spacing--40)">
<!-- wp:site-logo {"className":"is-style-rounded"} /-->
</div>
<!-- /wp:group -->

<!-- wp:heading -->
<h2 class="wp-block-heading"><?php esc_html_e( 'About', 'purr' ); ?></h2>
<!-- /wp:heading -->
<!-- wp:heading -->
<h2 class="wp-block-heading"><?php esc_html_e('About', 'purr'); ?></h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p><?php esc_html_e( 'Purr is a theme for status updates.', 'purr' ); ?></p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p><?php esc_html_e('Purr is a theme for status updates.', 'purr'); ?></p>
<!-- /wp:paragraph -->

<!-- wp:archives {"showPostCounts":true} /--></div>
<!-- /wp:group -->
<!-- wp:archives {"showPostCounts":true} /-->
</div>
<!-- /wp:group -->
15 changes: 15 additions & 0 deletions purr/patterns/right-sidebar.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

/**
* Title: Right Sidebar
* Slug: purr/right-sidebar
* Categories: sidebar
*/
?>
<!-- wp:group {"style":{"position":{"type":""},"layout":{"selfStretch":"fixed","flexSize":"var:preset|custom|sidebar|width"}},"layout":{"type":"flex","orientation":"vertical","flexWrap":"nowrap","justifyContent":"stretch"}} -->
<div class="wp-block-group">
<!-- wp:search {"label":"Search","showLabel":false,"placeholder":"Search posts","widthUnit":"%","buttonText":"Search","buttonPosition":"no-button","style":{"layout":{"selfStretch":"fit","flexSize":null},"border":{"radius":"var(--wp--custom--border--radius--low-rounded)","width":"var(--wp--custom--border--light)"}},"borderColor":"var:preset|color|custom-gray-light"} /-->

<!-- wp:tag-cloud {"showTagCounts":true} /-->
</div>
<!-- /wp:group -->
Loading