Showing
4 changed files
with
44 additions
and
6 deletions
1 | <h1>公有样式示例</h1> | 1 | <h1>公有样式示例</h1> |
2 | 2 | ||
3 | <h2>color</h2> | 3 | <h2>color</h2> |
4 | -统一色号(css 中使用统一变量) | 4 | +统一色号(css 中使用统一变量)<br> |
5 | 5 | ||
6 | -主色调: | ||
7 | -底色: | ||
8 | -红色: | 6 | +黑色: <span class="example color black"></span> $black;<br> |
7 | +白色: <span class="example color white"></span> $white;<br> | ||
8 | +红色: <span class="example color red"></span> $red;<br> | ||
9 | +绿色: <span class="example color green"></span> $green;<br> | ||
10 | +灰色: <span class="example color grey"></span> $grey;<br> | ||
11 | +蓝色: <span class="example color blue"></span> $blue;<br> | ||
9 | 12 | ||
10 | <h2>icon</h2> | 13 | <h2>icon</h2> |
11 | iconfont 新建项目,使用 class 控制图标样式,不要用 unicode | 14 | iconfont 新建项目,使用 class 控制图标样式,不要用 unicode |
@@ -31,8 +34,6 @@ iconfont 新建项目,使用 class 控制图标样式,不要用 unicode | @@ -31,8 +34,6 @@ iconfont 新建项目,使用 class 控制图标样式,不要用 unicode | ||
31 | 支持 一个按钮,两个按钮,多个按钮 | 34 | 支持 一个按钮,两个按钮,多个按钮 |
32 | 每个按钮支持自定义事件 | 35 | 每个按钮支持自定义事件 |
33 | 36 | ||
34 | -<h2>Handlebars Template</h2> | ||
35 | -<p>Hello,<span id="hbs-placeholder"></span>!</p> | ||
36 | 37 | ||
37 | <h2>Vue 示例</h2> | 38 | <h2>Vue 示例</h2> |
38 | 39 |
public/scss/example/_index.css
0 → 100644
1 | +.example.color { | ||
2 | + display: inline-block; | ||
3 | + width: 18px; | ||
4 | + height: 18px; | ||
5 | + border: 1px solid #999; | ||
6 | + | ||
7 | + &.black { | ||
8 | + background: $black; | ||
9 | + } | ||
10 | + | ||
11 | + &.white { | ||
12 | + background: $white; | ||
13 | + } | ||
14 | + | ||
15 | + &.red { | ||
16 | + background: $red; | ||
17 | + } | ||
18 | + | ||
19 | + &.green { | ||
20 | + background: $green; | ||
21 | + } | ||
22 | + | ||
23 | + &.grey { | ||
24 | + background: $grey; | ||
25 | + } | ||
26 | + | ||
27 | + &.blue { | ||
28 | + background: $blue; | ||
29 | + } | ||
30 | +} |
-
Please register or login to post a comment