forked from Binaryify/vue-tetris
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloader.less
75 lines (75 loc) · 1.54 KB
/
loader.less
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
.load {
@-webkit-keyframes loads {
0%,
80%,
100% {
box-shadow: 0 0 #efcc19;
height: 4em
}
40% {
box-shadow: 0 -2em #efcc19;
height: 5em
}
}
@keyframes loads {
0%,
80%,
100% {
box-shadow: 0 0 #efcc19;
height: 4em
}
40% {
box-shadow: 0 -2em #efcc19;
height: 5em
}
}
width:240px;
height:240px;
float:left;
position:relative;
color:#fff;
text-align:center;
position:absolute;
top:50%;
left:50%;
margin:-120px 0 0 -120px;
p {
position: absolute;
bottom: 0;
left: -25%;
width: 150%;
white-space: nowrap;
display: none;
}
.loader {
&,
&:before,
&:after {
background: #efcc19;
-webkit-animation: loads 1s infinite ease-in-out;
animation: loads 1s infinite ease-in-out;
width: 1em;
height: 4em
}
&:before,
&:after {
position: absolute;
top: 0;
content: ''
}
&:before {
left: -1.5em;
-webkit-animation-delay: -0.32s;
animation-delay: -0.32s
}
text-indent:-9999em;
margin:8em auto;
position:relative;
font-size:11px;
-webkit-animation-delay:-0.16s;
animation-delay:-0.16s;
&:after {
left: 1.5em
}
}
}