jjlharrison / gulp-rtlcss

Gulp plugin that uses RTLCSS to convert LTR CSS to RTL.
MIT License
36 stars 7 forks source link

"Drupal" flag to create RTL-only file #5

Closed damienmckenna closed 8 years ago

damienmckenna commented 8 years ago

There's functionality in Drupal's CSS system (https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_add_css/7) that will automatically load an example-rtl.css file for every example.css file if the current page's language is set to RTL. Unlike rtlcss's current assumption that only one of the files will be load, Drupal will load both files, the idea being that the RTL file overrides the LTR file. Would you be willing to entertain an option for this, so that the RTL file would only contain lines that were different from the LTR file?

jjlharrison commented 8 years ago

This feature would need to be implemented by MohammadYounes/rtlcss, not gulp-rtlcss.

Such support has been requested before in MohammadYounes/rtlcss#30, but was not accepted.

See Why make a complete RTL version?.

damienmckenna commented 8 years ago

Thanks for the response!