Converts CSS stylesheets between left-to-right and right-to-left. This is a C# port for .Net of CSSJanus, which is written in python.
CssJanus cssJanus = new CssJanus();
string rtlCss = cssjanus.Transform( ltrCss );
Transform( css, swapLtrRtlInUrl, swapLeftRightInUrl )
css
(String) Stylesheet to transformswapLtrRtlInUrl
(Boolean) Swap 'ltr' and 'rtl' in URLsswapLeftRightInUrl
(Boolean) Swap 'left' and 'right' in URLs
Use a /* @noflip */
comment to protect a rule from being changed.
.rule1 {
/* Will be converted to margin-right */
margin-left: 1em;
}
/* @noflip */
.rule2 {
/* Will be preserved as margin-left */
margin-left: 1em;
}