Closed aloky closed 6 years ago
rtlcss rewrite css to css
And such an opportunity will appear?
Correct, it's called "rtlcss" not "rtlscss".
Normal use of this plugin is to compile LESS or SCSS to CSS first and then convert that into RTL CSS.
See the example in the README.
@jjlharrison usually we work on scss files, if we want to use RTLCSS value directives such as
.example {font-size:16px/*rtl:14px*/;}
@iJadou You need to make sure your comment directive is making it through to RTLCSS. With SCSS you can use a /*! */
comment to preserve the comment even when compiling in compressed mode. See https://sass-lang.com/documentation/syntax/comments:
If a comment begins with /*!, though, it will always be included in the CSS output.
@jjlharrison Thank you, it works. 🌹
I'm having the same issue and Sass is removing the comment if it's placed after the value.
This doesn't work even with a "!"
font-size: 14px/*!rtl:12px*/;
@DeoThemes see https://rtlcss.com/learn/usage-guide/value-directives/#Tip
@MohammadYounes Wow, thanks a lot, it worked :)
Me seem
rtlcss
cant readscss