Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 1 | //Breakpoints mixin |
| 2 | @mixin mediaQuery($breakpoint) { |
| 3 | @if $breakpoint == "x-small" { |
| 4 | @media (min-width: 25.000em) { //400px |
| 5 | @content; |
| 6 | } |
| 7 | } |
| 8 | @if $breakpoint == "small" { |
| 9 | @media (min-width: 47.938em) { //767px |
| 10 | @content; |
| 11 | } |
Michael Davis | 0f03ad1 | 2017-02-27 16:54:18 -0600 | [diff] [blame^] | 12 | } @else if $breakpoint == "medium" { |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 13 | @media (min-width: 64.000em) { //1024px |
| 14 | @content; |
| 15 | } |
Michael Davis | 0f03ad1 | 2017-02-27 16:54:18 -0600 | [diff] [blame^] | 16 | } @else if $breakpoint == "large" { |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 17 | @media (min-width: 85.375em) { //1366px |
| 18 | @content; |
| 19 | } |
Michael Davis | 0f03ad1 | 2017-02-27 16:54:18 -0600 | [diff] [blame^] | 20 | } @else if $breakpoint == "x-large" { |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 21 | @media (min-width: 100.000em) { //1600px |
| 22 | @content; |
| 23 | } |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | //Fonts mixin |
| 28 | @mixin fontFamily { |
Michael Davis | 0f03ad1 | 2017-02-27 16:54:18 -0600 | [diff] [blame^] | 29 | font-family: Helvetica, Arial, Verdana, sans-serif; |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 30 | font-weight: 200; |
| 31 | } |
| 32 | |
| 33 | //Transitions mixin |
| 34 | @mixin fastTransition-all { |
| 35 | transition: all .5s ease; |
| 36 | } |
| 37 | |
| 38 | @mixin slowTransition-all { |
| 39 | transition: all 1.5s ease; |
| 40 | } |
| 41 | |
| 42 | //Custom SVG arrow |
| 43 | @mixin bgImage__arrowDown-primary { |
| 44 | background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='32' height='24' viewBox='0 0 32 24'><polygon points='0,0 32,0 16,24' style='fill: #19273c'></polygon></svg>"); |
| 45 | } |
| 46 | |
| 47 | @mixin bgImage__arrowDown-accent { |
Michael Davis | 0f03ad1 | 2017-02-27 16:54:18 -0600 | [diff] [blame^] | 48 | background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='32' height='24' viewBox='0 0 32 24'><polygon points='0,0 32,0 16,24' style='fill: #3c6df0'></polygon></svg>"); |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 49 | } |
| 50 | |
| 51 | @mixin bgImage__arrowDown-grey { |
| 52 | background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='32' height='24' viewBox='0 0 32 24'><polygon points='0,0 32,0 16,24' style='fill: #b8c1c1'></polygon></svg>"); |
| 53 | } |
| 54 | |
Michael Davis | 0f03ad1 | 2017-02-27 16:54:18 -0600 | [diff] [blame^] | 55 | @mixin status-light { |
| 56 | content: '\25CF'; |
| 57 | display: inline-block; |
| 58 | font-size: 1.4em; |
| 59 | color: $status-ok; |
| 60 | margin-right: .3em; |
| 61 | } |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 62 | |
Michael Davis | 0f03ad1 | 2017-02-27 16:54:18 -0600 | [diff] [blame^] | 63 | @mixin status-light__good { |
| 64 | @include status-light; |
| 65 | color: $status-ok; |
| 66 | |
| 67 | } |
| 68 | |
| 69 | @mixin status-light__error { |
| 70 | @include status-light; |
| 71 | color: $error-color; |
| 72 | |
| 73 | } |
| 74 | |
| 75 | @mixin status-light__disabled { |
| 76 | @include status-light; |
| 77 | color: $darkgrey; |
| 78 | |
| 79 | } |