Mirror of the Rel4tion website/wiki source, view at <http://rel4tion.org>

[[ 🗃 ^yEzqv rel4tion-wiki ]] :: [📥 Inbox] [📤 Outbox] [🐤 Followers] [🤝 Collaborators] [🛠 Commits]

Clone

HTTPS: git clone https://vervis.peers.community/repos/yEzqv

SSH: git clone USERNAME@vervis.peers.community:yEzqv

Branches

Tags

master :: editing / help / rtl-text-direction /

rtl-i2p.irc

<weldok> str4d, hello. Can you tell me how you make the i2p website pages have RTL layout with an RTL language, e.g. Hebrew? I want to do this on another website and I believe what you did can be done there too
<str4d> weldok: CSS
<weldok> str4d, thanks, I'll take a look. I don't know much CSS but it's probably not too difficult to find, I hope :-)
<str4d> weldok: for the RTL language, in HTML5 set dir="rtl" on the <html> tag
<str4d> Then have a CSS file for RTL that horizontally inverts certain elements (float left instead of float right, etc.)
* str4d added a custom template tag to the templates that returned true for RTL languages, and used that to turn on the RTL parts
<weldok> str4d, I intend to use templates for this too
<weldok> I'll look at the pages, thanks
<str4d> weldok: look in i2p.www source files:
<str4d> i2p2www/pages/global/layout.html
<str4d> i2p2www/static/styles/duck/default.rtl.css
<str4d> i2p2www/static/styles/duck/desktop.rtl.css
<str4d> i2p2www/templatevars.py is_rtl_lang()
<str4d> Those are the relevant parts (and the RTL_LANGS list in i2p2www/__init__.py)

[See repo JSON]