mirror of
https://github.com/hanzoai/postcss.git
synced 2026-09-24 17:01:56 +00:00
23 lines
499 B
JavaScript
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'));
|
|
}
|
|
}
|