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:
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
detect which direction the browser is using, and load either the regular main.scss or main-rtl.scss.
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:main-rtl.scss
, for example. This would include adding a compile step, something along the lines ofnode ./bin/generate-rtl.js > www/main-rtl.scss
@k88hudson is this right?