60 lines
791 B
SCSS
Raw Normal View History

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