Spaces:
Configuration error
Configuration error
Download node_modules/autoprefixer/lib/hacks/flex-grow.js from CPISTO/TARSTHENEXT: direct link, hf CLI and curl.
- Browser
- Download file 595 Bytes
-
https://huggingface.co/spaces/CPISTO/TARSTHENEXT/resolve/main/node_modules/autoprefixer/lib/hacks/flex-grow.js
- Command line
-
hf download hf://spaces/CPISTO/TARSTHENEXT/node_modules/autoprefixer/lib/hacks/flex-grow.js
-
curl -L -o flex-grow.js https://huggingface.co/spaces/CPISTO/TARSTHENEXT/resolve/main/node_modules/autoprefixer/lib/hacks/flex-grow.js
595 Bytes
| let Declaration = require('../declaration') | |
| let flexSpec = require('./flex-spec') | |
| class Flex extends Declaration { | |
| /** | |
| * Return property name by final spec | |
| */ | |
| normalize() { | |
| return 'flex' | |
| } | |
| /** | |
| * Return flex property for 2009 and 2012 specs | |
| */ | |
| prefixed(prop, prefix) { | |
| let spec | |
| ;[spec, prefix] = flexSpec(prefix) | |
| if (spec === 2009) { | |
| return prefix + 'box-flex' | |
| } | |
| if (spec === 2012) { | |
| return prefix + 'flex-positive' | |
| } | |
| return super.prefixed(prop, prefix) | |
| } | |
| } | |
| Flex.names = ['flex-grow', 'flex-positive'] | |
| module.exports = Flex | |