0.2.2 • Published 9 years ago
stylesheet-helpers v0.2.2
stylesheet-helpers - Utilities to make it easier to work with CSS stylesheets.
create([document]) -> { styleSheetElement, styleSheet }- Creates and returns a new stylesheet.updateProperties(document: <Document>, styleSheet: <StyleSheet>, className: <string>, properties: <field: value>)- Updates the properties of the given styleSheet based on the givenclassNameandproperties.findExistingRule(document: <Document>, styleSheet: <StyleSheet>, className: <string>) -> <CssRule|null>- Returns a rule from the givenstyleSheetbased on the givenclassNameif it's found.
License
MIT.