Skip to content

Commit

Permalink
Fix question mark reversing logic for Arabic, Hebrew, Persian, and Urdu
Browse files Browse the repository at this point in the history
  • Loading branch information
kommunarr committed Sep 1, 2023
1 parent c136216 commit 8acd703
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/renderer/themes.css
Original file line number Diff line number Diff line change
Expand Up @@ -1017,14 +1017,15 @@ body[dir='rtl'] {
--horizontal-directionality-coefficient: -1;
}

/* Arabic, Kurdish, Persian and Urdu have a reversed question mark, but not Hebrew and Yiddish */
html[lang='he'] body[dir='rtl'] [data-prefix="fas"]:not([data-icon="magnifying-glass"]):not([data-icon="circle-question"]),
html[lang='yi'] body[dir='rtl'] [data-prefix="fas"]:not([data-icon="magnifying-glass"]):not([data-icon="circle-question"]) {
body[dir='rtl'] [data-prefix="fas"]:not([data-icon="magnifying-glass"]):not([data-icon="circle-question"]) {
transform: scale(-1,1);
}

body[dir='rtl'] [data-prefix="fas"]:not([data-icon="magnifying-glass"]) {
transform: scale(-1,1);
/* Arabic, Hebrew, Persian and Urdu have a reversed question mark, but not Hebrew and Yiddish */
html[lang='fa'] [data-prefix="fas"][data-icon="circle-question"],
html[lang='ku'] [data-prefix="fas"][data-icon="circle-question"],
html[lang='ar'] [data-prefix="fas"][data-icon="circle-question"] {
transform: scale(-1, 1)
}

body {
Expand Down

0 comments on commit 8acd703

Please sign in to comment.