MohammadYounes / rtlcss

Framework for transforming Cascading Style Sheets (CSS) from Left-To-Right (LTR) to Right-To-Left (RTL)
https://rtlcss.com
MIT License
1.68k stars 129 forks source link

Remove non-override code #30

Closed narimanadam closed 9 years ago

narimanadam commented 9 years ago

Hello there,

Firstly, I would like to thank you for the great plugin it make things easier to build an rtl version of any css file.

Secondly, I would like to suggest a feature or a flag that only export the reflected rules/properties only into the output file instead exporting all the rules/properties into the output file. Some CMSs e.g Drupal uses the convention of style.css for all ltr languages and style-rtl.css for rtl, basically when viewing the drupal site as a ltr language the style.css only is called and if viewing the site using a rtl language the style.css get included first and the style-rtl.css get included second where the rtl file only overrides the properties that needs to be reflected to rtl. That option will benefit such systems without any need to remove the original style.css file from the rtl version.

It will be great if we could have an option to export only the overridden css properties, I am using gulp-rtlcss with less to compile my css.

Thank You.

MohammadYounes commented 9 years ago

This tool is intended to provide complete automation. The override approach will most probably require manual intervention. see Why make a complete RTL version ?

Duplicate #13 and #26

Thanks.