2015-03-18 03:11:34 +08:00
|
|
|
@import "ui-variables";
|
|
|
|
|
|
|
|
.spinner {
|
|
|
|
margin: 0;
|
|
|
|
width: 94px;
|
|
|
|
text-align: center;
|
|
|
|
opacity: 1;
|
2015-03-26 03:41:48 +08:00
|
|
|
-webkit-transition: opacity 0.2s linear; //transition
|
2015-03-18 03:11:34 +08:00
|
|
|
}
|
2015-03-19 09:21:04 +08:00
|
|
|
|
2015-03-18 03:11:34 +08:00
|
|
|
.spinner.hidden {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
.spinner.paused {
|
|
|
|
> div {
|
|
|
|
// important. animating with opacity 0 chews up about 5% cpu
|
|
|
|
-webkit-animation-play-state: paused;
|
|
|
|
animation-play-state: paused;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-04-25 00:36:19 +08:00
|
|
|
.spinner-cover {
|
|
|
|
&.hidden {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-03-18 03:11:34 +08:00
|
|
|
.spinner > div {
|
|
|
|
width: 18px;
|
|
|
|
height: 18px;
|
|
|
|
background-color: @gray-light;
|
|
|
|
|
|
|
|
border-radius: 100%;
|
|
|
|
display: inline-block;
|
|
|
|
-webkit-animation: bouncedelay 1.2s infinite ease-in-out;
|
|
|
|
animation: bouncedelay 1.2s infinite ease-in-out;
|
|
|
|
/* Prevent first frame from flickering when animation starts */
|
|
|
|
-webkit-animation-fill-mode: both;
|
|
|
|
animation-fill-mode: both;
|
|
|
|
margin-right:4px;
|
|
|
|
margin-left:4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.spinner .bounce1 {
|
|
|
|
-webkit-animation-delay: -0.32s;
|
|
|
|
animation-delay: -0.32s;
|
|
|
|
}
|
|
|
|
|
|
|
|
.spinner .bounce2 {
|
|
|
|
-webkit-animation-delay: -0.16s;
|
|
|
|
animation-delay: -0.16s;
|
|
|
|
}
|
|
|
|
|
|
|
|
@-webkit-keyframes bouncedelay {
|
|
|
|
0%, 80%, 100% { -webkit-transform: scale(0.0) }
|
|
|
|
40% { -webkit-transform: scale(1.0) }
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes bouncedelay {
|
|
|
|
0%, 80%, 100% {
|
|
|
|
transform: scale(0.0);
|
|
|
|
-webkit-transform: scale(0.0);
|
|
|
|
} 40% {
|
|
|
|
transform: scale(1.0);
|
|
|
|
-webkit-transform: scale(1.0);
|
|
|
|
}
|
2015-04-25 00:36:19 +08:00
|
|
|
}
|