4
4
// Windows Button
5
5
// --------------------------------------------------
6
6
7
- $button-wp-margin : 0.4rem 0.2rem !default ;
8
- $button-wp-padding : 0 1.1em !default ;
9
- $button-wp-font-size : 1.4rem !default ;
10
- $button-wp-height : 3.6rem !default ;
11
- $button-wp-border-width : 3px !default ;
12
-
13
- $button-wp-border-radius : 0 !default ;
14
-
15
- $button-wp-clear-hover-background-color : rgba (158 , 158 , 158 , 0.1 ) !default ;
16
- $button-wp-clear-active-background-color : rgba (158 , 158 , 158 , 0.2 ) !default ;
17
-
18
- $button-wp-color : map-get ($colors-wp , primary ) !default ;
19
- $button-wp-color-activated : color-shade ($button-wp-color ) !default ;
20
- $button-wp-text-color : color-inverse ($button-wp-color ) !default ;
21
- $button-wp-hover-opacity : 0.8 !default ;
22
-
23
- $button-wp-large-font-size : 2rem !default ;
24
- $button-wp-large-height : 2.8em !default ;
25
- $button-wp-large-padding : 1.0em !default ;
26
- $button-wp-small-font-size : 1.3rem !default ;
27
- $button-wp-small-height : 2.1em !default ;
28
- $button-wp-small-padding : 0.9em !default ;
29
- $button-wp-small-icon-font-size : 1.4em !default ;
30
-
7
+ $button-wp-margin : 0.4rem 0.2rem !default ;
8
+ $button-wp-padding : 0 1.1em !default ;
9
+ $button-wp-font-size : 1.4rem !default ;
10
+ $button-wp-height : 3.6rem !default ;
11
+ $button-wp-border-color : transparent !default ;
12
+ $button-wp-border-width : 3px !default ;
13
+ $button-wp-border-radius : 0 !default ;
14
+
15
+ // Regular button
16
+ $button-wp-background-color : map-get ($colors-wp , primary ) !default ;
17
+ $button-wp-background-color-activated : color-shade ($button-wp-background-color ) !default ;
18
+ $button-wp-text-color : color-inverse ($button-wp-background-color ) !default ;
19
+
20
+ // Clear button
21
+ $button-wp-clear-background-color-hover : rgba (158 , 158 , 158 , 0.1 ) !default ;
22
+ $button-wp-clear-background-color-activated : rgba (158 , 158 , 158 , 0.2 ) !default ;
23
+ $button-wp-clear-background-color : transparent !default ;
24
+ $button-wp-clear-text-color : $button-wp-background-color !default ;
25
+
26
+ // Outline button
27
+ $button-wp-outline-background-color : transparent !default ;
28
+ $button-wp-outline-background-color-activated : $button-wp-background-color !default ;
29
+ $button-wp-outline-background-color-opacity : 0.16 !default ;
30
+ $button-wp-outline-border-width : 1px !default ;
31
+ $button-wp-outline-border-color : $button-wp-background-color !default ;
32
+ $button-wp-outline-text-color : $button-wp-background-color !default ;
33
+
34
+ // Large button
35
+ $button-wp-large-font-size : 2rem !default ;
36
+ $button-wp-large-height : 2.8em !default ;
37
+ $button-wp-large-padding : 0 1.0em !default ;
38
+
39
+ // Small button
40
+ $button-wp-small-font-size : 1.3rem !default ;
41
+ $button-wp-small-height : 2.1em !default ;
42
+ $button-wp-small-padding : 0 0.9em !default ;
43
+ $button-wp-small-icon-font-size : 1.4em !default ;
44
+
45
+ // FAB button
46
+ $button-wp-fab-border-radius : 50% !default ;
31
47
32
48
// Windows Default Button
33
49
// --------------------------------------------------
@@ -37,20 +53,20 @@ $button-wp-small-icon-font-size: 1.4em !default;
37
53
padding : $button-wp-padding ;
38
54
height : $button-wp-height ;
39
55
border-radius : $button-wp-border-radius ;
40
- border : $button-wp-border-width solid transparent ;
56
+ border : $button-wp-border-width solid $button-wp-border-color ;
41
57
42
58
font-size : $button-wp-font-size ;
43
59
44
60
color : $button-wp-text-color ;
45
- background-color : $button-wp-color ;
61
+ background-color : $button-wp-background- color ;
46
62
47
63
& :hover:not (.disable-hover ) {
48
- border-color : $button-wp-color-activated ;
49
- background-color : $button-wp-color ;
64
+ border-color : $button-wp-background- color-activated ;
65
+ background-color : $button-wp-background- color ;
50
66
}
51
67
52
68
& .activated {
53
- background-color : $button-wp-color-activated ;
69
+ background-color : $button-wp-background- color-activated ;
54
70
}
55
71
}
56
72
@@ -74,7 +90,6 @@ $button-wp-small-icon-font-size: 1.4em !default;
74
90
}
75
91
76
92
& .activated {
77
- opacity : 1 ;
78
93
background-color : $bg-color-activated ;
79
94
}
80
95
}
@@ -86,13 +101,13 @@ $button-wp-small-icon-font-size: 1.4em !default;
86
101
// --------------------------------------------------
87
102
88
103
.button-large {
89
- padding : 0 $button-wp-large-padding ;
104
+ padding : $button-wp-large-padding ;
90
105
height : $button-wp-large-height ;
91
106
font-size : $button-wp-large-font-size ;
92
107
}
93
108
94
109
.button-small {
95
- padding : 0 $button-wp-small-padding ;
110
+ padding : $button-wp-small-padding ;
96
111
height : $button-wp-small-height ;
97
112
font-size : $button-wp-small-font-size ;
98
113
}
@@ -124,21 +139,18 @@ $button-wp-small-icon-font-size: 1.4em !default;
124
139
// --------------------------------------------------
125
140
126
141
.button-outline {
127
- border-width : 1 px ;
142
+ border-width : $button-wp-outline-border-width ;
128
143
border-style : solid ;
129
- border-color : $button-wp-color ;
130
- background-color : transparent ;
131
- color : $button-wp-color ;
132
- box-shadow : none ;
144
+ border-color : $button-wp-outline-border-color ;
145
+ background-color : $button-wp-outline-background-color ;
146
+ color : $button-wp-outline-text-color ;
133
147
134
148
& :hover:not (.disable-hover ) {
135
- background-color : $button-wp-clear-hover- background-color ;
149
+ background-color : $button-wp-clear-background-color-hover ;
136
150
}
137
151
138
152
& .activated {
139
- opacity : 1 ;
140
- box-shadow : none ;
141
- background-color : transparent ;
153
+ background-color : rgba ($button-wp-outline-background-color-activated , $button-wp-outline-background-color-opacity );
142
154
}
143
155
}
144
156
@@ -151,16 +163,15 @@ $button-wp-small-icon-font-size: 1.4em !default;
151
163
.button-outline-#{$color-name } {
152
164
$fg-color : color-shade ($color-value , 5% );
153
165
border-color : $fg-color ;
154
- background-color : transparent ;
155
166
color : $fg-color ;
156
167
157
168
& :hover:not (.disable-hover ) {
158
169
border-color : $fg-color ;
159
- background-color : $button-wp-clear-hover- background-color ;
170
+ background-color : $button-wp-clear-background-color-hover ;
160
171
}
161
172
162
173
& .activated {
163
- background-color : transparent ;
174
+ background-color : rgba ( $fg-color , $button-wp-outline-background-color-opacity ) ;
164
175
}
165
176
}
166
177
@@ -171,21 +182,15 @@ $button-wp-small-icon-font-size: 1.4em !default;
171
182
// --------------------------------------------------
172
183
173
184
.button-clear {
174
- border-color : transparent ;
175
- opacity : 1 ;
176
- box-shadow : none ;
177
- background-color : transparent ;
178
- color : $button-wp-color ;
185
+ background-color : $button-wp-clear-background-color ;
186
+ color : $button-wp-clear-text-color ;
179
187
180
188
& .activated {
181
- border-color : transparent ;
182
- background-color : $button-wp-clear-active-background-color ;
183
- box-shadow : none ;
189
+ background-color : $button-wp-clear-background-color-activated ;
184
190
}
185
191
186
192
& :hover:not (.disable-hover ) {
187
- border-color : transparent ;
188
- background-color : $button-wp-clear-hover-background-color ;
193
+ background-color : $button-wp-clear-background-color-hover ;
189
194
}
190
195
}
191
196
@@ -197,13 +202,10 @@ $button-wp-small-icon-font-size: 1.4em !default;
197
202
198
203
.button-clear-#{$color-name } {
199
204
$fg-color : $color-value ;
200
- border-color : transparent ;
201
- background-color : transparent ;
202
205
color : $fg-color ;
203
206
204
207
& .activated {
205
- background-color : $button-wp-clear-active-background-color ;
206
- box-shadow : none ;
208
+ background-color : $button-wp-clear-background-color-activated ;
207
209
}
208
210
209
211
& :hover:not (.disable-hover ) {
@@ -226,12 +228,7 @@ $button-wp-small-icon-font-size: 1.4em !default;
226
228
// --------------------------------------------------
227
229
228
230
.button-fab {
229
- border-radius : 50% ;
230
- border-color : transparent ;
231
-
232
- & :hover:not (.disable-hover ) {
233
- border-color : transparent ;
234
- }
231
+ border-radius : $button-wp-fab-border-radius ;
235
232
}
236
233
237
234
.button-icon-only {
0 commit comments