1.0.1 • Published 8 years ago
postcss-prefix-classless v1.0.1
postcss-prefix-classless
A PostCSS plugin to prefix/namespace selectors without classes. The whole reason this was created was to solve an issue where we wanted to import normalize.css but wanted it to only be relevant to a specific container.
Example input
button { /* ... */ }
a { /* ... */ }
Example output
.fancy-pancy-class button { /* ... */ }
.fancy-pancy-class a { /* ... */ }
Installation
npm install postcss-prefix-classless --save-dev
Usage
require('postcss-prefix-classless')('.fancy-pancy-class')
License
MIT