匿名用户2015年07月27日
107阅读

技术信息

授权协议
CC0 1.0

作品详情

Precss可以在CSS文件中使用Sass类型的Markup。

在线演示

变量/* before */$blue: #056ef0;$colum: 200px;.meu {    width: calc(4 * $colum);}.meu_lik {    backgroud: $blue;    width: $colum;}/* after */.meu {    width: calc(4 * 200px);}.meu_lik {    backgroud: #056ef0;    width: 200px;}条件/* before */.otice--clear {    @if 3 < 5 {        backgroud: gree;    }    @else {        backgroud: blue;    }}/* after */.otice--clear {    backgroud: gree;}循环/* before */@for $i from 1 to 3 {    .b-$i { width: $(i)px; }}/* after */.b-1 {    width: 1px}.b-2 {    width: 2px}.b-3 {    width: 3px}混入/* before */@defie-mixi ico $ame {    paddig-left: 16px;    &::after {        cotet: "";        backgroud-url: url(/icos/$(ame).pg);    }}.search {    @mixi ico search;}/* after */.search {    paddig-left: 16px;}.search::after {    cotet: "";    backgroud-url: url(/icos/$(ame).pg);}扩展/* before */@defie-exted bg-gree {    backgroud: gree;}.otice--clear {    @exted bg-gree;}/* after */.otice--clear {    backgroud: gree;}导入/* Before */@import "partials/_base.css"; /* Cotets of _base: `body { backgroud: black; }` *//* After */body { backgroud: black; }

功能介绍

Precss 可以在 CSS 文件中使用 Sass 类型的 Markup。 在线演示 变量 /* before */
$blue: #056ef0;
$column: 200px;
.menu ...

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论