os-js / osjs-client

OS.js Client Module
https://manual.os-js.org/
Other
31 stars 32 forks source link

Add RTL styles #38

Open andersevenrud opened 5 years ago

andersevenrud commented 5 years ago

I had this in v2 and should be back-ported. Basically add an attribute to the root element that sets all text CSS styles to RTL.

andersevenrud commented 5 years ago

@BoFFire I've started work on this. I've implemented everything into the client, so now I just have to go over the theme(s) and make some corrections to margins etc :slightly_smiling_face:

os js

BoFFire commented 5 years ago

Oh nice work @andersevenrud \o/ We appreciate. Thank you !

andersevenrud commented 5 years ago

I've also updated @osjs/panels and @osjs/gui now, so this should now work pretty well. The only things missing are:

The language is detect by the first segment of a locale, ex: en_EN will be looked up as en in this table:

https://github.com/os-js/osjs-client/blob/master/src/config.js#L168

This will set an attribute in the DOM which the CSS handles.

os js2