Newer
Older
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
@import '../mixins';
@mixin button() {
background: white;
border: 1px solid $base-color;
border-radius: 0;
box-sizing: border-box;
color: $base-color;
cursor: pointer;
display: inline-block;
font-family: $font-family-base;
font-size: 14px;
line-height: 130%;
margin: 0.8em 0.6em 0.8em 0;
min-width: 100px;
overflow: visible;
padding: 5px 15px;
position: relative;
text-align: center;
text-decoration: none;
vertical-align: middle;
white-space: nowrap;
width: auto;
&:hover,
&:active {
background: $base-color;
color: white;
}
&.disabled,
&[disabled] {
box-shadow: none;
background: $light-gray-color-20;
cursor: default;
opacity: 0.65;
&:hover {
color: $base-color;
}
}
transition: none;
}
a.button,
button.button {
@include button();
}
.button-with-empty-icon {
white-space: nowrap;
&::before {
background-repeat: no-repeat;
content: " ";
float: left;
height: 16px;
margin: 1px 5px 0 -8px;
width: 16px;
}
}
@mixin button-with-icon($icon, $role, $roleOnHover) {
@extend .button-with-empty-icon;
&::before {
@include background-icon($icon, $role);
}
&:hover::before {
@include background-icon($icon, $roleOnHover);
}
&.disabled,
&[disabled] {
&:hover::before {
@include background-icon($icon, $role);
}
}
}
.button.accept {
@include button-with-icon(accept, clickable, info_alt);
}
.button.cancel {
@include button-with-icon(decline, clickable, info_alt);
}
.button.edit {
@include button-with-icon(edit, clickable, info_alt);
}
.button.move-up {
@include button-with-icon(arr_1up, clickable, info_alt);
}
.button.move-down {
@include button-with-icon(arr_1down, clickable, info_alt);
}
.button.add {
@include button-with-icon(add, clickable, info_alt);
}
.button.trash {
@include button-with-icon(trash, clickable, info_alt);
}
.button.download {
@include button-with-icon(download, clickable, info_alt);
}
.button.search {
@include button-with-icon(search, clickable, info_alt);
}
/* Grouped Buttons */
.button-group {
display: inline-block;
list-style: none;
margin: 0 0.8em 0 0;
padding: 0;
vertical-align: middle;
button,
.button {
float: left;
margin-left: 5px;
margin-right: 0;
}
}