feat(core): proper em handling for CJK languages

This commit is contained in:
alistair3149 2024-04-19 16:55:08 -04:00
parent b9a524bab4
commit 6dd0f09aca
No known key found for this signature in database

View file

@ -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 );
}