-
Notifications
You must be signed in to change notification settings - Fork 0
/
_auk-loader.scss
75 lines (63 loc) · 1.45 KB
/
_auk-loader.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/* ==========================================================================
auk-loader
========================================================================== */
.auk-loader-wrapper {
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 6rem 0;
.auk-loader {
margin-bottom: 0.5rem;
}
}
.auk-loader-wrapper--small {
padding: 0;
}
.auk-loader {
display: inline-block;
position: relative;
width: 3rem;
height: 1.6rem;
&:before {
animation: loader-wave infinite 1s linear;
position: absolute;
display: block;
content: "";
width: 0.4rem;
height: 0.4rem;
box-shadow: 1rem 0 #666, 2rem 0 #666, 3rem 0 #666;
border-radius: 50%;
margin-top: -0.2rem;
margin-left: -2.2rem;
top: 50%;
left: 50%;
}
}
@keyframes #{loader-wave} {
0% {
box-shadow: 1rem -0 #666, 2rem -0 #666, 3rem 0 #666;
}
10% {
box-shadow: 1rem -0.3rem #666, 2rem -0 #666, 3rem -0 #666;
}
20% {
box-shadow: 1rem -0.6rem #666, 2rem -0.3rem #666, 3rem -0 #666;
}
30% {
box-shadow: 1rem -0.3rem #666, 2rem -0.6rem #666, 3rem -0.3rem #666;
}
40% {
box-shadow: 1rem -0 #666, 2rem -0.3rem #666, 3rem -0.6rem #666;
}
50% {
box-shadow: 1rem -0 #666, 2rem -0 #666, 3rem -0.3rem #666;
}
60% {
box-shadow: 1rem -0 #666, 2rem -0 #666, 3rem -0 #666;
}
100% {
box-shadow: 1rem -0 #666, 2rem -0 #666, 3rem -0 #666;
}
}