npm.io
1.0.0 • Published 10 years ago

postcss-closest

Licence
MIT
Version
1.0.0
Deps
2
Vulns
7
Weekly
0

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' ) ] )

Keywords