Merge pull request #11439 from BerkeleyTrue/feat/shadow-settings

feat(app): render spinner on `/settings`
This commit is contained in:
Quincy Larson
2016-11-08 16:59:16 -08:00
committed by GitHub
8 changed files with 177 additions and 105 deletions

View File

@@ -1151,3 +1151,4 @@ and (max-width : 400px) {
@import "toastr.less";
@import "map.less";
@import "drawers.less";
@import "sk-wave.less";

36
client/less/sk-wave.less Normal file
View File

@@ -0,0 +1,36 @@
// original source:
// https://github.com/tobiasahlin/SpinKit
@duration: 3s;
@delayRange: 1s;
.create-wave-child(@numOfCol, @iter: 2) when (@iter <= @numOfCol) {
div:nth-child(@{iter}) {
animation-delay: -(@duration - (@delayRange / (@numOfCol - 1)) * (@iter - 1));
}
.create-wave-child(@numOfCol, (@iter + 1));
}
.sk-wave {
height: 100px;
margin: 100px auto;
text-align: center;
width: 50px;
> div {
animation: sk-stretchdelay @duration infinite ease-in-out;
background-color: @brand-primary;
display: inline-block;
height: 100%;
margin-right: 2px;
width: 6px;
}
.create-wave-child(5)
}
@keyframes sk-stretchdelay {
0%, 40%, 100% {
transform: scaleY(0.4);
}
20% {
transform: scaleY(1.0);
}
}