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 | |
Michael Davis | 3a0d471 | 2017-03-27 14:01:34 -0500 | [diff] [blame] | 33 | @mixin fontCourierBold { |
| 34 | font-family: "Courier New", Helvetica, arial, sans-serif; |
| 35 | font-weight: 700; |
| 36 | } |
| 37 | |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 38 | //Transitions mixin |
| 39 | @mixin fastTransition-all { |
| 40 | transition: all .5s ease; |
| 41 | } |
| 42 | |
| 43 | @mixin slowTransition-all { |
| 44 | transition: all 1.5s ease; |
| 45 | } |
| 46 | |
| 47 | //Custom SVG arrow |
| 48 | @mixin bgImage__arrowDown-primary { |
| 49 | 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>"); |
| 50 | } |
| 51 | |
| 52 | @mixin bgImage__arrowDown-accent { |
Michael Davis | 0f03ad1 | 2017-02-27 16:54:18 -0600 | [diff] [blame] | 53 | 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] | 54 | } |
| 55 | |
| 56 | @mixin bgImage__arrowDown-grey { |
| 57 | 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>"); |
| 58 | } |
Michael Davis | c562618 | 2017-03-10 15:48:05 -0600 | [diff] [blame] | 59 | |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 60 | |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 61 | @mixin calcColumn-4 ($offset: 0) { |
| 62 | min-width: calc(100% * (1/4) - #{$offset}); |
| 63 | } |
| 64 | |
| 65 | |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 66 | @mixin calcColumn-3 { |
| 67 | min-width: calc(100% * (1/3) - 5px); |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 68 | } |
| 69 | |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 70 | @mixin calcSplitColumn { |
| 71 | min-width: calc(100% * (1/2) - 5px); |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 72 | } |
| 73 | |
| 74 | |
Michael Davis | c562618 | 2017-03-10 15:48:05 -0600 | [diff] [blame] | 75 | @mixin indeterminate-bar { |
| 76 | background-image: repeating-linear-gradient(-45deg, rgba(251, 234, 174, 0.35), rgba(251, 234, 174, 0.35) 25px, rgba(244, 176, 0, 0.45) 25px, rgba(244, 176, 0, 0.45) 50px); |
| 77 | -webkit-animation: progress 2s linear infinite; |
| 78 | -moz-animation: progress 2s linear infinite; |
| 79 | animation: progress 2s linear infinite; |
| 80 | background-size: 130% 100%; |
| 81 | |
| 82 | @-webkit-keyframes progress { |
| 83 | 0% { |
| 84 | background-position: 0 0; |
| 85 | } |
| 86 | 100% { |
| 87 | background-position: -70px 0; |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | @-moz-keyframes progress { |
| 92 | 0% { |
| 93 | background-position: 0 0; |
| 94 | } |
| 95 | 100% { |
| 96 | background-position: -70px 0; |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | @-ms-keyframes progress { |
| 101 | 0% { |
| 102 | background-position: 0 0; |
| 103 | } |
| 104 | 100% { |
| 105 | background-position: -70px 0; |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | @keyframes progress { |
| 110 | 0% { |
| 111 | background-position: 0 0; |
| 112 | } |
| 113 | 100% { |
| 114 | background-position: -70px 0; |
| 115 | } |
| 116 | } |
| 117 | } |