2019-12-07 21:02:00 +02:00
|
|
|
@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;
|
2020-10-23 01:23:59 +03:00
|
|
|
font-size: 20px;
|
2016-08-14 11:58:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.spins {
|
2020-10-23 01:23:59 +03:00
|
|
|
height: 2em;
|
|
|
|
display: flex;
|
|
|
|
flex-shrink: 1;
|
|
|
|
flex-basis: 0;
|
|
|
|
flex-direction: row;
|
2016-08-14 11:58:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.spin {
|
2020-10-23 01:23:59 +03:00
|
|
|
height: 1em;
|
|
|
|
width: 1em;
|
2020-05-24 02:08:24 +03:00
|
|
|
display: inline-block;
|
2020-10-23 01:23:59 +03:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2020-10-23 01:23:59 +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
|
|
|
}
|