From 8f9ed619509e7af0a4fb400265645dcb179aab36 Mon Sep 17 00:00:00 2001 From: kurudrive Date: Tue, 5 Dec 2023 04:21:37 +0900 Subject: [PATCH] [ Specification Change ] Change the style specification of the 'site-title' block from a CSS file to theme.json. --- assets/_scss/_header.scss | 4 ---- readme.txt | 1 + theme.json | 18 ++++++++++++++++++ 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/assets/_scss/_header.scss b/assets/_scss/_header.scss index 760b2b9..1cc4b10 100644 --- a/assets/_scss/_header.scss +++ b/assets/_scss/_header.scss @@ -1,11 +1,7 @@ .wp-block-site-title { a { - text-decoration: none; - &:hover { - text-decoration: underline; text-decoration-thickness: 1px; - text-decoration-color: var(--wp--preset--color--text-normal); } } } \ No newline at end of file diff --git a/readme.txt b/readme.txt index 0183293..ba6006f 100644 --- a/readme.txt +++ b/readme.txt @@ -13,6 +13,7 @@ GitHub : https://github.com/vektor-inc/x-t9 == Changelog == +[ Specification Change ] Change the style specification of the 'site-title' block from a CSS file to theme.json. [ Specification Change ] Add style border radius 0 to .card [ Translation ready ] button on featured-post-list diff --git a/theme.json b/theme.json index 403b496..3d5f12f 100644 --- a/theme.json +++ b/theme.json @@ -314,6 +314,24 @@ } }, "blocks": { + "core/site-title": { + "typography": { + "fontWeight": "700", + "lineHeight": "var(--wp--custom--typography--line-height--heading)" + }, + "elements": { + "link": { + "typography": { + "textDecoration": "none" + }, + ":hover": { + "typography": { + "textDecoration": "underline" + } + } + } + } + }, "core/button": { "color": { "background": "var(--wp--preset--color--primary)"