This repository has been archived by the owner on Mar 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
/
_buttons.scss
125 lines (103 loc) · 2.14 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
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
125
@charset 'UTF-8';
button {
&.style--none {
background: transparent;
border: none;
padding: 0;
&:focus {
outline: 0;
text-decoration: none;
}
&.btn {
padding: 6px 12px;
}
&.btn--block {
text-align: left;
width: 100%;
}
&:hover,
&:active {
text-decoration: none;
}
}
}
.btn {
@include single-transition(all, .15s, ease);
@include border-radius($border-rad);
&.btn-primary {
background: $primary-color;
border-color: transparent;
&:hover,
&:focus,
&:active {
background: $primary-color--hover;
}
}
&.btn-danger {
color: $white;
.app__body & {
color: $white;
&:hover,
&:focus,
&:active {
color: $white;
}
}
&:hover,
&:focus,
&:active {
color: $white;
}
}
&.btn-transparent {
background: transparent;
border: none;
padding: 7px 12px;
}
&.btn-inactive {
background: $light-gray;
border-color: transparent;
color: $white;
}
.fa {
margin-right: 3px;
&.margin-right {
margin-right: 6px;
}
&.margin-left {
margin-left: 6px;
}
}
&.btn-link {
&:active,
&:focus {
outline: none;
}
}
}
%btn-transition {
@include single-transition(all, .15s, ease);
}
.btn-icon {
padding: 0;
background: transparent;
border: none;
border-radius: 4px;
width: 3.2rem;
height: 3.2rem;
font-size: 1.6rem;
fill: v(center-channel-color-56);
color: v(center-channel-color-56);
&:hover {
background: v(center-channel-color-08);
fill: v(center-channel-color-72);
color: v(center-channel-color-72);
}
&:active,
&--active,
&--active:hover {
background: v(button-bg-08);
fill: v(button-bg);
color: v(button-bg);
}
}