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sMy4xLDMuMSw0LjIsOGMxLjEsNC45LTAuNCw5LTAuNCw5Yy0wLjksMi42LTAuMiwzLDEuNSwwLjkNCgljMCwwLDQuMS00LjksMi44LTEwLjhDLTU1LjksNDEuOC02MS43LDM5LTYxLjcsMzl6Ii8+DQo8L3N2Zz4=');
}
Example
(http://codepen.io/MongooseDoom/full/NPbdVG/)
In an external stylesheet
#coffee-pot-external .liquid {
fill: #ea7373;
}
Using Media Queries with SVGs
Media Queries
A style tag can be added to an svg file with media queries included. These media queries refer to the size of the SVG viewport. With an img tag, (width: 30em) would apply styles to the SVG when the img is 30em wide.
Example
(http://tympanus.net/Tutorials/ResponsiveSVGs/index6.html)
Resources
Sara Soueidan (http://sarasoueidan.com/articles/index.html)