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

Variation Block out: fix font and color issues #196

Merged
merged 2 commits into from
Sep 23, 2022
Merged
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
28 changes: 23 additions & 5 deletions styles/block-out.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
},
{
"fluid": {
"max": "20rem",
"max": "14rem",
"min": "4rem"
},
"size": "10rem",
Expand Down Expand Up @@ -108,17 +108,25 @@
"color": {
"text": "var(--wp--preset--color--contrast)"
}
},
"h1": {
"color": {
"text": "var(--wp--preset--color--contrast)"
}
}
}
},
"core/post-featured-image": {
"border": {
"radius": "8px"
},
"filter": {
"duotone": "var(--wp--preset--duotone--default-filter)"
}
},
"core/post-title": {
"typography": {
"fontSize": "var(--wp--preset--font-size--large)"
"color": {
"text": "var(--wp--preset--color--primary)"
}
},
"core/quote": {
Expand All @@ -139,7 +147,17 @@
"core/site-title": {
"typography": {
"fontSize": "var(--wp--preset--font-size--xx-large)",
"lineHeight": "1.1"
"lineHeight": "1.1",
"textTransform": "lowercase"
}
},
"core/query": {
"elements": {
"h3": {
"color": {
"text": "var(--wp--preset--color--contrast)"
}
}
}
}
},
Expand All @@ -154,7 +172,7 @@
"fontWeight": "400"
}
},
"h2": {
"h1": {
"color": {
"text": "var(--wp--preset--color--primary)"
}
Expand Down
4 changes: 2 additions & 2 deletions templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<figure class="wp-block-image alignwide"><img alt=""/></figure>
<!-- /wp:image -->

<!-- wp:heading {"align":"wide","style":{"spacing":{"margin":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|50"}}}} -->
<h2 class="alignwide" style="margin-top:var(--wp--preset--spacing--60);margin-bottom:var(--wp--preset--spacing--50);">Mindblown: a blog about philosophy.</h2>
<!-- wp:heading {"level":1,"align":"wide","style":{"spacing":{"margin":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|50"}}}} -->
<h1 class="alignwide" style="margin-top:var(--wp--preset--spacing--60);margin-bottom:var(--wp--preset--spacing--50)">Mindblown: a blog about philosophy.</h1>
<!-- /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":{"type":"constrained"}} -->
Expand Down