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

Add typography block style variations #330

Closed
wants to merge 9 commits into from
5 changes: 2 additions & 3 deletions patterns/page-cv-bio.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@
<!-- wp:paragraph {"align":"left","style":{"typography":{"fontSize":"22rem","letterSpacing":"-0.03em"}}} -->
<p class="has-text-align-left" style="font-size:22rem;letter-spacing:-0.03em">Hey,</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"style":{"typography":{"lineHeight":"1.2"}},"fontSize":"x-large"} -->
<p class="has-x-large-font-size" style="line-height:1.2">My name is Gail Falk Seltzer and I’m a passionate and Staff Lawyer. Based in Charleston, West Virginia, I have made significant contributions to labor rights and public health advocacy. A graduate of Yale University, I am proud to have played a key role in drafting the Equal Rights Amendment, reflecting my commitment to gender equality and labor justice. My work has been instrumental in securing better conditions and benefits for miners, showcasing my unwavering dedication to protecting the rights and well-being of America’s labor force.</p>
<!-- wp:paragraph {"className":"is-style-paragraph-1"} -->
<p class="is-style-paragraph-1">My name is Gail Falk Seltzer and I’m a passionate and Staff Lawyer. Based in Charleston, West Virginia, I have made significant contributions to labor rights and public health advocacy. A graduate of Yale University, I am proud to have played a key role in drafting the Equal Rights Amendment, reflecting my commitment to gender equality and labor justice. My work has been instrumental in securing better conditions and benefits for miners, showcasing my unwavering dedication to protecting the rights and well-being of America’s labor force.</p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:group -->
Expand Down
15 changes: 15 additions & 0 deletions styles/blocks/paragraph-1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 3,
"slug": "paragraph-1",
"title": "Lead",
"blockTypes": [
"core/paragraph"
],
"styles": {
"typography": {
"fontSize": "var:preset|font-size|x-large",
"lineHeight": "1.2"
}
}
}
15 changes: 15 additions & 0 deletions styles/blocks/uppercase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 3,
"slug": "uppercase",
"title": "Uppercase",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also tried "Bold Uppercase" but it did not fit inside the button in the interface, it got truncated.

"blockTypes": [ "core/heading", "core/paragraph", "core/post-terms" ],
"styles": {
"typography": {
"fontSize": "var:preset|font-size|small",
"fontWeight": "700",
"textTransform": "uppercase",
"letterSpacing": "1.4px"
}
}
}
Loading