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.
26 lines
471 B
26 lines
471 B
2 years ago
|
'use strict'
|
||
|
|
||
|
let Container = require('./container')
|
||
|
|
||
|
class AtRule extends Container {
|
||
|
constructor(defaults) {
|
||
|
super(defaults)
|
||
|
this.type = 'atrule'
|
||
|
}
|
||
|
|
||
|
append(...children) {
|
||
|
if (!this.proxyOf.nodes) this.nodes = []
|
||
|
return super.append(...children)
|
||
|
}
|
||
|
|
||
|
prepend(...children) {
|
||
|
if (!this.proxyOf.nodes) this.nodes = []
|
||
|
return super.prepend(...children)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = AtRule
|
||
|
AtRule.default = AtRule
|
||
|
|
||
|
Container.registerAtRule(AtRule)
|