Kikobeats / uno-zen

Minimalist and Elegant theme for Ghost. Demo @ https://kikobeats.com
MIT License
872 stars 282 forks source link

[Feature] RTL Support #58

Open homaily opened 9 years ago

homaily commented 9 years ago

Hi there.

RTL support is essential for bloggers how writes in Arabic, Farsi and Hebrew since these languages are written from Right to Left.

I can add a task to support RTL. The task could go in two directions:

  1. Add an additional CSS file to do the RTL stuff. And anyone how wants RTL blog he can add this additional file to the head tag.
  2. Add a task to flip the generated CSS file and generate a RTL CSS file. And anyone who wants RTL blog should edit the USS file URL in the head tag to call the RTL version.

I think the second options is better and easier to maintain. Twitter team have released a library to flip the CSS and it does support ignore \ replace declarations:

https://github.com/twitter/css-flip

Kikobeats commented 9 years ago

If the RTL CSS need to be generated based in the current theme CSS, 2 is better.

Do you think that generic 1 is possible? or RTL depend of each user case CSS?