Improve ltr support in new website
Adding Arabic to the staging site I have noticed there are still some parts of the layout that work for rtl but not so much for ltr.
Please check that the layout is correct for ltr languages:
https://lektor-staging.torproject.org/tpo/staging/ar/download/
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
i see the bootstrap css has a text-align: left for the body, i took it out and havent seen much problems in ltr languages, and it fixes a lot of the wrong aligns on the templates, i.e. the paragraphs at https://lektor-staging.torproject.org/tpo/staging/ar/
is there a place were the process to add styles and compile the css is documented?
I have a fix for the donate button. For anything else we have a class that we can use from bootstrap: https://getbootstrap.com/docs/4.3/utilities/text/#text-alignment We can add it whenever the language alignment requires it.
I have now modified the templates in master to include the following:
{% set locale = bag('alternatives', this.alt) %} <main role="main" class="mx-auto col-12 {{ locale.order }} {{ locale.direction }}">
Please merge this into the translation branch and see if this fixes most of our issues.
Edited by HiroI have merged to staging and translation branches, see for example:
https://lektor-staging.torproject.org/tpo/staging/ar/
I see:
- The banner has still some strings aligned to the left
- the big paragraph at the end of the homepage ('about us') is also aligned to the left
- the footer blocks are well aligned but the text is still aligned to the left
- https://lektor-staging.torproject.org/tpo/staging/ar/about/history/ is also aligned to the left although the text is rtl.
Collapse replies This was fixed:
- The banner has still some strings aligned to the left
- the big paragraph at the end of the homepage ('about us') is also aligned to the left
- the footer blocks are well aligned but the text is still aligned to the left
Opening a new ticket for this one
- https://lektor-staging.torproject.org/tpo/staging/ar/about/history/ is also aligned to the left although the text is rtl.
- Antonela closed
closed
- Antonela mentioned in issue #65 (closed)
mentioned in issue #65 (closed)
- Antonela mentioned in merge request !74 (merged)
mentioned in merge request !74 (merged)
- donuts mentioned in merge request !77 (merged)
mentioned in merge request !77 (merged)
- donuts mentioned in merge request !78 (merged)
mentioned in merge request !78 (merged)
- Roger Dingledine mentioned in issue #218 (closed)
mentioned in issue #218 (closed)