Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 1 | //Breakpoints mixin |
| 2 | @mixin mediaQuery($breakpoint) { |
| 3 | @if $breakpoint == "x-small" { |
Derick Montague | 1a606be | 2019-05-23 21:32:28 -0500 | [diff] [blame] | 4 | @media (min-width: 25em) { |
| 5 | //400px |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 6 | @content; |
| 7 | } |
| 8 | } |
| 9 | @if $breakpoint == "small" { |
Derick Montague | 1a606be | 2019-05-23 21:32:28 -0500 | [diff] [blame] | 10 | @media (min-width: 47.938em) { |
| 11 | //767px |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 12 | @content; |
| 13 | } |
Michael Davis | 0f03ad1 | 2017-02-27 16:54:18 -0600 | [diff] [blame] | 14 | } @else if $breakpoint == "medium" { |
Derick Montague | 1a606be | 2019-05-23 21:32:28 -0500 | [diff] [blame] | 15 | @media (min-width: 64em) { |
| 16 | //1024px |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 17 | @content; |
| 18 | } |
Michael Davis | 0f03ad1 | 2017-02-27 16:54:18 -0600 | [diff] [blame] | 19 | } @else if $breakpoint == "large" { |
Derick Montague | 1a606be | 2019-05-23 21:32:28 -0500 | [diff] [blame] | 20 | @media (min-width: 85.375em) { |
| 21 | //1366px |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 22 | @content; |
| 23 | } |
Michael Davis | 0f03ad1 | 2017-02-27 16:54:18 -0600 | [diff] [blame] | 24 | } @else if $breakpoint == "x-large" { |
Derick Montague | 1a606be | 2019-05-23 21:32:28 -0500 | [diff] [blame] | 25 | @media (min-width: 100em) { |
| 26 | //1600px |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 27 | @content; |
| 28 | } |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | //Fonts mixin |
| 33 | @mixin fontFamily { |
Michael Davis | 0f03ad1 | 2017-02-27 16:54:18 -0600 | [diff] [blame] | 34 | font-family: Helvetica, Arial, Verdana, sans-serif; |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 35 | font-weight: 200; |
| 36 | } |
| 37 | |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 38 | @mixin fontFamilyBold { |
| 39 | font-family: Helvetica, Arial, Verdana, sans-serif; |
| 40 | font-weight: 700; |
| 41 | } |
| 42 | |
Michael Davis | 3a0d471 | 2017-03-27 14:01:34 -0500 | [diff] [blame] | 43 | @mixin fontCourierBold { |
Iftekharul Islam | 96bbf31 | 2017-08-22 13:44:38 -0500 | [diff] [blame] | 44 | font-family: "Courier New", Helvetica, arial, sans-serif; |
Michael Davis | 3a0d471 | 2017-03-27 14:01:34 -0500 | [diff] [blame] | 45 | font-weight: 700; |
| 46 | } |
| 47 | |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 48 | //Transitions mixin |
| 49 | @mixin fastTransition-all { |
Yoshie Muranaka | 5bd1dec | 2019-05-16 13:06:32 -0500 | [diff] [blame] | 50 | transition: all $duration--fast-02 ease; |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 51 | } |
| 52 | |
| 53 | @mixin slowTransition-all { |
Yoshie Muranaka | 5bd1dec | 2019-05-16 13:06:32 -0500 | [diff] [blame] | 54 | transition: all $duration--slow-02 ease; |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 55 | } |
| 56 | |
Derick Montague | 1a606be | 2019-05-23 21:32:28 -0500 | [diff] [blame] | 57 | @mixin page-transition { |
| 58 | transition: 110ms cubic-bezier(0.4, 0.14, 1, 1); |
| 59 | } |
| 60 | |
| 61 | @mixin page-transition-visibility { |
| 62 | visibility: hidden; |
| 63 | opacity: 0; |
| 64 | } |
| 65 | |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 66 | //Custom SVG arrow |
| 67 | @mixin bgImage__arrowDown-primary { |
Yoshie Muranaka | de38208 | 2019-04-30 13:56:10 -0500 | [diff] [blame] | 68 | background-image: url(../assets/images/icon-caret-down.svg); |
| 69 | background-size: 0.8em; |
| 70 | background-repeat: no-repeat; |
| 71 | background-position-y: center; |
Derick Montague | 1a606be | 2019-05-23 21:32:28 -0500 | [diff] [blame] | 72 | background-position-x: calc(100% - 0.5em); |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 73 | } |
| 74 | |
Yoshie Muranaka | de38208 | 2019-04-30 13:56:10 -0500 | [diff] [blame] | 75 | @mixin bgImage__arrowDown-disabled { |
| 76 | background-image: url(../assets/images/icon-caret-down-disabled.svg); |
| 77 | background-size: 0.8em; |
| 78 | background-repeat: no-repeat; |
| 79 | background-position-y: center; |
Derick Montague | 1a606be | 2019-05-23 21:32:28 -0500 | [diff] [blame] | 80 | background-position-x: calc(100% - 0.5em); |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 81 | } |
Michael Davis | c562618 | 2017-03-10 15:48:05 -0600 | [diff] [blame] | 82 | |
Iftekharul Islam | 8947e70 | 2017-07-27 10:28:07 -0500 | [diff] [blame] | 83 | @mixin calcColumn-5 { |
Derick Montague | 1a606be | 2019-05-23 21:32:28 -0500 | [diff] [blame] | 84 | min-width: calc(100% * (1 / 5) - 5px); |
Iftekharul Islam | 8947e70 | 2017-07-27 10:28:07 -0500 | [diff] [blame] | 85 | } |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 86 | |
Derick Montague | 1a606be | 2019-05-23 21:32:28 -0500 | [diff] [blame] | 87 | @mixin calcColumn-4($offset: 0) { |
| 88 | min-width: calc(100% * (1 / 4) - #{$offset}); |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 89 | } |
| 90 | |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 91 | @mixin calcColumn-3 { |
Derick Montague | 1a606be | 2019-05-23 21:32:28 -0500 | [diff] [blame] | 92 | min-width: calc(100% * (1 / 3) - 5px); |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 93 | } |
| 94 | |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 95 | @mixin calcSplitColumn { |
Derick Montague | 1a606be | 2019-05-23 21:32:28 -0500 | [diff] [blame] | 96 | min-width: calc(100% * (1 / 2) - 5px); |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 97 | } |
| 98 | |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 99 | @mixin vertCenter { |
| 100 | top: 50%; |
| 101 | transform: translateY(-50%); |
| 102 | } |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 103 | |
Michael Davis | c562618 | 2017-03-10 15:48:05 -0600 | [diff] [blame] | 104 | @mixin indeterminate-bar { |
Derick Montague | 1a606be | 2019-05-23 21:32:28 -0500 | [diff] [blame] | 105 | background-image: repeating-linear-gradient( |
| 106 | -45deg, |
| 107 | rgba(251, 234, 174, 0.35), |
| 108 | rgba(251, 234, 174, 0.35) 25px, |
| 109 | rgba(244, 176, 0, 0.45) 25px, |
| 110 | rgba(244, 176, 0, 0.45) 50px |
| 111 | ); |
Michael Davis | c562618 | 2017-03-10 15:48:05 -0600 | [diff] [blame] | 112 | -webkit-animation: progress 2s linear infinite; |
| 113 | -moz-animation: progress 2s linear infinite; |
| 114 | animation: progress 2s linear infinite; |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 115 | background-size: 165% 100%; |
Michael Davis | c562618 | 2017-03-10 15:48:05 -0600 | [diff] [blame] | 116 | |
| 117 | @-webkit-keyframes progress { |
| 118 | 0% { |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 119 | background-position: -70px 0; |
Michael Davis | c562618 | 2017-03-10 15:48:05 -0600 | [diff] [blame] | 120 | } |
| 121 | 100% { |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 122 | background-position: 0 0; |
Michael Davis | c562618 | 2017-03-10 15:48:05 -0600 | [diff] [blame] | 123 | } |
| 124 | } |
| 125 | |
| 126 | @-moz-keyframes progress { |
| 127 | 0% { |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 128 | background-position: -70px 0; |
Michael Davis | c562618 | 2017-03-10 15:48:05 -0600 | [diff] [blame] | 129 | } |
| 130 | 100% { |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 131 | background-position: 0 0; |
Michael Davis | c562618 | 2017-03-10 15:48:05 -0600 | [diff] [blame] | 132 | } |
| 133 | } |
| 134 | |
| 135 | @-ms-keyframes progress { |
| 136 | 0% { |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 137 | background-position: -70px 0; |
Michael Davis | c562618 | 2017-03-10 15:48:05 -0600 | [diff] [blame] | 138 | } |
| 139 | 100% { |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 140 | background-position: 0 0; |
Michael Davis | c562618 | 2017-03-10 15:48:05 -0600 | [diff] [blame] | 141 | } |
| 142 | } |
| 143 | |
| 144 | @keyframes progress { |
| 145 | 0% { |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 146 | background-position: -70px 0; |
Michael Davis | c562618 | 2017-03-10 15:48:05 -0600 | [diff] [blame] | 147 | } |
| 148 | 100% { |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 149 | background-position: 0 0; |
Michael Davis | c562618 | 2017-03-10 15:48:05 -0600 | [diff] [blame] | 150 | } |
| 151 | } |
| 152 | } |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 153 | |
| 154 | @mixin table-row-save { |
| 155 | @-webkit-keyframes row-flash { |
Derick Montague | 1a606be | 2019-05-23 21:32:28 -0500 | [diff] [blame] | 156 | from { |
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 157 | background-color: $background-02; |
Derick Montague | 1a606be | 2019-05-23 21:32:28 -0500 | [diff] [blame] | 158 | } |
| 159 | to { |
| 160 | background-color: inherit; |
| 161 | } |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 162 | } |
| 163 | @-moz-keyframes row-flash { |
Derick Montague | 1a606be | 2019-05-23 21:32:28 -0500 | [diff] [blame] | 164 | from { |
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 165 | background-color: $background-02; |
Derick Montague | 1a606be | 2019-05-23 21:32:28 -0500 | [diff] [blame] | 166 | } |
| 167 | to { |
| 168 | background-color: inherit; |
| 169 | } |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 170 | } |
| 171 | @-o-keyframes row-flash { |
Derick Montague | 1a606be | 2019-05-23 21:32:28 -0500 | [diff] [blame] | 172 | from { |
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 173 | background-color: $background-02; |
Derick Montague | 1a606be | 2019-05-23 21:32:28 -0500 | [diff] [blame] | 174 | } |
| 175 | to { |
| 176 | background-color: inherit; |
| 177 | } |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 178 | } |
| 179 | @keyframes row-flash { |
Derick Montague | 1a606be | 2019-05-23 21:32:28 -0500 | [diff] [blame] | 180 | from { |
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 181 | background-color: $background-02; |
Derick Montague | 1a606be | 2019-05-23 21:32:28 -0500 | [diff] [blame] | 182 | } |
| 183 | to { |
| 184 | background-color: inherit; |
| 185 | } |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 186 | } |
| 187 | .row-flash { |
| 188 | -webkit-animation: row-flash 1s infinite; /* Safari 4+ */ |
Derick Montague | 1a606be | 2019-05-23 21:32:28 -0500 | [diff] [blame] | 189 | -moz-animation: row-flash 1s infinite; /* Fx 5+ */ |
| 190 | -o-animation: row-flash 1s infinite; /* Opera 12+ */ |
| 191 | animation: row-flash 1s infinite; /* IE 10+ */ |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 192 | } |
Derick Montague | 1a606be | 2019-05-23 21:32:28 -0500 | [diff] [blame] | 193 | } |
Dixsie Wolmers | c652ed1 | 2019-07-19 13:03:28 -0500 | [diff] [blame] | 194 | |
| 195 | @mixin label { |
| 196 | color: $text-02; |
| 197 | text-transform: uppercase; |
| 198 | font-weight: 700; |
| 199 | font-size: 0.75em; |
| 200 | margin-bottom: 0.5rem; |
| 201 | } |