Skip to content

Commit

Permalink
Merge pull request #239 from WordPress/tt1-title-block-font-weight
Browse files Browse the repository at this point in the history
TT1 Blocks Font Weight Value to Headings
  • Loading branch information
kjellr authored Mar 26, 2021
2 parents 6fc600a + 85db93c commit 065a468
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
12 changes: 8 additions & 4 deletions tt1-blocks/assets/css/blocks.css
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,14 @@ hr.is-style-twentytwentyone-separator-thick,
# Site Title
--------------------------------------------------------------*/

h1.wp-block-site-title {
font-weight: var(--wp--custom--font-weight-normal);
}

h1.wp-block-site-title a:not(:hover):not(:focus):not(:active) {
text-decoration: none;
}

/*--------------------------------------------------------------
# Single view Post Title
--------------------------------------------------------------*/

h1.wp-block-post-title {
font-weight: var(--wp--custom--font-weight--light);
}
14 changes: 11 additions & 3 deletions tt1-blocks/experimental-theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@
"unit": "20px",
"horizontal": "25px",
"vertical": "30px"
},
"font-weight":{
"light": "300",
"normal": "normal"
}
}
}
Expand All @@ -207,19 +211,22 @@
"core/heading/h1": {
"typography": {
"fontSize": "var(--wp--preset--font-size--gigantic)",
"lineHeight": "var(--wp--custom--line-height--page-title)"
"lineHeight": "var(--wp--custom--line-height--page-title)",
"fontWeight": "var(--wp--custom--font-weight--normal)"
}
},
"core/heading/h2": {
"typography": {
"fontSize": "var(--wp--preset--font-size--extra-large)",
"lineHeight": "var(--wp--custom--line-height--heading)"
"lineHeight": "var(--wp--custom--line-height--heading)",
"fontWeight": "var(--wp--custom--font-weight--normal)"
}
},
"core/heading/h3": {
"typography": {
"fontSize": "calc(1.25 * var(--wp--preset--font-size--large))",
"lineHeight": "var(--wp--custom--line-height--heading)"
"lineHeight": "var(--wp--custom--line-height--heading)",
"fontWeight": "var(--wp--custom--font-weight--normal)"
}
},
"core/heading/h4": {
Expand Down Expand Up @@ -273,6 +280,7 @@
"core/site-title": {
"typography": {
"fontSize": "var(--wp--preset--font-size--large)",
"fontWeight": "var(--wp--custom--font-weight--normal)",
"textTransform": "uppercase"
}
}
Expand Down

0 comments on commit 065a468

Please sign in to comment.