Skip to content

PostCSS plugin that creates a combined LTR/RTL stylesheet

License

Notifications You must be signed in to change notification settings

rtsao/postcss-rtlcss-combined

Repository files navigation

PostCSS-RTLCSS-Combined Build Status

PostCSS plugin that creates a combined LTR/RTL stylesheet. Powered by rtlcss.

.foo {
    color: red;
    left: 10px;
    border-color: red blue green orange
}
html[dir] .foo {
    color: red;
    border-color: red blue green orange
}
html[dir="ltr"] .foo {
    left: 10px
}
html[dir="rtl"] .foo {
    border-color: red orange green blue;
    right: 10px
}

Usage

postcss([ require('postcss-rtlcss-combined') ])

See PostCSS docs for examples for your environment.

About

PostCSS plugin that creates a combined LTR/RTL stylesheet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published