mozilla / remote-newtab

Remotely-hosted New Tab Page
https://mozilla.github.io/remote-newtab/src/
Mozilla Public License 2.0
15 stars 7 forks source link

RTL Strategy #189

Closed sarracini closed 8 years ago

sarracini commented 8 years ago

Since -moz-dir isn't ideal for the rtl stuff, find a new strategy for dealing with rtl. https://www.npmjs.com/package/cssjanus was suggested. From my understanding this is what we would need:

  1. create a generate-rtl.js script which would read in the main css files that need to be rtl'ed, use cssjanus to convert the appropriate rtl styles, and generate a new file called main-rtl.scss, for example. This would include adding a compile step, something along the lines of node ./bin/generate-rtl.js > www/main-rtl.scss
  2. detect which direction the browser is using, and load either the regular main.scss or main-rtl.scss.

@k88hudson is this right?