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.
31 lines
1.2 KiB
31 lines
1.2 KiB
3 years ago
|
"use strict";
|
||
|
|
||
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
|
||
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||
|
|
||
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||
|
|
||
|
// Generated by CoffeeScript 2.5.1
|
||
|
var DeclarationBlock, Rule, Selector;
|
||
|
Selector = require('./rule/Selector');
|
||
|
DeclarationBlock = require('./rule/DeclarationBlock');
|
||
|
|
||
|
module.exports = Rule = /*#__PURE__*/function () {
|
||
|
function Rule(selector) {
|
||
|
_classCallCheck(this, Rule);
|
||
|
|
||
|
this.selector = new Selector(selector);
|
||
|
this.styles = new DeclarationBlock();
|
||
|
}
|
||
|
|
||
|
_createClass(Rule, [{
|
||
|
key: "setStyles",
|
||
|
value: function setStyles(styles) {
|
||
|
this.styles.set(styles);
|
||
|
return this;
|
||
|
}
|
||
|
}]);
|
||
|
|
||
|
return Rule;
|
||
|
}();
|