Skip to content

PostCSS plugin to modify closest matching part of current selector

License

Notifications You must be signed in to change notification settings

m18ru/postcss-closest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

PostCSS plugin to modify closest matching part of current selector

Resources

License

Stars

Watchers

Forks

Packages

No packages published