stylesheet-helpers
Utilities to make it easier to work with CSS stylesheets.
Last updated 4 years ago by bebraw .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install stylesheet-helpers 
SYNC missed versions from official npm registry.

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 given className and properties.
  • findExistingRule(document: <Document>, styleSheet: <StyleSheet>, className: <string>) -> <CssRule|null> - Returns a rule from the given styleSheet based on the given className if it's found.

License

MIT.

Current Tags

  • 0.2.2                                ...           latest (4 years ago)

6 Versions

  • 0.2.2                                ...           4 years ago
  • 0.2.1                                ...           4 years ago
  • 0.2.0                                ...           4 years ago
  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 6
This Week 6
This Month 6
Last Day 0
Last Week 0
Last Month 2
Dependencies (0)
None
Dev Dependencies (3)

Copyright 2014 - 2017 © taobao.org |