blob: d13f2ceb78f5a31ca82f616a887275eb576fafb3 [file] [log] [blame]
Michael Daviscb8bb192017-02-09 15:45:13 -06001//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 Davis0f03ad12017-02-27 16:54:18 -060012 } @else if $breakpoint == "medium" {
Michael Daviscb8bb192017-02-09 15:45:13 -060013 @media (min-width: 64.000em) { //1024px
14 @content;
15 }
Michael Davis0f03ad12017-02-27 16:54:18 -060016 } @else if $breakpoint == "large" {
Michael Daviscb8bb192017-02-09 15:45:13 -060017 @media (min-width: 85.375em) { //1366px
18 @content;
19 }
Michael Davis0f03ad12017-02-27 16:54:18 -060020 } @else if $breakpoint == "x-large" {
Michael Daviscb8bb192017-02-09 15:45:13 -060021 @media (min-width: 100.000em) { //1600px
22 @content;
23 }
24 }
25}
26
27//Fonts mixin
28@mixin fontFamily {
Michael Davis0f03ad12017-02-27 16:54:18 -060029 font-family: Helvetica, Arial, Verdana, sans-serif;
Michael Daviscb8bb192017-02-09 15:45:13 -060030 font-weight: 200;
31}
32
Michael Davis51946552017-05-01 10:30:38 -050033@mixin fontFamilyBold {
34 font-family: Helvetica, Arial, Verdana, sans-serif;
35 font-weight: 700;
36}
37
Michael Davis3a0d4712017-03-27 14:01:34 -050038@mixin fontCourierBold {
Iftekharul Islam2284d2c2017-05-02 09:27:24 -050039 font-family: "Courier New", Helvetica, monospace, arial, sans-serif;
Michael Davis3a0d4712017-03-27 14:01:34 -050040 font-weight: 700;
41}
42
Michael Davis51946552017-05-01 10:30:38 -050043//Navigation icons
44@mixin navIcons {
45 color: $white;
46 fill: $white;
47 max-height: 40px;
48 stroke-width: .5;
49 display: block;
50 width: 40px;
51 margin: 0 auto .5em auto;
52 .st0 {
53 fill: none;
54 stroke: #fff;
55 stroke-width: 2;
56 stroke-miterlimit: 10;
57 }
58 .st1 {
59 fill: none;
60 stroke: #fff;
61 stroke-width: 4;
62 stroke-miterlimit: 10;
63 }
64}
65
Michael Daviscb8bb192017-02-09 15:45:13 -060066//Transitions mixin
67@mixin fastTransition-all {
68 transition: all .5s ease;
69}
70
71@mixin slowTransition-all {
72 transition: all 1.5s ease;
73}
74
75//Custom SVG arrow
76@mixin bgImage__arrowDown-primary {
77 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>");
78}
79
80@mixin bgImage__arrowDown-accent {
Michael Davis0f03ad12017-02-27 16:54:18 -060081 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 Daviscb8bb192017-02-09 15:45:13 -060082}
83
84@mixin bgImage__arrowDown-grey {
85 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>");
86}
Michael Davisc5626182017-03-10 15:48:05 -060087
Iftekharul Islam8947e702017-07-27 10:28:07 -050088@mixin calcColumn-5 {
89 min-width: calc(100% * (1/5) - 5px);
90}
Iftekharul Islamcd789502017-04-19 14:37:55 -050091
Michael Davis994a93b2017-04-18 10:01:04 -050092@mixin calcColumn-4 ($offset: 0) {
93 min-width: calc(100% * (1/4) - #{$offset});
94}
95
Iftekharul Islamcd789502017-04-19 14:37:55 -050096@mixin calcColumn-3 {
97 min-width: calc(100% * (1/3) - 5px);
Michael Davis994a93b2017-04-18 10:01:04 -050098}
99
Iftekharul Islamcd789502017-04-19 14:37:55 -0500100@mixin calcSplitColumn {
101 min-width: calc(100% * (1/2) - 5px);
Michael Davis994a93b2017-04-18 10:01:04 -0500102}
103
Michael Davis51946552017-05-01 10:30:38 -0500104@mixin vertCenter {
105 top: 50%;
106 transform: translateY(-50%);
107}
Michael Davis994a93b2017-04-18 10:01:04 -0500108
Michael Davisc5626182017-03-10 15:48:05 -0600109@mixin indeterminate-bar {
110 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);
111 -webkit-animation: progress 2s linear infinite;
112 -moz-animation: progress 2s linear infinite;
113 animation: progress 2s linear infinite;
Michael Davis9486f542017-05-30 15:35:31 -0500114 background-size: 165% 100%;
Michael Davisc5626182017-03-10 15:48:05 -0600115
116 @-webkit-keyframes progress {
117 0% {
Michael Davis9486f542017-05-30 15:35:31 -0500118 background-position: -70px 0;
Michael Davisc5626182017-03-10 15:48:05 -0600119 }
120 100% {
Michael Davis9486f542017-05-30 15:35:31 -0500121 background-position: 0 0;
Michael Davisc5626182017-03-10 15:48:05 -0600122 }
123 }
124
125 @-moz-keyframes progress {
126 0% {
Michael Davis9486f542017-05-30 15:35:31 -0500127 background-position: -70px 0;
Michael Davisc5626182017-03-10 15:48:05 -0600128 }
129 100% {
Michael Davis9486f542017-05-30 15:35:31 -0500130 background-position: 0 0;
Michael Davisc5626182017-03-10 15:48:05 -0600131 }
132 }
133
134 @-ms-keyframes progress {
135 0% {
Michael Davis9486f542017-05-30 15:35:31 -0500136 background-position: -70px 0;
Michael Davisc5626182017-03-10 15:48:05 -0600137 }
138 100% {
Michael Davis9486f542017-05-30 15:35:31 -0500139 background-position: 0 0;
Michael Davisc5626182017-03-10 15:48:05 -0600140 }
141 }
142
143 @keyframes progress {
144 0% {
Michael Davis9486f542017-05-30 15:35:31 -0500145 background-position: -70px 0;
Michael Davisc5626182017-03-10 15:48:05 -0600146 }
147 100% {
Michael Davis9486f542017-05-30 15:35:31 -0500148 background-position: 0 0;
Michael Davisc5626182017-03-10 15:48:05 -0600149 }
150 }
151}
Michael Davis9486f542017-05-30 15:35:31 -0500152
153@mixin table-row-save {
154 @-webkit-keyframes row-flash {
155 from { background-color: $lightblue; }
156 to { background-color: inherit; }
157 }
158 @-moz-keyframes row-flash {
159 from { background-color: $lightblue; }
160 to { background-color: inherit; }
161 }
162 @-o-keyframes row-flash {
163 from { background-color: $lightblue; }
164 to { background-color: inherit; }
165 }
166 @keyframes row-flash {
167 from { background-color: $lightblue; }
168 to { background-color: inherit; }
169 }
170 .row-flash {
171 -webkit-animation: row-flash 1s infinite; /* Safari 4+ */
172 -moz-animation: row-flash 1s infinite; /* Fx 5+ */
173 -o-animation: row-flash 1s infinite; /* Opera 12+ */
174 animation: row-flash 1s infinite; /* IE 10+ */
175 }
176}