rework-svg
svg() rework CSS preprocessor plugin
The plugin inlines SVG files into CSS as data-URIs while making it possible to style the contents using CSS as it would be possible with SVG files embedded via <img>
.
Usage
var svg = ; var css = ;css;
/* SVG file inlined */ /* SVG file inlined - all paths filled red */ });} /* SVG file inlined - the fist path filled green - the second path filled red */ });}
Selectors
Properties
Any property/value pair specified in the sub-stylesheet passed to svg()
modifies/adds an attribute to the selected elements.