Precss

码农软件 · 软件分类 · CSS框架 · 2019-04-20 22:12:36

软件介绍

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

在线演示

变量

/* before */
$blue: #056ef0;
$column: 200px;
.menu {
    width: calc(4 * $column);
}
.menu_link {
    background: $blue;
    width: $column;
}
/* after */
.menu {
    width: calc(4 * 200px);
}
.menu_link {
    background: #056ef0;
    width: 200px;
}

条件

/* before */
.notice--clear {
    @if 3 < 5 {
        background: green;
    }
    @else {
        background: blue;
    }
}
/* after */
.notice--clear {
    background: green;
}

循环

/* 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 */
@define-mixin icon $name {
    padding-left: 16px;
    &::after {
        content: "";
        background-url: url(/icons/$(name).png);
    }
}
.search {
    @mixin icon search;
}
/* after */
.search {
    padding-left: 16px;
}
.search::after {
    content: "";
    background-url: url(/icons/$(name).png);
}

扩展

/* before */
@define-extend bg-green {
    background: green;
}
.notice--clear {
    @extend bg-green;
}
/* after */
.notice--clear {
    background: green;
}

导入

/* Before */
@import "partials/_base.css"; /* Contents of _base: `body { background: black; }` */
/* After */
body { background: black; }

本文地址:https://codercto.com/soft/d/4029.html

软件测试

软件测试

乔根森 / 韩柯 / 机械工业出版社 / 2003-12-1 / 35.00元

《软件测试》(原书第2版)全面地介绍了软件测试的基础知识和方法。通过问题、图表和案例研究,对软件测试数学问题和技术进行了深入的研究,并在例子中以更加通用的伪代码取代了过时的Pascal代码,从而使内容独立于具体的程序设计语言。《软件测试》(原书第2版)还介绍了面向对象测试的内容,并完善了GUI测试内容。一起来看看 《软件测试》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

MD5 加密
MD5 加密

MD5 加密工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试