postcss-parent-selector
PostCSS plugin for adding a parent selector to all rules in a CSS file.
Example
Options:
selector: '.parent'
Input CSS:
Output CSS:
Options
The selector
option takes a string value that should be placed at the beginning of each selector, including selector lists separated by commas.
// classselector: '.parent-class' // idselector: '#parent-id' // elementselector: 'div.parent-class'
Usage
See PostCSS docs for examples for your environment.
Gulp.js ( with babel )
;;;;; gulp;