Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/semigradsky/css-creator
JS library for dynamically creating CSS on page.
https://github.com/semigradsky/css-creator
Last synced: 19 days ago
JSON representation
JS library for dynamically creating CSS on page.
- Host: GitHub
- URL: https://github.com/semigradsky/css-creator
- Owner: Semigradsky
- License: mit
- Created: 2014-03-16T08:22:07.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-03-31T06:37:00.000Z (over 10 years ago)
- Last Synced: 2024-10-09T21:35:19.055Z (30 days ago)
- Language: JavaScript
- Size: 172 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
css-creator
===========JS library for dynamically creating CSS on page.
## Installation
```
$ bower install css-creator
```## Supports
Internet Explorer 8+
## Usage
```
var globalStyles = new CSSCreator();
...
globalStyles.addRules([
['h2',
['color', 'red'],
['background-color', 'green', true] // 'true' for !important rules
],
['.myClass',
['background-color', 'yellow']
]
]);
...
globalStyles.addToPage();
```For more examples see example.html file.
# License
Code is released under [the MIT license](LICENSE).
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/Semigradsky/css-creator/trend.png)](https://bitdeli.com/free "Bitdeli Badge")