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

Java算法

Java算法

塞奇威克 / 赵文进 / 清华大学出版社 / 2004-06-01 / 59.0

《Java算法》用Java语言全面实现了当今最重要的计算机算法,并用大量图表和数学公式对算法进行了详尽的描述和分析。全书共分3卷,本书是其中的第1卷(第1至第4部分)。内容包括基本概念(第1部分)、数据结构(第2部分)、排序算法(第3部分)和查找算法(第4部分)。本书概念清楚,内容翔实,新颖,由浅入深地描述了算法。本书可作为高等院校计算机相关专业本科生和研究生的教材和补充读物,也可作为Java爱好一起来看看 《Java算法》 这本书的介绍吧!

SHA 加密
SHA 加密

SHA 加密工具

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

html转js在线工具
html转js在线工具

html转js在线工具