JavaScript dynamic stylesheets
Basic usage.
varsheet=cssjs.newSheet();sheet.selector('div.test',{'float': 'left','border': '1px solid #000'}).selector('span',{'font-style': 'italic'});Selectors can be used later.
vardiv_css=sheet.selector('div.test');div_css.properties({'background': 'pink'});Remove selector properties.
sheet.remove('div.test');sheet.remove(div_css);Remove sheet.
sheet.remove();Copyright (c) 2012 Radosław Mejer, released under the MIT license.
- compatibility check
- unit testing
- ...?