css-scope
v1.0.0
Published
Scope css-input to a given class
Downloads
1
Readme
CSS-scope
This module puts given css input in scope of a class
/* module-a.css */
p {
color: white;
}
var scopePrefix = '.module-a';
var cssContent = fs.readFile('module-a.css', ...);
var scopedCss = scope(cssContent, scopePrefix, options);
Results in
.module-a p {
color: white;
}