| 1 |
// Units |
| 2 |
@gutter: 3%; |
| 3 |
@spacing: 20px; |
| 4 |
@animation-ease: ease; |
| 5 |
@animation-time: .3s; |
| 6 |
@border-radius: 3px; |
| 7 |
|
| 8 |
// Colors |
| 9 |
@color-mailerlite: #00a154; |
| 10 |
|
| 11 |
@color-success: #5cb85c; |
| 12 |
@color-info: #5bc0de; |
| 13 |
@color-warning: #f0ad4e; |
| 14 |
@color-error: #d9534f; |
| 15 |
|
| 16 |
@color-font: #1E2C35; |
| 17 |
@color-font-lightened: lighten(@color-font, 10%); |
| 18 |
@color-font-light: #ccc; |
| 19 |
|
| 20 |
@color-border: #eee; |
| 21 |
|
| 22 |
// Breakpoints |
| 23 |
@breakpoint-large: 1024px; |
| 24 |
@breakpoint-default: 768px; |
| 25 |
@breakpoint-mobile: 480px; |
| 26 |
|
| 27 |
//== Helper |
| 28 |
.img-responsive() { |
| 29 |
display: block; |
| 30 |
max-width: 100%; |
| 31 |
height: auto; |
| 32 |
} |
| 33 |
|
| 34 |
.border-box() { |
| 35 |
box-sizing: border-box; |
| 36 |
*, |
| 37 |
*:before, |
| 38 |
*:after { |
| 39 |
box-sizing: border-box; |
| 40 |
} |
| 41 |
} |
| 42 |
|
| 43 |
// Clearfix |
| 44 |
// Source: http://nicolasgallagher.com/micro-clearfix-hack/ |
| 45 |
// |
| 46 |
// For modern browsers |
| 47 |
// 1. The space content is one way to avoid an Opera bug when the |
| 48 |
// contenteditable attribute is included anywhere else in the document. |
| 49 |
// Otherwise it causes space to appear at the top and bottom of elements |
| 50 |
// that are clearfixed. |
| 51 |
// 2. The use of `table` rather than `block` is only necessary if using |
| 52 |
// `:before` to contain the top-margins of child elements. |
| 53 |
.clearfix() { |
| 54 |
zoom: 1; |
| 55 |
&:before, |
| 56 |
&:after { |
| 57 |
content: " "; /* 1 */ |
| 58 |
display: table; /* 2 */ |
| 59 |
} |
| 60 |
&:after { |
| 61 |
clear: both; |
| 62 |
} |
| 63 |
} |