js stylesheet
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Demo
Source
README.md
package.yml
sheet.gif

README.md

Stylesheet

js stylesheet

Screenshot

How to use

#js
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