clash/web-client/src/localization/rtl.css

54 lines
1.3 KiB
CSS

/* Preserve map coordinates; only Persian reading surfaces use RTL. */
[data-clash-locale='fa']
:is(
p,
h1,
h2,
h3,
h4,
h5,
h6,
strong,
button,
label,
legend,
li,
summary,
textarea,
select,
option,
.hint,
.description,
.decision-description,
.tutorial-body
) {
direction: rtl;
unicode-bidi: plaintext;
text-align: start;
}
[data-clash-locale='fa'] :is(canvas, svg, code, pre, [translate='no'], [data-bgs-player]) {
direction: ltr;
unicode-bidi: isolate;
}
/* Browser font faces are fetched only when the selected locale uses them. */
[data-clash-locale='hi'] {
--clash-locale-font: 'Clash Devanagari';
}
[data-clash-locale='fa'] {
--clash-locale-font: 'Clash Arabic';
}
[data-clash-locale='ko'] {
--clash-locale-font: 'Clash Korean';
}
[data-clash-locale='zh-CN'] {
--clash-locale-font: 'Clash ChineseSimplified';
}
[data-clash-locale='zh-TW'] {
--clash-locale-font: 'Clash Chinese';
}
[data-clash-locale]:is([lang='hi'], [lang='fa'], [lang='ko'], [lang='zh-TW'], [lang='zh-CN']),
[data-clash-locale]:is([lang='hi'], [lang='fa'], [lang='ko'], [lang='zh-TW'], [lang='zh-CN'])
:is(h1, h2, h3, h4, h5, h6, button, input, select, textarea) {
font-family: 'DM Sans', var(--clash-locale-font), sans-serif;
}