rtl-css
Version:
Utility for converting CSS files using external rules
84 lines (83 loc) • 3.44 kB
JSON
{
"properties": {
"left": "right",
"right": "left",
"margin-left": "margin-right",
"margin-right": "margin-left",
"padding-left": "padding-right",
"padding-right": "padding-left",
"border-left": "border-right",
"border-right": "border-left",
"border-left-width": "border-right-width",
"border-right-width": "border-left-width",
"border-left-style": "border-right-style",
"border-right-style": "border-left-style",
"border-left-color": "border-right-color",
"border-right-color": "border-left-color",
"border-top-left-radius": "border-top-right-radius",
"border-top-right-radius": "border-top-left-radius",
"border-bottom-left-radius": "border-bottom-right-radius",
"border-bottom-right-radius": "border-bottom-left-radius"
},
"values": [
"direction: ltr = rtl",
"direction: rtl = ltr",
"float: left = right",
"float: right = left",
"clear: left = right",
"clear: right = left",
"text-align: left = right",
"text-align: right = left",
"margin: %1 %2 %3 %4 = %1 %4 %3 %2",
"padding: %1 %2 %3 %4 = %1 %4 %3 %2",
"border-width: %1 %2 %3 %4 = %1 %4 %3 %2",
"border-style: %1 %2 %3 %4 = %1 %4 %3 %2",
"border-color: %1 %2 %3 %4 = %1 %4 %3 %2",
"border-radius: %1 %2 = %2 %1",
"border-radius: %1 %2 %3 = %2 %1 %2 %3",
"border-radius: %1 %2 %3 %4 = %2 %1 %4 %3",
"box-shadow: %1 %2 = -%1 %2",
"box-shadow: %1 %2 inset = -%1 %2 inset",
"box-shadow: inset %1 %2 = inset -%1 %2",
"box-shadow: %1 %2 %3 = -%1 %2 %3",
"box-shadow: %1 %2 %3 inset = -%1 %2 %3 inset",
"box-shadow: inset %1 %2 %3 = inset -%1 %2 %3",
"box-shadow: %1 %2 %3 %4 = -%1 %2 %3 %4",
"box-shadow: %1 %2 %3 %4 inset = -%1 %2 %3 %4 inset",
"box-shadow: inset %1 %2 %3 %4 = inset -%1 %2 %3 %4",
"box-shadow: %1 %2 %3 %4 %5 = -%1 %2 %3 %4 %5",
"box-shadow: %1 %2 %3 %4 %5 inset = -%1 %2 %3 %4 %5 inset",
"box-shadow: inset %1 %2 %3 %4 %5 = inset -%1 %2 %3 %4 %5",
"-moz-box-shadow: %1 %2 = -%1 %2",
"-moz-box-shadow: %1 %2 inset = -%1 %2 inset",
"-moz-box-shadow: inset %1 %2 = inset -%1 %2",
"-moz-box-shadow: %1 %2 %3 = -%1 %2 %3",
"-moz-box-shadow: %1 %2 %3 inset = -%1 %2 %3 inset",
"-moz-box-shadow: inset %1 %2 %3 = inset -%1 %2 %3",
"-moz-box-shadow: %1 %2 %3 %4 = -%1 %2 %3 %4",
"-moz-box-shadow: %1 %2 %3 %4 inset = -%1 %2 %3 %4 inset",
"-moz-box-shadow: inset %1 %2 %3 %4 = inset -%1 %2 %3 %4",
"-moz-box-shadow: %1 %2 %3 %4 %5 = -%1 %2 %3 %4 %5",
"-moz-box-shadow: %1 %2 %3 %4 %5 inset = -%1 %2 %3 %4 %5 inset",
"-moz-box-shadow: inset %1 %2 %3 %4 %5 = inset -%1 %2 %3 %4 %5",
"-webkit-box-shadow: %1 %2 = -%1 %2",
"-webkit-box-shadow: %1 %2 inset = -%1 %2 inset",
"-webkit-box-shadow: inset %1 %2 = inset -%1 %2",
"-webkit-box-shadow: %1 %2 %3 = -%1 %2 %3",
"-webkit-box-shadow: %1 %2 %3 inset = -%1 %2 %3 inset",
"-webkit-box-shadow: inset %1 %2 %3 = inset -%1 %2 %3",
"-webkit-box-shadow: %1 %2 %3 %4 = -%1 %2 %3 %4",
"-webkit-box-shadow: %1 %2 %3 %4 inset = -%1 %2 %3 %4 inset",
"-webkit-box-shadow: inset %1 %2 %3 %4 = inset -%1 %2 %3 %4",
"-webkit-box-shadow: %1 %2 %3 %4 %5 = -%1 %2 %3 %4 %5",
"-webkit-box-shadow: %1 %2 %3 %4 %5 inset = -%1 %2 %3 %4 %5 inset",
"-webkit-box-shadow: inset %1 %2 %3 %4 %5 = inset -%1 %2 %3 %4 %5",
"text-shadow: %1 %2 = -%1 %2",
"text-shadow: %1 %2 %3 = -%1 %2 %3",
"text-shadow: %1 %2 %3 %4 = -%1 %2 %3 %4"
],
"options": {
"prefix": ["//"],
"suffix": ["!important", "\\9"]
}
}