Showing
3 changed files
with
43 additions
and
1 deletions
@@ -26,7 +26,17 @@ iconfont 新建项目,使用 class 控制图标样式,不要用 unicode<br> | @@ -26,7 +26,17 @@ iconfont 新建项目,使用 class 控制图标样式,不要用 unicode<br> | ||
26 | 26 | ||
27 | 27 | ||
28 | <h2>button</h2> | 28 | <h2>button</h2> |
29 | -三种尺寸,圆角直角,实心空心,选中未选中 | 29 | +三种尺寸,圆角直角,实心空心<br> |
30 | + | ||
31 | +<button class="button">空心</button> | ||
32 | +<button class="button button-solid">实心</button> | ||
33 | +<button class="button button-round">圆角</button> | ||
34 | +<button class="button button-round button-solid">圆角,实心</button> | ||
35 | +<hr> | ||
36 | +<button class="button button-large">大</button> | ||
37 | +<button class="button button-small">小</button> | ||
38 | +<hr> | ||
39 | +<button class="button button-large button-round button-solid">大,圆角,实心</button> | ||
30 | 40 | ||
31 | <h2>badge</h2> | 41 | <h2>badge</h2> |
32 | 一个数字的时候是圆形,数字长的时候圆角长方形,类似跑道 | 42 | 一个数字的时候是圆形,数字长的时候圆角长方形,类似跑道 |
public/scss/common/_button.css
0 → 100644
1 | +.button { | ||
2 | + display: inline-block; | ||
3 | + min-width: 100px; | ||
4 | + height: 40px; | ||
5 | + border: 1px solid $black; | ||
6 | + background: $white; | ||
7 | + color: $black; | ||
8 | + font-size: 20px; | ||
9 | + | ||
10 | + &.button-solid { | ||
11 | + background: $black; | ||
12 | + color: $white; | ||
13 | + } | ||
14 | + | ||
15 | + &.button-round { | ||
16 | + border-radius: 4px; | ||
17 | + } | ||
18 | + | ||
19 | + &.button-small { | ||
20 | + min-width: 50px; | ||
21 | + } | ||
22 | + | ||
23 | + &.button-large { | ||
24 | + min-width: 300px; | ||
25 | + } | ||
26 | + | ||
27 | + &:disabled { | ||
28 | + border: 1px solid $grey; | ||
29 | + color: $grey; | ||
30 | + } | ||
31 | +} |
-
Please register or login to post a comment