Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

Moved sizing opinions from home to theme.json #94

Closed
wants to merge 1 commit into from
Closed
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
12 changes: 6 additions & 6 deletions templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@
<!-- wp:image {"align":"wide"} -->
<figure class="wp-block-image alignwide"><img alt=""/></figure>
<!-- /wp:image -->

<!-- wp:heading {"align":"wide","style":{"typography":{"fontWeight":"400"},"spacing":{"margin":{"top":"8rem","bottom":"8rem"}}}} -->
<h2 class="alignwide" style="margin-top:8rem;margin-bottom:8rem;font-weight:400;">Mindblown: a blog about philosophy.</h2>
<!-- wp:heading {"align":"wide","style":{"spacing":{"margin":{"top":"8rem","bottom":"8rem"}}}} -->
<h2 class="alignwide" style="margin-top:8rem;margin-bottom:8rem;">Mindblown: a blog about philosophy.</h2>
<!-- /wp:heading -->

<!-- wp:query {"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"displayLayout":{"type":"flex","columns":3},"align":"wide","layout":{"inherit":true}} -->
<div class="wp-block-query alignwide">
<!-- wp:group {"align":"wide","layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
<div class="wp-block-group alignwide">
<!-- wp:heading {"level":3,"style":{"typography":{"textTransform":"uppercase","fontStyle":"normal","fontWeight":"400"}},"fontSize":"small"} -->
<h3 class="has-small-font-size" style="font-style:normal;font-weight:400;text-transform:uppercase">Latests posts</h3>
<!-- wp:heading {"level":6} -->
<h6>Latests posts</h6>
<!-- /wp:heading -->

<!-- wp:query-pagination {"layout":{"type":"flex","justifyContent":"right"}} -->
<!-- wp:query-pagination-next {"label":"View more"} /-->
<!-- /wp:query-pagination -->
Expand Down
4 changes: 3 additions & 1 deletion theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -399,12 +399,14 @@
"h2": {
"typography": {
"fontSize": "clamp(2.625rem, calc(2.625rem + ((1vw - 0.48rem) * 8.4135)), 3.25rem)",
"fontWeight": "400",
"lineHeight": "1.2"
}
},
"h3": {
"typography": {
"fontSize": "2.25rem"
"fontSize": "2.25rem",
"fontWeight": "400"
}
},
"h4": {
Expand Down