Postleaf / empower-theme

The default theme for Postleaf.
MIT License
5 stars 9 forks source link

RTL support #1

Open claviska opened 7 years ago

claviska commented 7 years ago

I want to make sure everyone can use Postleaf, so RTL language support is imperative.

I'd prefer to only have one default theme and a way to enable RTL. Perhaps by adding a special class on the <body> or by enabling a rtl.css stylesheet that overrides the necessary styles.

venatoria commented 7 years ago

@claviska How would the system know that the selected language requires RTL rendering? I suggest adding to the language file a field "rtl":true; Then based on that (admin and the theme, if supported, trigger the rtl style).

PS. didn't get to it yet.. Working on the Arabic translation now

claviska commented 7 years ago

Just add a directionality property. The default will be assumed to be ltr but for RTL is should look like this:

screen shot 2017-04-29 at 5 05 37 pm