Skip to content

Commit

Permalink
Merge pull request #226 from vektor-inc/change/add-site-logo-style-fr…
Browse files Browse the repository at this point in the history
…om-theme-json

【確認中】サイトタイトルタグへのデザイン指定をCSSファイルからtheme.jsonに移行
  • Loading branch information
sysbird authored Dec 13, 2023
2 parents 9cea5e4 + 8f9ed61 commit 8fd9254
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
4 changes: 0 additions & 4 deletions assets/_scss/_header.scss
Original file line number Diff line number Diff line change
@@ -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);
}
}
}
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
[ Bug Fix ] Fixed a bug where the submenu's background color and text color were not being applied.
Expand Down
18 changes: 18 additions & 0 deletions theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit 8fd9254

Please sign in to comment.