Skip to content

creaven/stylesheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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