postcss-alter-selector
v0.0.2
Published
PostCSS plugin Alter selector for each rule
Downloads
5
Maintainers
Readme
PostCSS Alter Selector
PostCSS plugin Alter selector for each rule.
.foo {
/* Input example */
}
.foo, .bar {
/* Input example */
}
.foo .bar .baz {
/* Input example */
}
html .foo {
/* Input example */
}
.selector .foo {
/* Output example */
}
.selector .foo, .selector .bar {
/* Output example */
}
.foo .bar .baz {
/* Output example */
/* More than 1 selectors are ignored */
}
.selector .foo {
/* Output example */
/* html tag is stripped out */
}
Usage
postcss([ require('postcss-alter-selector')( { selector: '.selector ' } ) ])
See PostCSS docs for examples for your environment.