Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Ray Schamp committed Nov 4, 2015
1 parent 1304f9e commit 6f50282
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions src/components/spinner/spinner.scss
Original file line number Diff line number Diff line change
@@ -1,39 +1,41 @@
@import "../../colors";

.spinner {
position: relative;
width: 20px;
height: 20px;
position: relative;

.circle {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
left: 0;
width: 100%;
height: 100%;

&:before {
content: '';
display: block;
animation: circleFadeDelay 1.2s infinite ease-in-out both;
margin: 0 auto;
border-radius: 100%;
background-color: $overlay-gray;
width: 15%;
height: 15%;
background-color: #333;
border-radius: 100%;
content: "";
-webkit-animation: circleFadeDelay 1.2s infinite ease-in-out both;
animation: circleFadeDelay 1.2s infinite ease-in-out both;
}
}

@for $i from 1 through 12 {
$rotation: 30deg * ($i - 1);
$delay: -1.3s + $i * .1;
.circle#{$i} {
-webkit-transform: rotate($rotation);
-ms-transform: rotate($rotation);
transform: rotate($rotation);
-ms-transform: rotate($rotation);
-webkit-transform: rotate($rotation);
}
.circle#{$i}:before {
-webkit-animation-delay: $delay;
animation-delay: $delay;
-webkit-animation-delay: $delay;
}
}

Expand All @@ -42,4 +44,4 @@
@keyframes circleFadeDelay {
0%, 39%, 100% { opacity: 0; }
40% { opacity: 1; }
}
}

0 comments on commit 6f50282

Please sign in to comment.