Skip to content

Commit

Permalink
🌐 Add Persian translation for docs/fa/docs/index.md and tweak right…
Browse files Browse the repository at this point in the history
…-to-left CSS (tiangolo#2395)

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
  • Loading branch information
2 people authored and JeanArhancet committed Aug 20, 2022
1 parent 0c3f16e commit e076a58
Show file tree
Hide file tree
Showing 5 changed files with 195 additions and 174 deletions.
2 changes: 1 addition & 1 deletion .github/actions/notify-translations/app/translations.yml
Expand Up @@ -8,7 +8,7 @@ uk: 1748
tr: 1892
fr: 1972
ko: 2017
sq: 2041
fa: 2041
pl: 3169
de: 3716
id: 3717
Expand Down
21 changes: 21 additions & 0 deletions docs/en/docs/css/custom.css
Expand Up @@ -4,10 +4,21 @@
display: block;
}

.termy {
/* For right to left languages */
direction: ltr;
}

.termy [data-termynal] {
white-space: pre-wrap;
}

a.external-link {
/* For right to left languages */
direction: ltr;
display: inline-block;
}

a.external-link::after {
/* \00A0 is a non-breaking space
to make the mark be on the same line as the link
Expand Down Expand Up @@ -118,3 +129,13 @@ a.announce-link:hover {
.twitter {
color: #00acee;
}

/* Right to left languages */
code {
direction: ltr;
display: inline-block;
}

.md-content__inner h1 {
direction: ltr !important;
}

0 comments on commit e076a58

Please sign in to comment.