Download node_modules/postcss/lib/rule.js from Snapkitty/sovereign-apollo: direct link, hf CLI and curl.
- Browser
- Download file 596 Bytes
-
https://huggingface.co/Snapkitty/sovereign-apollo/resolve/main/node_modules/postcss/lib/rule.js
- Command line
-
hf download hf://Snapkitty/sovereign-apollo/node_modules/postcss/lib/rule.js
-
curl -L -o rule.js https://huggingface.co/Snapkitty/sovereign-apollo/resolve/main/node_modules/postcss/lib/rule.js
596 Bytes
| let Container = require('./container') | |
| let list = require('./list') | |
| class Rule extends Container { | |
| 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) | |
| } | |
| constructor(defaults) { | |
| super(defaults) | |
| this.type = 'rule' | |
| if (!this.nodes) this.nodes = [] | |
| } | |
| } | |
| module.exports = Rule | |
| Rule.default = Rule | |
| Container.registerRule(Rule) | |