From 9d76f4614ba9be886e6ead2a079c64b363c2ba7d Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Tue, 23 Mar 2021 11:22:41 +0100 Subject: [PATCH 1/4] Update experimental-theme.json --- tt1-blocks/experimental-theme.json | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/tt1-blocks/experimental-theme.json b/tt1-blocks/experimental-theme.json index 3364476a..11b65f79 100644 --- a/tt1-blocks/experimental-theme.json +++ b/tt1-blocks/experimental-theme.json @@ -188,6 +188,9 @@ "unit": "20px", "horizontal": "25px", "vertical": "30px" + }, + "font-weight":{ + "title": "300" } } } @@ -207,37 +210,43 @@ "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--title)" } }, "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--title)" } }, "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--title)" } }, "core/heading/h4": { "typography": { "fontSize": "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--title)" } }, "core/heading/h5": { "typography": { "fontSize": "var(--wp--preset--font-size--small)", - "lineHeight": "var(--wp--custom--line-height--heading)" + "lineHeight": "var(--wp--custom--line-height--heading)", + "fontWeight": "var(--wp--custom--font-weight--title)" } }, "core/heading/h6": { "typography": { "fontSize": "var(--wp--preset--font-size--extra-small)", - "lineHeight": "var(--wp--custom--line-height--heading)" + "lineHeight": "var(--wp--custom--line-height--heading)", + "fontWeight": "var(--wp--custom--font-weight--title)" } }, "core/site-tagline": { From 5c1c118890aa2df965c22e22954527e9987a40b3 Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Wed, 24 Mar 2021 08:26:32 +0100 Subject: [PATCH 2/4] Update experimental-theme.json --- tt1-blocks/experimental-theme.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tt1-blocks/experimental-theme.json b/tt1-blocks/experimental-theme.json index 11b65f79..0a2cc132 100644 --- a/tt1-blocks/experimental-theme.json +++ b/tt1-blocks/experimental-theme.json @@ -190,7 +190,7 @@ "vertical": "30px" }, "font-weight":{ - "title": "300" + "thin": "300" } } } @@ -211,42 +211,42 @@ "typography": { "fontSize": "var(--wp--preset--font-size--gigantic)", "lineHeight": "var(--wp--custom--line-height--page-title)", - "fontWeight": "var(--wp--custom--font-weight--title)" + "fontWeight": "var(--wp--custom--font-weight--thin)" } }, "core/heading/h2": { "typography": { "fontSize": "var(--wp--preset--font-size--extra-large)", "lineHeight": "var(--wp--custom--line-height--heading)", - "fontWeight": "var(--wp--custom--font-weight--title)" + "fontWeight": "var(--wp--custom--font-weight--thin)" } }, "core/heading/h3": { "typography": { "fontSize": "calc(1.25 * var(--wp--preset--font-size--large))", "lineHeight": "var(--wp--custom--line-height--heading)", - "fontWeight": "var(--wp--custom--font-weight--title)" + "fontWeight": "var(--wp--custom--font-weight--thin)" } }, "core/heading/h4": { "typography": { "fontSize": "var(--wp--preset--font-size--large)", "lineHeight": "var(--wp--custom--line-height--heading)", - "fontWeight": "var(--wp--custom--font-weight--title)" + "fontWeight": "var(--wp--custom--font-weight--thin)" } }, "core/heading/h5": { "typography": { "fontSize": "var(--wp--preset--font-size--small)", "lineHeight": "var(--wp--custom--line-height--heading)", - "fontWeight": "var(--wp--custom--font-weight--title)" + "fontWeight": "var(--wp--custom--font-weight--thin)" } }, "core/heading/h6": { "typography": { "fontSize": "var(--wp--preset--font-size--extra-small)", "lineHeight": "var(--wp--custom--line-height--heading)", - "fontWeight": "var(--wp--custom--font-weight--title)" + "fontWeight": "var(--wp--custom--font-weight--thin)" } }, "core/site-tagline": { From 21ace26e8d9125e0d969d2a969fa61fa94897a41 Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Wed, 24 Mar 2021 09:16:51 +0100 Subject: [PATCH 3/4] Update experimental-theme.json --- tt1-blocks/experimental-theme.json | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/tt1-blocks/experimental-theme.json b/tt1-blocks/experimental-theme.json index 0a2cc132..7b4d19e2 100644 --- a/tt1-blocks/experimental-theme.json +++ b/tt1-blocks/experimental-theme.json @@ -190,7 +190,8 @@ "vertical": "30px" }, "font-weight":{ - "thin": "300" + "light": "300", + "normal": "normal" } } } @@ -211,42 +212,39 @@ "typography": { "fontSize": "var(--wp--preset--font-size--gigantic)", "lineHeight": "var(--wp--custom--line-height--page-title)", - "fontWeight": "var(--wp--custom--font-weight--thin)" + "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)", - "fontWeight": "var(--wp--custom--font-weight--thin)" + "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)", - "fontWeight": "var(--wp--custom--font-weight--thin)" + "fontWeight": "var(--wp--custom--font-weight--normal)" } }, "core/heading/h4": { "typography": { "fontSize": "var(--wp--preset--font-size--large)", - "lineHeight": "var(--wp--custom--line-height--heading)", - "fontWeight": "var(--wp--custom--font-weight--thin)" + "lineHeight": "var(--wp--custom--line-height--heading)" } }, "core/heading/h5": { "typography": { "fontSize": "var(--wp--preset--font-size--small)", - "lineHeight": "var(--wp--custom--line-height--heading)", - "fontWeight": "var(--wp--custom--font-weight--thin)" + "lineHeight": "var(--wp--custom--line-height--heading)" } }, "core/heading/h6": { "typography": { "fontSize": "var(--wp--preset--font-size--extra-small)", - "lineHeight": "var(--wp--custom--line-height--heading)", - "fontWeight": "var(--wp--custom--font-weight--thin)" + "lineHeight": "var(--wp--custom--line-height--heading)" } }, "core/site-tagline": { @@ -282,6 +280,7 @@ "core/site-title": { "typography": { "fontSize": "var(--wp--preset--font-size--large)", + "fontWeight": "var(--wp--custom--font-weight--normal)", "textTransform": "uppercase" } } From 85db93c931c85d6816e803283891029f1fbd445c Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Wed, 24 Mar 2021 09:17:14 +0100 Subject: [PATCH 4/4] Update blocks.css --- tt1-blocks/assets/css/blocks.css | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tt1-blocks/assets/css/blocks.css b/tt1-blocks/assets/css/blocks.css index 7e20b552..5e656fcd 100644 --- a/tt1-blocks/assets/css/blocks.css +++ b/tt1-blocks/assets/css/blocks.css @@ -231,10 +231,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); +}