File tree Expand file tree Collapse file tree 1 file changed +45
-2
lines changed Expand file tree Collapse file tree 1 file changed +45
-2
lines changed Original file line number Diff line number Diff line change 3
3
[ ![ Build Status] [ travis-img ]] [ travis ]
4
4
[ ![ Version] [ version ]] ( https://github.com/ElemeFE/postcss-salad/blob/master/CHANGELOG.md )
5
5
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类名自动转化等实用的功能。
8
8
9
9
### [ Documents]
10
10
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
+
11
54
## Usage
12
55
13
56
- [ Node] ( #node )
You can’t perform that action at this time.
0 commit comments