-
-
Notifications
You must be signed in to change notification settings - Fork 483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[i18n] RTL support #690
base: main
Are you sure you want to change the base?
[i18n] RTL support #690
Changes from 3 commits
b65a373
7360072
23d0c46
6da4690
b5fd450
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -619,8 +619,9 @@ form { | |
color: #666; | ||
} | ||
|
||
#search { | ||
float: right; | ||
.hello { | ||
display: flex; | ||
justify-content: space-between; | ||
} | ||
|
||
#search .twitter-typeahead .tt-dropdown-menu { | ||
|
@@ -1167,7 +1168,6 @@ img.gallery-img { | |
#showcase-page .showcase-intro h1 { | ||
font: italic 900 14.5vw "Montserrat", sans-serif; | ||
color: #ED225D; | ||
text-align: left; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👆 was not doing anything except breaking rtl 😄 |
||
text-transform: uppercase; | ||
} | ||
|
||
|
@@ -2018,7 +2018,7 @@ footer { | |
#i18n-btn { | ||
position: absolute; | ||
top: 2.5em; /* temp promo, 4.0em */ | ||
right: 1em; | ||
margin: 0 1em; | ||
} | ||
#i18n-btn a { | ||
font-family: "Montserrat", sans-serif; | ||
|
@@ -2166,7 +2166,6 @@ footer { | |
.column-span { | ||
margin: 0 1em 0 1em; | ||
padding: 0; | ||
float: left; | ||
} | ||
#menu.top_menu, | ||
#menu { | ||
|
@@ -2471,3 +2470,21 @@ iframe { | |
display: inline; | ||
} | ||
} | ||
|
||
/* ======= Right-to-left modifications ======== */ | ||
|
||
html.rtl #lockup { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can the selector be selecting the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes that is possible. The downside is that for each new rtl language a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would like to try out just using the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well, what language should I put there? I can arbitrarily add either There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry about the delay. I removed elements from |
||
left: auto; | ||
right: 1.25em; | ||
} | ||
|
||
html.rtl #home-page #asterisk-design-element { | ||
right: auto; | ||
left: 20%; | ||
} | ||
|
||
@media screen and (max-width: 719px) { | ||
html.rtl .sidebar-menu-icon { | ||
float: left | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of listing all these languages here, can this just be a blank array and whenever a rtl language is added the translator can add the appropriate language code themselves?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes totally. I feel
var rtlLangs = ['ar', 'fa', 'he', 'ur']
is more self-documenting whereasvar rtlLangs = []
is a bit of mystery why we lookup inside an empty list (assuming this doesn't affect performance since it is just a build time script)And again we need to document this somewhere etc, but your call!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can expand on the contributor docs to include a section about RTL languages. Some line comments can be added here as well if you feel that just leaving it as an empty array is potentially confusing. Performance won't be a concern in any case here.