2015-11-03 19:02:28 -05:00
|
|
|
@import "../../colors";
|
|
|
|
|
2015-11-03 18:45:38 -05:00
|
|
|
.spinner {
|
2015-11-03 19:02:28 -05:00
|
|
|
position: relative;
|
2015-11-03 18:45:38 -05:00
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
|
|
|
|
.circle {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
2015-11-03 19:02:28 -05:00
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2015-11-03 18:45:38 -05:00
|
|
|
|
|
|
|
&:before {
|
|
|
|
display: block;
|
2015-11-03 19:02:28 -05:00
|
|
|
animation: circleFadeDelay 1.2s infinite ease-in-out both;
|
2015-11-03 18:45:38 -05:00
|
|
|
margin: 0 auto;
|
2015-11-03 19:02:28 -05:00
|
|
|
border-radius: 100%;
|
2015-11-04 14:30:58 -05:00
|
|
|
background-color: darken($ui-blue, 8%);
|
2015-11-03 18:45:38 -05:00
|
|
|
width: 15%;
|
|
|
|
height: 15%;
|
2015-11-03 19:02:28 -05:00
|
|
|
content: "";
|
2015-11-03 18:45:38 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@for $i from 1 through 12 {
|
|
|
|
$rotation: 30deg * ($i - 1);
|
|
|
|
$delay: -1.3s + $i * .1;
|
2016-03-23 18:34:54 -04:00
|
|
|
|
2015-11-03 18:45:38 -05:00
|
|
|
.circle#{$i} {
|
|
|
|
transform: rotate($rotation);
|
2016-03-23 18:34:54 -04:00
|
|
|
|
|
|
|
&:before {
|
|
|
|
animation-delay: $delay;
|
|
|
|
}
|
2015-11-03 18:45:38 -05:00
|
|
|
}
|
2016-03-23 18:34:54 -04:00
|
|
|
|
2015-11-03 18:45:38 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes circleFadeDelay {
|
2016-03-23 18:34:54 -04:00
|
|
|
0%,
|
|
|
|
39%,
|
|
|
|
100% {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
40% {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2015-11-03 19:02:28 -05:00
|
|
|
}
|