accounts-frontend/packages/app/components/ui/loader/componentLoader.scss

60 lines
791 B
SCSS
Raw Permalink Normal View History

@import '~app/components/ui/colors.scss';
2016-08-14 14:28:14 +05:30
.componentLoader {
2020-05-24 04:38:24 +05:30
text-align: center;
font-size: 20px;
2016-08-14 14:28:14 +05:30
}
.spins {
height: 2em;
display: flex;
flex-shrink: 1;
flex-basis: 0;
flex-direction: row;
2016-08-14 14:28:14 +05:30
}
.spin {
height: 1em;
width: 1em;
2020-05-24 04:38:24 +05:30
display: inline-block;
margin: 0.5em 0.1em;
2020-05-24 04:38:24 +05:30
opacity: 0;
animation: loaderAnimation 1s infinite;
2016-08-14 14:28:14 +05:30
}
@for $i from 0 to 5 {
.spin#{$i} {
animation-delay: 0.1s * $i;
}
2016-08-14 14:28:14 +05:30
}
/**
* Skins
*/
.lightComponentLoader {
2020-05-24 04:38:24 +05:30
.spin {
background: #aaa;
}
2016-08-14 14:28:14 +05:30
}
.darkComponentLoader {
2020-05-24 04:38:24 +05:30
.spin {
background: #444;
}
2016-08-14 14:28:14 +05:30
}
@keyframes loaderAnimation {
2020-05-24 04:38:24 +05:30
0% {
opacity: 0;
}
2016-08-14 14:28:14 +05:30
2020-05-24 04:38:24 +05:30
50% {
opacity: 1;
transform: scaleY(2);
}
2016-08-14 14:28:14 +05:30
2020-05-24 04:38:24 +05:30
100% {
opacity: 0;
}
2016-08-14 14:28:14 +05:30
}