What would be the best way to implement RTL support in Sass?
I don't like to override css properties and I don't like to add multiple css files (e.g styles.css
+ styles-rtl.css
)
Can you suggest any better way?
Thanks.
Right-to-left makes supporting right-to-left languages in Sass super simple.
SASS follows strict indentation, SCSS has no strict indentation. SASS has a loose syntax with white space and no semicolons, the SCSS resembles more to CSS style and use of semicolons and braces are mandatory.
RTLCSS is a framework for converting Left-To-Right (LTR) Cascading Style Sheets(CSS) to Right-To-Left (RTL).
Handle it using sass mixins
rtl
and ltr
mixinsrtl
and ltr
both in a single output fileHandle it using dir
attr of html
tag
rtl
and ltr
in a single file)css
rulesHandle it using sass
vars
rtl
and ltr
both in a single output filesass
files are not very semantic like method #1If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With