Skip to content

Commit 0fed000

Browse files
committed
update read
1 parent 0921661 commit 0fed000

File tree

1 file changed

+45
-2
lines changed

1 file changed

+45
-2
lines changed

README.md

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,54 @@
33
[![Build Status][travis-img]][travis]
44
[![Version][version]](https://github.com/ElemeFE/postcss-salad/blob/master/CHANGELOG.md)
55

6-
> Postcss-salad 是一个能够帮助你更加写出更加简洁、优雅的CSS的样式解决方案。<br>
7-
> 不仅提供了下一代css语法支持,还提供了基础的sass的语法、属性顺时针简写、rem填充、基础图形绘制、可定制样式的inline-svg以及bem类名自动转化等实用的功能。
6+
> Postcss-salad 是一个基于 <a href="http://postcss.org/">PostCSS</a> 的 CSS 解决方案,它提供了一系列快捷的 at-rule 和默认语法声明来帮助你快速地搭建项目样式与类库,它只在调用时才输出代码,而不是直接提供 CSS 类库。<br>
7+
> 沙拉不仅提供了下一代css语法支持,还提供了基础的sass的语法、属性顺时针简写、rem填充、基础图形绘制、可定制样式的inline-svg以及bem类名自动转化等实用的功能。
88
99
### [Documents]
1010

11+
## Demo
12+
13+
**input:**
14+
15+
```css
16+
/* short property */
17+
.banner {
18+
position: fixed 0 0 *;
19+
}
20+
/* utils */
21+
.box {
22+
@utils-ellipsis 3;
23+
}
24+
/* shape */
25+
.circle-a {
26+
circle: 50px #ff0;
27+
}
28+
```
29+
30+
**output:**
31+
32+
```css
33+
.ellipsis2 {
34+
overflow: hidden;
35+
text-overflow: ellipsis;
36+
display: -webkit-box;
37+
-webkit-box-orient: vertical;
38+
-webkit-line-clamp: 3;
39+
}
40+
.banner {
41+
position: fixed;
42+
top: 0;
43+
right: 0;
44+
left: 0;
45+
}
46+
.circle-a {
47+
width: 50px;
48+
height: 50px;
49+
border-radius: 50%;
50+
background-color: #ff0;
51+
}
52+
```
53+
1154
## Usage
1255

1356
- [Node](#node)

0 commit comments

Comments
 (0)