You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
447 B
22 lines
447 B
4 years ago
|
// Generated by CoffeeScript 1.9.3
|
||
|
var DeclarationBlock, Rule, Selector;
|
||
|
|
||
|
Selector = require('./rule/Selector');
|
||
|
|
||
|
DeclarationBlock = require('./rule/DeclarationBlock');
|
||
|
|
||
|
module.exports = Rule = (function() {
|
||
|
function Rule(selector) {
|
||
|
this.selector = new Selector(selector);
|
||
|
this.styles = new DeclarationBlock;
|
||
|
}
|
||
|
|
||
|
Rule.prototype.setStyles = function(styles) {
|
||
|
this.styles.set(styles);
|
||
|
return this;
|
||
|
};
|
||
|
|
||
|
return Rule;
|
||
|
|
||
|
})();
|