lbry-desktop/src/renderer/scss/component/_spinner.scss

55 lines
752 B
SCSS
Raw Normal View History

2017-12-01 04:51:55 +01:00
.spinner {
2018-03-26 23:32:43 +02:00
margin: $spacing-vertical * 1/3;
width: 50px;
height: 40px;
text-align: center;
font-size: 10px;
.rect {
display: inline-block;
height: 100%;
width: 6px;
margin: 0 2px;
animation: sk-stretchdelay 1.2s infinite ease-in-out;
&.rect2 {
animation-delay: -1.1s;
2017-12-01 04:51:55 +01:00
}
2018-03-26 23:32:43 +02:00
&.rect3 {
animation-delay: -1s;
2017-12-01 04:51:55 +01:00
}
2018-03-26 23:32:43 +02:00
&.rect4 {
animation-delay: -0.9s;
}
2017-12-01 04:51:55 +01:00
2018-03-26 23:32:43 +02:00
&.rect5 {
animation-delay: -0.8s;
}
2017-12-01 04:51:55 +01:00
}
2018-03-26 23:32:43 +02:00
}
2017-12-01 04:51:55 +01:00
.spinner--light {
.rect {
background-color: var(--color-white);
}
}
2018-03-26 23:32:43 +02:00
.spinner--dark {
.rect {
background-color: var(--color-black);
2017-12-01 04:51:55 +01:00
}
}
2018-03-26 23:32:43 +02:00
@keyframes sk-stretchdelay {
0%,
40%,
100% {
transform: scaleY(0.4);
2017-12-01 04:51:55 +01:00
}
2018-03-26 23:32:43 +02:00
20% {
transform: scaleY(1);
2017-12-01 04:51:55 +01:00
}
}