postcss-closest
v1.0.0
Published
PostCSS plugin to modify closest matching part of current selector
Downloads
30
Maintainers
Readme
postcss-closest
PostCSS plugin to modify closest matching part of current selector
/* Input example */
html > body p:closest(body with .index, html with .js)
{
...
}
/* Output example */
html.js > body.index p
{
...
}
Install
npm install --save-dev postcss-closest
Usage
postcss( [ require( 'postcss-closest' ) ] )