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 | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 33 | @mixin fontFamilyBold { |
| 34 | font-family: Helvetica, Arial, Verdana, sans-serif; |
| 35 | font-weight: 700; |
| 36 | } |
| 37 | |
Michael Davis | 3a0d471 | 2017-03-27 14:01:34 -0500 | [diff] [blame] | 38 | @mixin fontCourierBold { |
Iftekharul Islam | 2284d2c | 2017-05-02 09:27:24 -0500 | [diff] [blame] | 39 | font-family: "Courier New", Helvetica, monospace, arial, sans-serif; |
Michael Davis | 3a0d471 | 2017-03-27 14:01:34 -0500 | [diff] [blame] | 40 | font-weight: 700; |
| 41 | } |
| 42 | |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 43 | |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 44 | //Transitions mixin |
| 45 | @mixin fastTransition-all { |
| 46 | transition: all .5s ease; |
| 47 | } |
| 48 | |
| 49 | @mixin slowTransition-all { |
| 50 | transition: all 1.5s ease; |
| 51 | } |
| 52 | |
| 53 | //Custom SVG arrow |
| 54 | @mixin bgImage__arrowDown-primary { |
| 55 | 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>"); |
| 56 | } |
| 57 | |
| 58 | @mixin bgImage__arrowDown-accent { |
Michael Davis | 0f03ad1 | 2017-02-27 16:54:18 -0600 | [diff] [blame] | 59 | 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] | 60 | } |
| 61 | |
| 62 | @mixin bgImage__arrowDown-grey { |
| 63 | 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>"); |
| 64 | } |
Michael Davis | c562618 | 2017-03-10 15:48:05 -0600 | [diff] [blame] | 65 | |
Iftekharul Islam | 8947e70 | 2017-07-27 10:28:07 -0500 | [diff] [blame] | 66 | @mixin calcColumn-5 { |
| 67 | min-width: calc(100% * (1/5) - 5px); |
| 68 | } |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 69 | |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 70 | @mixin calcColumn-4 ($offset: 0) { |
| 71 | min-width: calc(100% * (1/4) - #{$offset}); |
| 72 | } |
| 73 | |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 74 | @mixin calcColumn-3 { |
| 75 | min-width: calc(100% * (1/3) - 5px); |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 76 | } |
| 77 | |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 78 | @mixin calcSplitColumn { |
| 79 | min-width: calc(100% * (1/2) - 5px); |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 80 | } |
| 81 | |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 82 | @mixin vertCenter { |
| 83 | top: 50%; |
| 84 | transform: translateY(-50%); |
| 85 | } |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 86 | |
Michael Davis | c562618 | 2017-03-10 15:48:05 -0600 | [diff] [blame] | 87 | @mixin indeterminate-bar { |
| 88 | 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); |
| 89 | -webkit-animation: progress 2s linear infinite; |
| 90 | -moz-animation: progress 2s linear infinite; |
| 91 | animation: progress 2s linear infinite; |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 92 | background-size: 165% 100%; |
Michael Davis | c562618 | 2017-03-10 15:48:05 -0600 | [diff] [blame] | 93 | |
| 94 | @-webkit-keyframes progress { |
| 95 | 0% { |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 96 | background-position: -70px 0; |
Michael Davis | c562618 | 2017-03-10 15:48:05 -0600 | [diff] [blame] | 97 | } |
| 98 | 100% { |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 99 | background-position: 0 0; |
Michael Davis | c562618 | 2017-03-10 15:48:05 -0600 | [diff] [blame] | 100 | } |
| 101 | } |
| 102 | |
| 103 | @-moz-keyframes progress { |
| 104 | 0% { |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 105 | background-position: -70px 0; |
Michael Davis | c562618 | 2017-03-10 15:48:05 -0600 | [diff] [blame] | 106 | } |
| 107 | 100% { |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 108 | background-position: 0 0; |
Michael Davis | c562618 | 2017-03-10 15:48:05 -0600 | [diff] [blame] | 109 | } |
| 110 | } |
| 111 | |
| 112 | @-ms-keyframes progress { |
| 113 | 0% { |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 114 | background-position: -70px 0; |
Michael Davis | c562618 | 2017-03-10 15:48:05 -0600 | [diff] [blame] | 115 | } |
| 116 | 100% { |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 117 | background-position: 0 0; |
Michael Davis | c562618 | 2017-03-10 15:48:05 -0600 | [diff] [blame] | 118 | } |
| 119 | } |
| 120 | |
| 121 | @keyframes progress { |
| 122 | 0% { |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 123 | background-position: -70px 0; |
Michael Davis | c562618 | 2017-03-10 15:48:05 -0600 | [diff] [blame] | 124 | } |
| 125 | 100% { |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 126 | background-position: 0 0; |
Michael Davis | c562618 | 2017-03-10 15:48:05 -0600 | [diff] [blame] | 127 | } |
| 128 | } |
| 129 | } |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 130 | |
| 131 | @mixin table-row-save { |
| 132 | @-webkit-keyframes row-flash { |
| 133 | from { background-color: $lightblue; } |
| 134 | to { background-color: inherit; } |
| 135 | } |
| 136 | @-moz-keyframes row-flash { |
| 137 | from { background-color: $lightblue; } |
| 138 | to { background-color: inherit; } |
| 139 | } |
| 140 | @-o-keyframes row-flash { |
| 141 | from { background-color: $lightblue; } |
| 142 | to { background-color: inherit; } |
| 143 | } |
| 144 | @keyframes row-flash { |
| 145 | from { background-color: $lightblue; } |
| 146 | to { background-color: inherit; } |
| 147 | } |
| 148 | .row-flash { |
| 149 | -webkit-animation: row-flash 1s infinite; /* Safari 4+ */ |
| 150 | -moz-animation: row-flash 1s infinite; /* Fx 5+ */ |
| 151 | -o-animation: row-flash 1s infinite; /* Opera 12+ */ |
| 152 | animation: row-flash 1s infinite; /* IE 10+ */ |
| 153 | } |
| 154 | } |