Stylesheet 0.9

js stylesheet



Details

Author
Anton Samoylov
Current version
0.9
GitHub
creaven/stylesheet
Downloads
2159
Category
Native
Tags
Report
GitHub Issues

Releases


Dependencies

  • _self_/_current_: core:1.2.4:*

How to use

var sheet = new Stylesheet();

sheet.addRules({
    'div.test': {
        width: 100,
        height: 100,
        background: 'red'
    },
    'html, body': {
        width: '100%',
        height: '100%'
    },
    '*': {
        margin: 0,
        padding: 0
    }
});

methods: addRule, addRules, getRule, getRules, removeRule


Discuss

A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.

Found a bug in this plugin? Please report it this repository's Github Issues.

blog comments powered by Disqus