|
6 | 6 | $darkblue: color.adjust(map.get($palette, "blue"), $lightness: -10%); |
7 | 7 | $inner-color: $darkblue; |
8 | 8 | $outer-color: map.get($palette, "white"); |
| 9 | + |
9 | 10 | @if $inverted { |
10 | 11 | $inner-color: map.get($palette, "white"); |
11 | 12 | $outer-color: $darkblue; |
12 | 13 | } |
| 14 | + |
13 | 15 | // meets 3:1 contrast for WCAG when over a white background |
14 | 16 | outline: 3px solid $inner-color; |
15 | 17 | box-shadow: 0 0 0 6px $outer-color; |
16 | 18 | } |
17 | 19 |
|
18 | 20 | @mixin columns($width, $number: 2, $gap: 0) { |
19 | | - -webkit-columns: $width $number; |
20 | | - -moz-columns: $width $number; |
21 | 21 | columns: $width $number; |
22 | | - -webkit-column-gap: $gap; |
23 | | - -moz-column-gap: $gap; |
24 | 22 | column-gap: $gap; |
25 | | - -webkit-column-rule: 1px solid map.get($palette, "light-grey"); |
26 | | - -moz-column-rule: 1px solid map.get($palette, "light-grey"); |
27 | 23 | column-rule: 1px solid map.get($palette, "light-grey"); |
28 | 24 | } |
29 | 25 |
|
30 | | -@mixin translateY($value) { |
31 | | - -ms-transform: translateY($value); |
32 | | - -webkit-transform: translateY($value); |
33 | | - -moz-transform: translateY($value); |
34 | | - -o-transform: translateY($value); |
35 | | - transform: translateY($value); |
36 | | -} |
37 | | - |
38 | | -// background size for images |
39 | | -@mixin background-size($width, $height) { |
40 | | - -webkit-background-size: $width $height; |
41 | | - -moz-background-size: $width $height; |
42 | | - background-size: $width $height; |
43 | | -} |
44 | | - |
45 | 26 | // animations |
46 | 27 | @mixin animation($name, $interval: 0.8s, $steps: 10, $length: infinite) { |
47 | | - -webkit-animation: $name $interval steps($steps) $length; |
48 | | - -moz-animation: $name $interval steps($steps) $length; |
49 | | - -ms-animation: $name $interval steps($steps) $length; |
50 | | - -o-animation: $name $interval steps($steps) $length; |
51 | 28 | animation: $name $interval steps($steps) $length; |
52 | 29 | } |
53 | 30 |
|
54 | | -@mixin keyframes($name, $to, $from: 0) { |
55 | | - @-webkit-keyframes $name { |
56 | | - from { |
57 | | - background-position: $from; |
58 | | - } |
59 | | - |
60 | | - to { |
61 | | - background-position: $to; |
62 | | - } |
63 | | - } |
64 | | - |
65 | | - @-moz-keyframes $name { |
66 | | - from { |
67 | | - background-position: $from; |
68 | | - } |
69 | | - |
70 | | - to { |
71 | | - background-position: $to; |
72 | | - } |
73 | | - } |
74 | | - |
75 | | - @-ms-keyframes $name { |
76 | | - from { |
77 | | - background-position: $from; |
78 | | - } |
79 | | - |
80 | | - to { |
81 | | - background-position: $to; |
82 | | - } |
83 | | - } |
84 | | - |
85 | | - @-o-keyframes $name { |
86 | | - from { |
87 | | - background-position: $from; |
88 | | - } |
89 | | - |
90 | | - to { |
91 | | - background-position: $to; |
92 | | - } |
93 | | - } |
94 | | - |
95 | | - @keyframes $name { |
96 | | - from { |
97 | | - background-position: $from; |
98 | | - } |
99 | | - |
100 | | - to { |
101 | | - background-position: $to; |
102 | | - } |
103 | | - } |
104 | | -} |
105 | | - |
106 | 31 | // media queries for screen width |
107 | 32 | @mixin responsive($width) { |
108 | 33 | @if $width == medium-screens { |
|
121 | 46 | } |
122 | 47 |
|
123 | 48 | // media queries for screen height |
124 | | -@mixin responsive_height($height) { |
| 49 | +@mixin responsive-height($height) { |
125 | 50 | @if $height == tall-screens { |
126 | 51 | @media only screen and (max-height: $height-lg) { |
127 | 52 | @content; |
|
137 | 62 | } |
138 | 63 | } |
139 | 64 |
|
140 | | -@mixin responsive_mobile_landscape() { |
| 65 | +@mixin responsive-mobile-landscape() { |
141 | 66 | @media only screen and (orientation: landscape) and (height <= $height-sm) { |
142 | 67 | @content; |
143 | 68 | } |
|
0 commit comments