Files
postcss/lib/rule.js
T
2015-04-03 13:57:15 +03:00

23 lines
499 B
JavaScript

import Container from './container';
import list from './list';
export default class Rule extends Container {
constructor(defaults) {
super(defaults);
if ( !this.nodes ) this.nodes = [];
this.type = 'rule';
}
get selectors() {
return list.comma(this.selector);
}
set selectors(values) {
this.selector = values.join(', ');
}
stringify(builder) {
this.stringifyBlock(builder, this.stringifyRaw('selector'));
}
}