postcss-env-function:在CSS中使用env()变量

时间:2021-05-05 12:16:20
【文件属性】:
文件名称:postcss-env-function:在CSS中使用env()变量
文件大小:16KB
文件格式:ZIP
更新时间:2021-05-05 12:16:20
JavaScript PostCSS环境变量 允许您遵循规范在CSS中使用env()变量。 @media ( max-width : env (--branding-small)) { body { padding : env (--branding-padding); } } /* becomes */ @media ( min-width : 600 px ) { body { padding : 20 px ; } } /* when the `importFrom` option is: { "environmentVariables": { "--branding-small": "600px", "--branding-padding": "20px" } } */ 用法 将添加到您的项目中: npm install postcss po
【文件预览】:
postcss-env-function-master
----.gitignore(137B)
----INSTALL.md(4KB)
----package.json(2KB)
----src()
--------index.js(1000B)
--------lib()
----LICENSE.md(7KB)
----.travis.yml(125B)
----CONTRIBUTING.md(2KB)
----.rollup.js(226B)
----CHANGELOG.md(575B)
----README.md(4KB)
----.tape.js(2KB)
----.gitattributes(19B)
----test()
--------import-variables.js(121B)
--------basic.css(134B)
--------import-variables.json(112B)
--------basic.import-is-empty.expect.css(134B)
--------basic.expect.css(134B)
--------basic.import.expect.css(90B)
----.editorconfig(226B)

网友评论