mix-buttons 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/doc/buttons.css ADDED
@@ -0,0 +1,331 @@
1
+ .button, .button-no-round, .button-round, .button-rounded, .btn-ghost, .btn-ghost-primary, .btn-ghost-blue, .btn-ghost-upper, .btn-ghost-lower, .btn-blue, .btn-dark-blue, .btn-violet, .btn-crimson, .btn-aqua, .btn-coral, .btn-gold, .btn-green, .btn-lime-green {
2
+ letter-spacing: .05em;
3
+ text-align: center;
4
+ text-decoration: none;
5
+ white-space: nowrap;
6
+ cursor: pointer;
7
+ display: inline-block;
8
+ margin-top: 5px;
9
+ margin-bottom: 5px;
10
+ height: 3em;
11
+ line-height: 3em;
12
+ padding: 0 2em;
13
+ font-size: 1rem;
14
+ -webkit-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
15
+ -moz-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
16
+ -ms-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
17
+ transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
18
+ -webkit-appearance: none;
19
+ -moz-appearance: none;
20
+ -ms-appearance: none;
21
+ appearance: none;
22
+ }
23
+ .button, .button-no-round, .button-round, .button-rounded, .btn-ghost, .btn-ghost-primary, .btn-ghost-blue, .btn-ghost-upper, .btn-ghost-lower, .btn-blue, .btn-dark-blue, .btn-violet, .btn-crimson, .btn-aqua, .btn-coral, .btn-gold, .btn-green, .btn-lime-green, .button:hover, .button-no-round:hover, .button-round:hover, .button-rounded:hover, .btn-ghost:hover, .btn-ghost-primary:hover, .btn-ghost-blue:hover, .btn-ghost-upper:hover, .btn-ghost-lower:hover, .btn-blue:hover, .btn-dark-blue:hover, .btn-violet:hover, .btn-crimson:hover, .btn-aqua:hover, .btn-coral:hover, .btn-gold:hover, .btn-green:hover, .btn-lime-green:hover, .button:focus, .button-no-round:focus, .button-round:focus, .button-rounded:focus, .btn-ghost:focus, .btn-ghost-primary:focus, .btn-ghost-blue:focus, .btn-ghost-upper:focus, .btn-ghost-lower:focus, .btn-blue:focus, .btn-dark-blue:focus, .btn-violet:focus, .btn-crimson:focus, .btn-aqua:focus, .btn-coral:focus, .btn-gold:focus, .btn-green:focus, .btn-lime-green:focus, .button:active, .button-no-round:active, .button-round:active, .button-rounded:active, .btn-ghost:active, .btn-ghost-primary:active, .btn-ghost-blue:active, .btn-ghost-upper:active, .btn-ghost-lower:active, .btn-blue:active, .btn-dark-blue:active, .btn-violet:active, .btn-crimson:active, .btn-aqua:active, .btn-coral:active, .btn-gold:active, .btn-green:active, .btn-lime-green:active {
24
+ outline: none;
25
+ }
26
+ .button:active, .button-no-round:active, .button-round:active, .button-rounded:active, .btn-ghost:active, .btn-ghost-primary:active, .btn-ghost-blue:active, .btn-ghost-upper:active, .btn-ghost-lower:active, .btn-blue:active, .btn-dark-blue:active, .btn-violet:active, .btn-crimson:active, .btn-aqua:active, .btn-coral:active, .btn-gold:active, .btn-green:active, .btn-lime-green:active {
27
+ position: relative;
28
+ top: 2px;
29
+ }
30
+
31
+ .button {
32
+ font-weight: 600;
33
+ text-transform: capitalize;
34
+ -webkit-border-radius: 2px;
35
+ -moz-border-radius: 2px;
36
+ border-radius: 2px;
37
+ color: #fff;
38
+ background-color: #8cd1a8;
39
+ border: 1px solid #7aca9a;
40
+ }
41
+ .button:hover, .button:focus {
42
+ color: #f2f2f2;
43
+ border-color: #64c18a;
44
+ background-color: #7aca9a;
45
+ }
46
+
47
+ .button-no-round {
48
+ font-weight: 700;
49
+ text-transform: lowercase;
50
+ -webkit-border-radius: 0;
51
+ -moz-border-radius: 0;
52
+ border-radius: 0;
53
+ color: #fff;
54
+ background-color: #4696e5;
55
+ border: 1px solid #3089e2;
56
+ }
57
+ .button-no-round:hover, .button-no-round:focus {
58
+ color: #f2f2f2;
59
+ border-color: #1e7ad5;
60
+ background-color: #3089e2;
61
+ }
62
+
63
+ .button-round {
64
+ font-weight: 700;
65
+ text-transform: lowercase;
66
+ -webkit-border-radius: 5px;
67
+ -moz-border-radius: 5px;
68
+ border-radius: 5px;
69
+ color: #fff;
70
+ background-color: #008000;
71
+ border: 1px solid #006700;
72
+ }
73
+ .button-round:hover, .button-round:focus {
74
+ color: #f2f2f2;
75
+ border-color: #004800;
76
+ background-color: #006700;
77
+ }
78
+
79
+ .button-rounded {
80
+ font-weight: 700;
81
+ text-transform: lowercase;
82
+ -webkit-border-radius: 200px;
83
+ -moz-border-radius: 200px;
84
+ border-radius: 200px;
85
+ color: #fff;
86
+ background-color: #8a2be2;
87
+ border: 1px solid #7d1dd6;
88
+ }
89
+ .button-rounded:hover, .button-rounded:focus {
90
+ color: #f2f2f2;
91
+ border-color: #6e1abb;
92
+ background-color: #7d1dd6;
93
+ }
94
+
95
+ .btn-ghost {
96
+ font-weight: 300;
97
+ text-transform: uppercase;
98
+ -webkit-border-radius: 0;
99
+ -moz-border-radius: 0;
100
+ border-radius: 0;
101
+ color: #fff;
102
+ background-color: transparent;
103
+ border: 1px solid #f2f2f2;
104
+ }
105
+ .btn-ghost:hover, .btn-ghost:focus {
106
+ color: #f2f2f2;
107
+ border-color: #e3e3e3;
108
+ background-color: rgba(242, 242, 242, 0.1);
109
+ }
110
+
111
+ .btn-ghost-primary {
112
+ font-weight: 700;
113
+ text-transform: uppercase;
114
+ -webkit-border-radius: 0;
115
+ -moz-border-radius: 0;
116
+ border-radius: 0;
117
+ color: #8cd1a8;
118
+ background-color: transparent;
119
+ border: 1px solid #7aca9a;
120
+ }
121
+ .btn-ghost-primary:hover, .btn-ghost-primary:focus {
122
+ color: #7aca9a;
123
+ border-color: #64c18a;
124
+ background-color: rgba(242, 242, 242, 0.1);
125
+ }
126
+
127
+ .btn-ghost-blue {
128
+ font-weight: 500;
129
+ text-transform: uppercase;
130
+ -webkit-border-radius: 0;
131
+ -moz-border-radius: 0;
132
+ border-radius: 0;
133
+ color: #4696e5;
134
+ background-color: transparent;
135
+ border: 1px solid #3089e2;
136
+ }
137
+ .btn-ghost-blue:hover, .btn-ghost-blue:focus {
138
+ color: #3089e2;
139
+ border-color: #1e7ad5;
140
+ background-color: rgba(242, 242, 242, 0.1);
141
+ }
142
+
143
+ .btn-ghost-upper {
144
+ font-weight: 500;
145
+ text-transform: uppercase;
146
+ -webkit-border-radius: 0;
147
+ -moz-border-radius: 0;
148
+ border-radius: 0;
149
+ color: #fff;
150
+ background-color: transparent;
151
+ border: 1px solid #f2f2f2;
152
+ }
153
+ .btn-ghost-upper:hover, .btn-ghost-upper:focus {
154
+ color: #f2f2f2;
155
+ border-color: #e3e3e3;
156
+ background-color: rgba(242, 242, 242, 0.1);
157
+ }
158
+
159
+ .btn-ghost-lower {
160
+ font-weight: 500;
161
+ text-transform: lowercase;
162
+ -webkit-border-radius: 0;
163
+ -moz-border-radius: 0;
164
+ border-radius: 0;
165
+ color: #fff;
166
+ background-color: transparent;
167
+ border: 1px solid #f2f2f2;
168
+ }
169
+ .btn-ghost-lower:hover, .btn-ghost-lower:focus {
170
+ color: #f2f2f2;
171
+ border-color: #e3e3e3;
172
+ background-color: rgba(242, 242, 242, 0.1);
173
+ }
174
+
175
+ .btn-blue {
176
+ font-weight: 600;
177
+ text-transform: capitalize;
178
+ -webkit-border-radius: 2px;
179
+ -moz-border-radius: 2px;
180
+ border-radius: 2px;
181
+ color: #fff;
182
+ background-color: #4696e5;
183
+ border: 1px solid #3089e2;
184
+ }
185
+ .btn-blue:hover, .btn-blue:focus {
186
+ color: #f2f2f2;
187
+ border-color: #1e7ad5;
188
+ background-color: #3089e2;
189
+ }
190
+
191
+ .btn-dark-blue {
192
+ font-weight: 600;
193
+ text-transform: capitalize;
194
+ -webkit-border-radius: 2px;
195
+ -moz-border-radius: 2px;
196
+ border-radius: 2px;
197
+ color: #fff;
198
+ background-color: #00008b;
199
+ border: 1px solid #000072;
200
+ }
201
+ .btn-dark-blue:hover, .btn-dark-blue:focus {
202
+ color: #f2f2f2;
203
+ border-color: #000053;
204
+ background-color: #000072;
205
+ }
206
+
207
+ .btn-violet {
208
+ font-weight: 600;
209
+ text-transform: capitalize;
210
+ -webkit-border-radius: 2px;
211
+ -moz-border-radius: 2px;
212
+ border-radius: 2px;
213
+ color: #fff;
214
+ background-color: #8a2be2;
215
+ border: 1px solid #7d1dd6;
216
+ }
217
+ .btn-violet:hover, .btn-violet:focus {
218
+ color: #f2f2f2;
219
+ border-color: #6e1abb;
220
+ background-color: #7d1dd6;
221
+ }
222
+
223
+ .btn-crimson {
224
+ font-weight: 600;
225
+ text-transform: capitalize;
226
+ -webkit-border-radius: 2px;
227
+ -moz-border-radius: 2px;
228
+ border-radius: 2px;
229
+ color: #fff;
230
+ background-color: #dc143c;
231
+ border: 1px solid #c51236;
232
+ }
233
+ .btn-crimson:hover, .btn-crimson:focus {
234
+ color: #f2f2f2;
235
+ border-color: #a90f2e;
236
+ background-color: #c51236;
237
+ }
238
+
239
+ .btn-aqua {
240
+ font-weight: 600;
241
+ text-transform: capitalize;
242
+ -webkit-border-radius: 2px;
243
+ -moz-border-radius: 2px;
244
+ border-radius: 2px;
245
+ color: rgba(64, 64, 64, 0.7);
246
+ background-color: #00ffff;
247
+ border: 1px solid #00e6e6;
248
+ }
249
+ .btn-aqua:hover, .btn-aqua:focus {
250
+ color: rgba(51, 51, 51, 0.7);
251
+ border-color: #00c7c7;
252
+ background-color: #00e6e6;
253
+ }
254
+
255
+ .btn-coral {
256
+ font-weight: 600;
257
+ text-transform: capitalize;
258
+ -webkit-border-radius: 2px;
259
+ -moz-border-radius: 2px;
260
+ border-radius: 2px;
261
+ color: #fff;
262
+ background-color: #ff7f50;
263
+ border: 1px solid #ff6c37;
264
+ }
265
+ .btn-coral:hover, .btn-coral:focus {
266
+ color: #f2f2f2;
267
+ border-color: #ff5618;
268
+ background-color: #ff6c37;
269
+ }
270
+
271
+ .btn-gold {
272
+ font-weight: 600;
273
+ text-transform: capitalize;
274
+ -webkit-border-radius: 2px;
275
+ -moz-border-radius: 2px;
276
+ border-radius: 2px;
277
+ color: rgba(89, 89, 89, 0.7);
278
+ background-color: #ffd700;
279
+ border: 1px solid #e6c200;
280
+ }
281
+ .btn-gold:hover, .btn-gold:focus {
282
+ color: rgba(77, 77, 77, 0.7);
283
+ border-color: #c7a800;
284
+ background-color: #e6c200;
285
+ }
286
+
287
+ .btn-green {
288
+ font-weight: 600;
289
+ text-transform: capitalize;
290
+ -webkit-border-radius: 2px;
291
+ -moz-border-radius: 2px;
292
+ border-radius: 2px;
293
+ color: #fff;
294
+ background-color: #008000;
295
+ border: 1px solid #006700;
296
+ }
297
+ .btn-green:hover, .btn-green:focus {
298
+ color: #f2f2f2;
299
+ border-color: #004800;
300
+ background-color: #006700;
301
+ }
302
+
303
+ .btn-lime-green {
304
+ font-weight: 600;
305
+ text-transform: capitalize;
306
+ -webkit-border-radius: 2px;
307
+ -moz-border-radius: 2px;
308
+ border-radius: 2px;
309
+ color: #fff;
310
+ background-color: #32cd32;
311
+ border: 1px solid #2db92d;
312
+ }
313
+ .btn-lime-green:hover, .btn-lime-green:focus {
314
+ color: #f2f2f2;
315
+ border-color: #27a027;
316
+ background-color: #2db92d;
317
+ }
318
+
319
+ .btn-small {
320
+ height: 2em;
321
+ line-height: 2em;
322
+ padding: 0 1.2em;
323
+ font-size: 0.8rem;
324
+ }
325
+
326
+ .btn-big {
327
+ height: 3em;
328
+ line-height: 3em;
329
+ padding: 0 3em;
330
+ font-size: 1.2rem;
331
+ }
data/doc/css/main.scss ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ # Only the main Sass file needs front matter (the dashes are enough)
3
+ ---
4
+ @charset "utf-8";
5
+
6
+ @import "doc";
7
+ @import "syntax";
data/doc/index.html ADDED
@@ -0,0 +1,149 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="bg-blue bg-full">
6
+ <h2># how to use it? #</h2>
7
+
8
+ {% highlight scss %}
9
+ @import "mix-buttons";
10
+
11
+ .my-button {
12
+ @include mix-button(
13
+ $custom-font-color, /* default is #fff */
14
+ $custom-background-color, /* default is #8cd1a8 */
15
+ $custom-border-radius, /* default is 2px */
16
+ $custom-font-weight, /* default is 600 */
17
+ $custom-text-transform, /* default is capitalize */
18
+ $boolean-is-button-ghost /* default is false */
19
+ );
20
+ }
21
+ {% endhighlight %}
22
+
23
+ </div>
24
+
25
+ <div class="bg-full">
26
+ <button class="button">Button default</button>
27
+
28
+ {% highlight scss %}
29
+ .button {
30
+ @include mix-button();
31
+ }
32
+ {% endhighlight %}
33
+
34
+ </div>
35
+
36
+ <div class="bg-full bg-gray">
37
+ <h2># ghost buttons #</h2>
38
+
39
+ <button class="btn-ghost">Ghost</button>
40
+
41
+ {% highlight scss %}
42
+ .btn-ghost {
43
+ @include mix-button(#8cd1a8, #fff, 0, 300, capitalize, true);
44
+ }
45
+ {% endhighlight %}
46
+
47
+ </div>
48
+
49
+ <div class="bg-full">
50
+ <button class="btn-ghost-primary">Ghost primary</button>
51
+
52
+ {% highlight scss %}
53
+ .btn-ghost-primary {
54
+ @include mix-button(#8cd1a8, #8cd1a8, 0, 700, capitalize, true);
55
+ }
56
+ {% endhighlight %}
57
+
58
+ </div>
59
+
60
+ <div class="bg-full bg-blue">
61
+ <h2># custom text-transform #</h2>
62
+
63
+ <button class="btn-ghost-upper">uppercase</button>
64
+ <button class="btn-ghost-lower">lowercase</button>
65
+
66
+ {% highlight scss %}
67
+ .btn-ghost-upper {
68
+ @include mix-button(#8cd1a8, #fff, 0, 500, uppercase, true);
69
+ }
70
+ .btn-ghost-lower {
71
+ @include mix-button(#8cd1a8, #fff, 0, 500, lowercase, true);
72
+ }
73
+ {% endhighlight %}
74
+
75
+ </div>
76
+
77
+ <div class="bg-full bg-silver">
78
+ <button class="btn-blue">Button Blue</button>
79
+
80
+ {% highlight scss %}
81
+ .btn-blue {
82
+ @include mix-button(#4696e5, #fff, 0, 700);
83
+ }
84
+ {% endhighlight %}
85
+
86
+ </div>
87
+
88
+ <div class="bg-full">
89
+ <button class="btn-ghost-blue">Ghost Blue</button>
90
+
91
+ {% highlight scss %}
92
+ .btn-ghost-blue {
93
+ @include mix-button(#4696e5, #4696e5, 0, 500, capitalize, true);
94
+ }
95
+ {% endhighlight %}
96
+
97
+ </div>
98
+
99
+ <div class="bg-full bg-silver">
100
+ <h2># custom border-radius #</h2>
101
+ <button class="button-no-round">no-round</button>
102
+ <button class="button-round">round</button>
103
+ <button class="button-rounded">rounded</button>
104
+ </div>
105
+
106
+ <div class="bg-full bg-gray">
107
+ <h2># custom your palette colors #</h2>
108
+ <button class="btn-dark-blue">Dark Blue</button>
109
+ <button class="btn-green">Green</button>
110
+ <button class="btn-lime-green">Lime Green</button>
111
+ <button class="btn-violet">Violet</button>
112
+ <button class="btn-crimson">Crimson</button>
113
+ <button class="btn-aqua">Aqua</button>
114
+ <button class="btn-coral">Coral</button>
115
+ <button class="btn-gold">Gold</button>
116
+ </div>
117
+
118
+ <div class="bg-full">
119
+ <h2># small size #</h2>
120
+ <button class="btn-dark-blue btn-small">Dark Blue</button>
121
+ <button class="btn-green btn-small">Green</button>
122
+ <button class="btn-lime-green btn-small">Lime Green</button>
123
+ <button class="btn-violet btn-small">Violet</button>
124
+ <button class="btn-crimson btn-small">Crimson</button>
125
+ <button class="btn-aqua btn-small">Aqua</button>
126
+ <button class="btn-coral btn-small">Coral</button>
127
+ <button class="btn-gold btn-small">Gold</button>
128
+
129
+ {% highlight scss %}
130
+ .btn-small {
131
+ @include mix-button-size(2em, 1.2em, .8rem);
132
+ }
133
+ {% endhighlight %}
134
+
135
+ </div>
136
+
137
+ <div class="bg-full bg-silver">
138
+ <h2># big size #</h2>
139
+ <button class="btn-green btn-big">Green</button>
140
+ <button class="btn-lime-green btn-big">Lime Green</button>
141
+ <button class="btn-violet btn-big">Violet</button>
142
+ <button class="btn-coral btn-big">Coral</button>
143
+
144
+ {% highlight scss %}
145
+ .btn-big {
146
+ @include mix-button-size(3em, 3em, 1.2rem);
147
+ }
148
+ {% endhighlight %}
149
+ </div>
Binary file
@@ -0,0 +1,166 @@
1
+ @import "mix-variables";
2
+
3
+ //
4
+ // mixin Button transition
5
+ //
6
+ // @param $transitions
7
+ //
8
+ // usage:
9
+ // @include mix-transition(background-color .2s ease-in-out);
10
+ //
11
+ @mixin mix-transition($transitions...) {
12
+ -webkit-transition: $transitions;
13
+ -moz-transition: $transitions;
14
+ -ms-transition: $transitions;
15
+ transition: $transitions;
16
+ }
17
+
18
+ //
19
+ // mixin appearance | https://css-tricks.com/almanac/properties/a/appearance/
20
+ //
21
+ // @param $appearance
22
+ //
23
+ // usage:
24
+ // @include appearance(none);
25
+ //
26
+ @mixin mix-appearance($appearance: none) {
27
+ -webkit-appearance: $appearance;
28
+ -moz-appearance: $appearance;
29
+ -ms-appearance: $appearance;
30
+ appearance: $appearance;
31
+ }
32
+
33
+ //
34
+ // mixin border-radius | https://css-tricks.com/almanac/properties/b/border-radius/
35
+ //
36
+ // @param $radius
37
+ //
38
+ // usage:
39
+ // @include border-radius(4px);
40
+ //
41
+ @mixin mix-border-radius($radius) {
42
+ -webkit-border-radius: $radius;
43
+ -moz-border-radius: $radius;
44
+ border-radius: $radius;
45
+ }
46
+
47
+ //
48
+ // mixin mix-color-variant
49
+ //
50
+ // @param $font-color
51
+ // @param $bg-color
52
+ // @param $border-color
53
+ // @param $ghost
54
+ //
55
+ // usage:
56
+ // @include mix-color-variant(#fff, #8cd1a8, transparent, false);
57
+ //
58
+ @mixin mix-color-variant(
59
+ $font-color: $mix-white-color,
60
+ $bg-color: $mix-primary-color,
61
+ $border-color: $mix-border-color,
62
+ $ghost: $mix-ghost
63
+ ) {
64
+ color: $font-color;
65
+ background-color: $bg-color;
66
+ border: 1px solid $border-color;
67
+
68
+ &:hover,
69
+ &:focus {
70
+ color: darken($font-color, 5%);
71
+ border-color: darken($border-color, 6%);
72
+
73
+ @if $ghost == true {
74
+ $bg-color: rgba($mix-white-color, .1);
75
+ }
76
+
77
+ background-color: darken($bg-color, 5%);
78
+ }
79
+ }
80
+
81
+ //
82
+ // mixin mix-button-size
83
+ //
84
+ // @param $mix-height
85
+ // @param $mix-spacing
86
+ // @param $mix-font-size
87
+ //
88
+ // usage:
89
+ // @include mix-button-size(1.2em, 2em, 16px);
90
+ //
91
+ @mixin mix-button-size(
92
+ $mix-height: $mix-base-height,
93
+ $mix-spacing: $mix-base-spacing,
94
+ $mix-font-size: $mix-base-font-size
95
+ ) {
96
+ height: $mix-height;
97
+ line-height: $mix-height;
98
+ padding: 0 $mix-spacing;
99
+ font-size: $mix-font-size;
100
+ }
101
+
102
+ //
103
+ // placeholder %default-mix-button | http://sass-lang.com/documentation/file.SASS_REFERENCE.html#placeholder_selectors_
104
+ //
105
+ %default-mix-button {
106
+ letter-spacing: .05em;
107
+ text-align: center;
108
+ text-decoration: none;
109
+ white-space: nowrap;
110
+ cursor: pointer;
111
+ display: inline-block;
112
+ margin-top: $mix-margin;
113
+ margin-bottom: $mix-margin;
114
+ @include mix-button-size();
115
+ @include mix-transition($mix-transition);
116
+ @include mix-appearance;
117
+
118
+ &,
119
+ &:hover,
120
+ &:focus,
121
+ &:active {
122
+ outline: none;
123
+ }
124
+
125
+ &:active {
126
+ position: relative;
127
+ top: 2px;
128
+ }
129
+ }
130
+
131
+ //
132
+ // mixin button
133
+ //
134
+ // @param $bg-color
135
+ // @param $font-color
136
+ // @param $border-radius
137
+ // @param $font-weight
138
+ // @param $ghost
139
+ // @param $upper
140
+ //
141
+ // usage:
142
+ // @include mix-button(#8cd1a8, #fff, 2px, 700, false, false);
143
+ //
144
+ @mixin mix-button(
145
+ $bg-color: $mix-primary-color,
146
+ $font-color: $mix-white-color,
147
+ $border-radius: $mix-border-radius,
148
+ $font-weight: $mix-font-weight,
149
+ $ttransform: $mix-ttransform,
150
+ $ghost: $mix-ghost
151
+ ) {
152
+ @extend %default-mix-button;
153
+ font-weight: $font-weight;
154
+ text-transform: $ttransform;
155
+
156
+ $border-color: darken($bg-color, 5%);
157
+ $bg-color: $bg-color;
158
+
159
+ @if $ghost == true {
160
+ $bg-color: transparent;
161
+ $border-color: darken($font-color, 5%);
162
+ }
163
+
164
+ @include mix-border-radius($border-radius);
165
+ @include mix-color-variant($font-color, $bg-color, $border-color, $ghost);
166
+ }
@@ -0,0 +1,33 @@
1
+
2
+ // Buttons settings
3
+ //
4
+
5
+ $mix-ghost: false;
6
+ $mix-border-radius: 2px;
7
+ $mix-font-weight: 600;
8
+ $mix-margin: 5px;
9
+ $mix-ttransform: capitalize;
10
+ $mix-transition: background-color .2s ease-in-out, color .2s ease-in-out, border-color .2s ease-in-out;
11
+
12
+ // Color settings
13
+ //
14
+
15
+ $mix-white-color: #fff;
16
+ $mix-black-color: #000;
17
+ $mix-primary-color: #8cd1a8;
18
+ $mix-border-color: transparent;
19
+
20
+ // Sizes settings
21
+ //
22
+
23
+ $mix-base-font-size: 1rem;
24
+ $mix-base-spacing: 2em;
25
+ $mix-base-height: 3em;
26
+
27
+ $mix-small-font-size: .8rem;
28
+ $mix-small-spacing: 1.2em;
29
+ $mix-small-height: 2em;
30
+
31
+ $mix-big-font-size: 1.2rem;
32
+ $mix-big-spacing: 3em;
33
+ $mix-big-height: 3em;