forked from WordPress/twentytwentyfive
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request WordPress#52 from WordPress/add/headers
Add headers Co-authored-by: carolinan <poena@git.wordpress.org> Co-authored-by: juanfra <juanfra@git.wordpress.org>
- Loading branch information
Showing
7 changed files
with
136 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1 @@ | ||
<!-- wp:group {"layout":{"inherit":"true"}} --> | ||
<div class="wp-block-group"> | ||
<!-- wp:group {"align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} --> | ||
<div class="wp-block-group alignwide"> | ||
|
||
<!-- wp:group {"layout":{"type":"flex"}} --> | ||
<div class="wp-block-group"> | ||
<!-- wp:site-logo /--> | ||
<!-- wp:site-title /--> | ||
</div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:navigation {"layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right","orientation":"horizontal"}} /--> | ||
|
||
</div> | ||
<!-- /wp:group --> | ||
</div> | ||
<!-- /wp:group --> | ||
<!-- wp:pattern {"slug":"twentytwentyfive/header"} /--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
/** | ||
* Title: Centered Header | ||
* Slug: twentytwentyfive/header-centered | ||
* Categories: header | ||
* Block Types: core/template-part/header | ||
* Description: Header with centered site title and navigation | ||
* | ||
* @package WordPress | ||
* @subpackage Twenty_Twenty_Five | ||
* @since Twenty Twenty-Five 1.0 | ||
*/ | ||
|
||
?> | ||
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|30","left":"var:preset|spacing|50","right":"var:preset|spacing|50"}}},"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--60);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--30);padding-left:var(--wp--preset--spacing--50)"> | ||
<!-- wp:site-title {"level":0,"textAlign":"center","align":"wide","fontSize":"large"} /--> | ||
<!-- wp:group {"align":"wide","layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group alignwide"> | ||
<!-- wp:navigation {"layout":{"type":"flex","justifyContent":"center"}} /--> | ||
</div> | ||
<!-- /wp:group --> | ||
</div> | ||
<!-- /wp:group --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
/** | ||
* Title: Header with columns | ||
* Slug: twentytwentyfive/header-columns | ||
* Categories: header | ||
* Block Types: core/template-part/header | ||
* Description: Header with site title and navigation in columns | ||
* | ||
* @package WordPress | ||
* @subpackage Twenty_Twenty_Five | ||
* @since Twenty Twenty-Five 1.0 | ||
*/ | ||
|
||
?> | ||
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|60","left":"var:preset|spacing|50","right":"var:preset|spacing|50"}}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between","verticalAlignment":"top"}} --> | ||
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--40);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--50)"> | ||
<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20","padding":{"top":"0","bottom":"0","left":"0","right":"0"}}},"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group" style="padding-top:0;padding-right:0;padding-bottom:0;padding-left:0"> | ||
<!-- wp:site-title {"level":0} /--> | ||
<!-- wp:site-tagline /--> | ||
</div> | ||
<!-- /wp:group --> | ||
<!-- wp:group {"layout":{"type":"constrained","justifyContent":"left"}} --> | ||
<div class="wp-block-group"> | ||
<!-- wp:navigation {"layout":{"type":"flex","orientation":"vertical"}} /--> | ||
</div> | ||
<!-- /wp:group --> | ||
<!-- wp:site-logo /--> | ||
</div> | ||
<!-- /wp:group --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
/** | ||
* Title: Header with large title | ||
* Slug: twentytwentyfive/header-large-title | ||
* Categories: header | ||
* Block Types: core/template-part/header | ||
* Description: Header with large site title and right aligned navigation | ||
* | ||
* @package WordPress | ||
* @subpackage Twenty_Twenty_Five | ||
* @since Twenty Twenty-Five 1.0 | ||
*/ | ||
|
||
?> | ||
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40","left":"var:preset|spacing|50","right":"var:preset|spacing|50"}}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between","verticalAlignment":"top"}} --> | ||
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--40);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--40);padding-left:var(--wp--preset--spacing--50)"> | ||
<!-- wp:site-title {"level":0,"style":{"typography":{"fontSize":"100px"}}} /--> | ||
<!-- wp:group {"style":{"spacing":{"padding":{"right":"0","left":"0"}}},"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group" style="padding-right:0;padding-left:0"> | ||
<!-- wp:navigation {"layout":{"type":"flex","justifyContent":"right","orientation":"vertical"}} /--> | ||
</div> | ||
<!-- /wp:group --> | ||
</div> | ||
<!-- /wp:group --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
/** | ||
* Title: Header | ||
* Slug: twentytwentyfive/header | ||
* Categories: header | ||
* Block Types: core/template-part/header | ||
* Description: Header with site title and navigation | ||
* | ||
* @package WordPress | ||
* @subpackage Twenty_Twenty_Five | ||
* @since Twenty Twenty-Five 1.0 | ||
*/ | ||
|
||
?> | ||
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|30","bottom":"var:preset|spacing|30","left":"var:preset|spacing|50","right":"var:preset|spacing|50"}}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} --> | ||
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--30);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--30);padding-left:var(--wp--preset--spacing--50)"> | ||
<!-- wp:site-title {"level":0} /--> | ||
<!-- wp:group {"style":{"spacing":{"padding":{"right":"0","left":"0"}}},"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group" style="padding-right:0;padding-left:0"> | ||
<!-- wp:navigation /--> | ||
</div> | ||
<!-- /wp:group --> | ||
</div> | ||
<!-- /wp:group --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters