Skip to content

Commit

Permalink
feat(core): ✨ proper em handling for CJK languages
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair3149 committed Apr 19, 2024
1 parent b9a524b commit 6dd0f09
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions resources/skins.citizen.styles/common/typography.less
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,27 @@ sup {
font-size: 80%;
}

em {
:lang( ja ) &,
:lang( ko ) &,
:lang( mn ) &,
:lang( zh ) & {
/* CJK languages do not use italics for emphasis */
font-style: normal;
text-emphasis: filled;
}

:lang( ja ) &,
:lang( ko ) &,
:lang( mn ) & {
text-emphasis-position: over right;
}

:lang( zh ) & {
text-emphasis-position: under right;
}
}

.mw-logo-wordmark {
font-weight: var( --font-weight-semibold );
}
Expand Down

0 comments on commit 6dd0f09

Please sign in to comment.