-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve consistency of layouts (#499)
* Use 3 column layout for CLI Commands * Use 3 column layout for single command * Only create left column on really wide screens when there is no left column content * Use 3 column layout for single code ref * Update the global content size to 960px * Remove has-three-columns class This has been ported to the parent theme for reuse * Left align non 3 column layouts * Revert change to code reference layout * Revert removing bottom space from cli commands
- Loading branch information
1 parent
c6df78a
commit 2d6df69
Showing
11 changed files
with
66 additions
and
106 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
source/wp-content/themes/wporg-developer-2023/parts/search.html
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
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
2 changes: 1 addition & 1 deletion
2
source/wp-content/themes/wporg-developer-2023/templates/archive-command.html
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
2 changes: 1 addition & 1 deletion
2
source/wp-content/themes/wporg-developer-2023/templates/search.html
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
38 changes: 22 additions & 16 deletions
38
source/wp-content/themes/wporg-developer-2023/templates/single.html
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,35 +1,41 @@ | ||
<!-- wp:template-part {"slug":"header","className":"has-display-contents"} /--> | ||
|
||
<!-- wp:template-part {"slug":"search","className":"has-display-contents"} /--> | ||
<!-- wp:template-part {"slug":"search-wide","className":"has-display-contents"} /--> | ||
|
||
<!-- wp:group {"tagName":"main","layout":{"type":"constrained","wideSize":"1280px","contentSize":"680px"},"style":{"spacing":{"padding":{"left":"var:preset|spacing|edge-space","right":"var:preset|spacing|edge-space"}}}} --> | ||
<main class="wp-block-group alignfull" style="padding-left:var(--wp--preset--spacing--edge-space);padding-right:var(--wp--preset--spacing--edge-space)"> | ||
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"right":"var:preset|spacing|edge-space","left":"var:preset|spacing|edge-space"}}},"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group alignfull" style="padding-right:var(--wp--preset--spacing--edge-space);padding-left:var(--wp--preset--spacing--edge-space)"> | ||
|
||
<!-- wp:group {"align":"full","className":"has-three-columns","layout":{"type":"flex","flexWrap":"wrap","orientation":"vertical"}} --> | ||
<div class="wp-block-group alignfull has-three-columns"> | ||
|
||
<!-- wp:group {"tagName":"main","className":"alignwide","style":{"spacing":{"margin":{"top":"var:preset|spacing|20"}}}} --> | ||
<main class="wp-block-group alignwide" style="margin-top:var(--wp--preset--spacing--20)"> | ||
|
||
<!-- wp:group {"layout":{"type":"constrained","justifyContent":"left"},"align":"wide","style":{"spacing":{"margin":{"top":"var:preset|spacing|20"}}}} --> | ||
<div class="wp-block-group alignwide" style="margin-top:var(--wp--preset--spacing--20)"> | ||
<!-- wp:group {"tagName":"article"} --> | ||
<article class="wp-block-group"> | ||
|
||
<!-- wp:wporg/code-reference-title {"style":{"spacing":{"margin":{"bottom":"40px"}}}} /--> | ||
|
||
<!-- wp:group {"tagName":"article"} --> | ||
<article class="wp-block-group"> | ||
|
||
<!-- wp:wporg/code-reference-title {"style":{"spacing":{"margin":{"bottom":"40px"}}}} /--> | ||
<!-- wp:pattern {"slug":"wporg-developer-2023/article-sidebar"} /--> | ||
|
||
<!-- wp:pattern {"slug":"wporg-developer-2023/article-sidebar"} /--> | ||
<!-- wp:wporg/code-reference-deprecated /--> | ||
|
||
<!-- wp:wporg/code-reference-deprecated /--> | ||
<!-- wp:wporg/code-reference-private-access /--> | ||
|
||
<!-- wp:wporg/code-reference-private-access /--> | ||
<!-- wp:pattern {"slug":"wporg-developer-2023/single-content"} /--> | ||
|
||
<!-- wp:pattern {"slug":"wporg-developer-2023/single-content"} /--> | ||
<!-- wp:wporg/code-reference-comment-form /--> | ||
|
||
<!-- wp:wporg/code-reference-comment-form /--> | ||
</article> | ||
<!-- /wp:group --> | ||
|
||
</article> | ||
</main> | ||
<!-- /wp:group --> | ||
|
||
</div> | ||
<!-- /wp:group --> | ||
|
||
</main> | ||
</div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:template-part {"slug":"footer"} /--> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -186,6 +186,9 @@ | |
} | ||
} | ||
}, | ||
"layout": { | ||
"contentSize": "960px" | ||
}, | ||
"typography": { | ||
"fontSizes": [ | ||
{ | ||
|