blob: 4c1a751f24bd0c078cb423120875488d879684a7 [file] [log] [blame]
Matteo Scandolo042ea632017-03-01 19:02:34 -08001@import '../vars';
2
3.loader,
4.loader:before,
5.loader:after {
6 background: $color-accent;
7 animation: loaderAnimation 1s infinite ease-in-out;
8 width: 1em;
9 height: 4em;
10}
11.loader {
12 color: $color-accent;
13 text-indent: -9999em;
14 margin: 88px auto;
15 position: relative;
16 font-size: 11px;
17 transform: translateZ(0);
18 animation-delay: -0.16s;
19}
20.loader:before,
21.loader:after {
22 position: absolute;
23 top: 0;
24 content: '';
25}
26.loader:before {
27 left: -1.5em;
28 animation-delay: -0.32s;
29}
30.loader:after {
31 left: 1.5em;
32}
33
34@keyframes loaderAnimation {
35 0%,
36 80%,
37 100% {
38 box-shadow: 0 0;
39 height: 4em;
40 }
41 40% {
42 box-shadow: 0 -2em;
43 height: 5em;
44 }
45}