Skip to content

Commit

Permalink
Twenty Twenty-Three: Allow changing Site Title font size in Marigold …
Browse files Browse the repository at this point in the history
…and Whisper styles.

This changeset moves font styling from link element to site title (or post title) block in Marigold and Whisper style variations, which allows to change Site 
Title block font size.

Props ryelle, shuvoaftab, sabernhardt, alvitazwar052, shailu25, poena, audrasjb.
Fixes #57971.




git-svn-id: https://develop.svn.wordpress.org/trunk@56131 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
audrasjb committed Jul 4, 2023
1 parent 1815f4c commit 6ba1ca6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
10 changes: 2 additions & 8 deletions src/wp-content/themes/twentytwentythree/styles/marigold.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@
"elements": {
"link": {
"typography": {
"fontSize": "var(--wp--preset--font-size--large)",
"textDecoration": "none"
},
"color": {
Expand All @@ -168,6 +167,7 @@
}
},
"typography": {
"fontSize": "var(--wp--preset--font-size--large)",
"fontWeight": "600"
}
},
Expand Down Expand Up @@ -203,14 +203,8 @@
}
},
"core/site-title": {
"elements": {
"link": {
"typography": {
"fontSize": "var(--wp--preset--font-size--normal)"
}
}
},
"typography": {
"fontSize": "var(--wp--preset--font-size--normal)",
"textTransform": "lowercase"
}
}
Expand Down
7 changes: 3 additions & 4 deletions src/wp-content/themes/twentytwentythree/styles/whisper.json
Original file line number Diff line number Diff line change
Expand Up @@ -288,16 +288,15 @@
}
},
"typography": {
"fontFamily": "var(--wp--preset--font-family--dm-sans)",
"fontSize": "var(--wp--preset--font-size--large)",
"fontWeight": "700",
"letterSpacing": "-0.01em",
"textDecoration": "none"
}
}
},
"typography": {
"fontFamily": "var(--wp--preset--font-family--dm-sans)",
"fontSize": "var(--wp--preset--font-size--large)",
"fontWeight": "700",
"letterSpacing": "-0.01em",
"lineHeight": "1.4",
"textTransform": "capitalize"
}
Expand Down

0 comments on commit 6ba1ca6

Please sign in to comment.