Skip to content

Commit

Permalink
Rosetta: Prevent short line height and letter spacing on ja and `cn…
Browse files Browse the repository at this point in the history
…` sites

Fixes #424
  • Loading branch information
ryelle committed Apr 10, 2024
1 parent 9cbe881 commit a467dfa
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions source/wp-content/themes/wporg-main-2022/src/rosetta/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@
$wporg-about-breakpoint-min: 600px;
$wporg-about-breakpoint-max: 1920px;

[lang="zh-CN"],
[lang="ja"] {
// Any line height < 1.
[class*="wp-block"][style*="line-height:0."] {
line-height: 1.2 !important;
}

// Any negative letterspacing.
[class*="wp-block"][style*="letter-spacing:-"] {
letter-spacing: normal !important;
}
}

[lang="de-DE"] {
.wporg-about-cover-title > span,
.wporg-about-section-heading {
Expand Down

0 comments on commit a467dfa

Please sign in to comment.