-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathButtons.scss
73 lines (62 loc) · 1.05 KB
/
Buttons.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
@import 'ButtonColors';
@mixin text($color) {
background-color: $color;
border: 1px solid darken($color, 10%);
}
@mixin icon($color) {
border-right-width: 1px;
border-right-color: darken($color, 10%);
background-color: lighten($color, 4%);
}
.wrapper {
flex: 1;
flex-direction: row;
flex-wrap: wrap;
}
.color {
width: 6px;
height: 6px;
}
.buttonWrapper {
height: 32px;
margin-bottom: 12px;
margin-right: 20px;
}
.button {
padding: 0px 18px 0px 0px;
width: 136px;
height: 32px;
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.3);
flex: 1;
}
.innerWrapper {
flex: 1;
flex-direction: row;
}
.buttonText {
color: #fff;
font-size: 16px;
line-height: 28px;
padding-left: 10px;
height: 32px;
}
.icon {
height: 30px;
width: 32px;
padding: 7px 8px;
margin-right: 5px;
}
.iconText {
font-size: 16px;
color: #fff;
}
@each $color in $colors-map {
.button#{nth($color, 1)} {
@extend .button;
@include text(nth($color, 2));
}
.icon#{nth($color, 1)} {
@extend .icon;
@include icon(nth($color, 2));
}
}