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)
background
background-image
background-position
background-position-x
border-bottom-left-radius
border-bottom-right-radius
border-color
border-left
border-left-color
border-left-style
border-left-width
border-radius
border-right
border-right-color
border-right-style
border-right-width
border-style
border-top-left-radius
border-top-right-radius
border-width
box-shadow
clear
cursor
direction
float
left
margin
margin-left
margin-right
padding
padding-left
padding-right
right
text-align
text-shadow
transform
transform-origin
transition
transition-property
Supported 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: