postcss define function:适用于Sass类功能指令的PostCSS插件 源码

上传:knock5862 浏览: 13 推荐: 0 文件:ZIP 大小:8.08KB 上传时间:2021-02-17 20:28:19 版权申诉
PostCSS定义功能 插件来实现sass @function。 @define-function rem($val) { @return $val / 640 * 10 * 1rem; } @callFn . foo { /* Input example */ height : rem ( 640 ); } . foo { /* Output example */ height : 10 rem } 它仅支持基本的四种混合操作: + , - , * , / 。 如果您希望能够使用更多高级功能,则可以改用或帮助我进行改进。 期待您的并 用法 postcs
上传资源
用户评论