Prefixes.scss 介绍
Prefixes.scss 是一个 Sass/Scss 的 CSS(3) 前缀处理Mixins
library,免安装,直接import,可自定义需要的前缀。
Scss:
@import "prefixes"; .example { @include clearfix(); @include border-radius(4px); @include box-shadow(0 1px 5px rgba(0, 0, 0, .5)); }
Sass:
@import "prefixes" .example @include clearfix() @include border-radius(4px) @include box-shadow(0 1px 5px rgba(0, 0, 0, .5))
CSS:
.example { -webkit-border-radius: 4px; -moz-border-radius: 4px; -ms-border-radius: 4px; -o-border-radius: 4px; border-radius: 4px; -webkit-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5); -moz-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5); -ms-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5); -o-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5); box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5); } .example:before, .example:after { content: " "; display: table; } .example:after { clear: both; }
Prefixes.scss 官网
https://github.com/pandao/prefixes.scss
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。