blob: 6caeba7a6c04c1b27cad11c17e888f1d4c94b5e6 [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 Davis3a0d4712017-03-27 14:01:34 -050033@mixin fontCourierBold {
34 font-family: "Courier New", Helvetica, arial, sans-serif;
35 font-weight: 700;
36}
37
Michael Daviscb8bb192017-02-09 15:45:13 -060038//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 Davis0f03ad12017-02-27 16:54:18 -060053 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 -060054}
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 Davisc5626182017-03-10 15:48:05 -060059
60@mixin indeterminate-bar {
61 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);
62 -webkit-animation: progress 2s linear infinite;
63 -moz-animation: progress 2s linear infinite;
64 animation: progress 2s linear infinite;
65 background-size: 130% 100%;
66
67 @-webkit-keyframes progress {
68 0% {
69 background-position: 0 0;
70 }
71 100% {
72 background-position: -70px 0;
73 }
74 }
75
76 @-moz-keyframes progress {
77 0% {
78 background-position: 0 0;
79 }
80 100% {
81 background-position: -70px 0;
82 }
83 }
84
85 @-ms-keyframes progress {
86 0% {
87 background-position: 0 0;
88 }
89 100% {
90 background-position: -70px 0;
91 }
92 }
93
94 @keyframes progress {
95 0% {
96 background-position: 0 0;
97 }
98 100% {
99 background-position: -70px 0;
100 }
101 }
102}