Spaces:
Running
Running
Download node_modules/postcss/lib/rule.js from Chunte/HFBA: direct link, hf CLI and curl.
- Browser
- Download file 569 Bytes
-
https://huggingface.co/spaces/Chunte/HFBA/resolve/refs%2Fpr%2F1/node_modules/postcss/lib/rule.js
- Command line
-
hf download hf://spaces/Chunte/HFBA@refs/pr/1/node_modules/postcss/lib/rule.js
-
curl -L -o rule.js https://huggingface.co/spaces/Chunte/HFBA/resolve/refs%2Fpr%2F1/node_modules/postcss/lib/rule.js
569 Bytes
| 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) | |