Skip to content

Instantly share code, notes, and snippets.

View LumberJaxolotl's full-sized avatar

Chris Cormier LumberJaxolotl

View GitHub Profile
@LumberJaxolotl
LumberJaxolotl / resize-arabic.css
Last active March 21, 2024 19:50
CSS rule that scales text of any content using arabic-script. Works with an exaustive list of languages that use arabic-based scripts or have arabic-script varients.
/* scales-up any text using arabic-script for improved legibility */
*:is(:lang(ar), :lang(fa), :lang(fa-AF), :lang(tg), :lang(ur), :lang(ps), :lang(ckb), :lang(ug), :lang(ks), :lang(skr), :lang(bal), :lang(sd), :lang(ota-Arab), :lang(kk-Arab), :lang(ky-Arab), :lang(az-Arab), :lang(tk-Arab), :lang(uz-Arab), :lang(pa-Arab), :lang(ms-Arab), :lang(tt-Arab), :lang(ha-Arab), :lang(ff-Arab), :lang(kr-Arab), :lang(wo-Arab), :lang(bm-Arab), :lang(tmh-Arab), :lang(yo-Arab), :lang(ig-Arab), :lang(sw-Arab), :lang(so-Arab)) {
font-size: 1.2em;
}
/*
Languages supported:
ar - Arabic
fa - Persian