Reverses less from ltr to rtl
.reverse {
float: left;
margin-left: 5px;
margin: 1px 2px 3px 4px;
& when (@rtl) {
color: green;
}
}Becomes...
.reverse {
float: right;
margin-right: 5px;
margin: 1px 4px 3px 2px;
color: green;
}To use with lessc
$ npm install -g less-plugin-rtl
$ lessc --rtl file.less out.cssand to run in LTR mode..
$ lessc --rtl="dir=LTR" file.less out.css