worked on GarageApp stuff
This commit is contained in:
parent
60aaf17af3
commit
eb606572b0
51919 changed files with 2168177 additions and 18 deletions
27
node_modules/postcss/lib/rule.js
generated
vendored
Normal file
27
node_modules/postcss/lib/rule.js
generated
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
'use strict'
|
||||
|
||||
let Container = require('./container')
|
||||
let list = require('./list')
|
||||
|
||||
class Rule extends Container {
|
||||
constructor(defaults) {
|
||||
super(defaults)
|
||||
this.type = 'rule'
|
||||
if (!this.nodes) this.nodes = []
|
||||
}
|
||||
|
||||
get selectors() {
|
||||
return list.comma(this.selector)
|
||||
}
|
||||
|
||||
set selectors(values) {
|
||||
let match = this.selector ? this.selector.match(/,\s*/) : null
|
||||
let sep = match ? match[0] : ',' + this.raw('between', 'beforeOpen')
|
||||
this.selector = values.join(sep)
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Rule
|
||||
Rule.default = Rule
|
||||
|
||||
Container.registerRule(Rule)
|
||||
Loading…
Add table
Add a link
Reference in a new issue