RTLCSS is a framework for converting LTR CSS to RTL.
RTLCSS is a framework for converting LTR CSS to RTL. The framework supports a wide-range of CSS properties and processing directives. Its is highly extensible as you can inject your own processing directives.
Supported CSS Properties (a-z)
backgroundbackground-imagebackground-positionbackground-position-xborder-bottom-left-radiusborder-bottom-right-radiusborder-colorborder-leftborder-left-colorborder-left-styleborder-left-widthborder-radiusborder-rightborder-right-colorborder-right-styleborder-right-widthborder-styleborder-top-left-radiusborder-top-right-radiusborder-widthbox-shadowclearcursordirectionfloatleftmarginmargin-leftmargin-rightpaddingpadding-leftpadding-rightrighttext-aligntext-shadowtransformtransform-origintransitiontransition-propertySupported Processing Directives
When RTLing a CSS document, there are cases where its impossible to know if the property value should be mirrored or not! If the rule selector need to be changed! Or a none directional property have to be updated. In such cases, RTLCSS provides processing directives in the form of CSS comments
- Rule Level:
ignore,rename. - Declaration Level:
ignore,replace,append,prepend,insert.
- Rule Level:
Fore more details view the library documentation on github.
Resources: