-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstyles.css
More file actions
54 lines (44 loc) · 1.21 KB
/
styles.css
File metadata and controls
54 lines (44 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
.loading-animation {
--size: 0.4em;
--half-size: 0.2em;
--gap: 0.1em;
--color: transparent;
--transition-duration: 1s;
display: flex;
align-items: center;
&.compact {
--size: 0.24em;
--half-size: 0.12em;
--gap: 0.06em;
}
&.light {
--color: var(--tui-color-loading-particle-light);
}
&.dark {
--color: var(--tui-color-loading-particle-dark);
}
.particle {
flex-shrink: 0;
margin: var(--gap);
border-radius: 50%;
background-color: var(--color);
width: var(--size);
height: var(--size);
animation: wiggle-vertically var(--transition-duration) linear infinite;
&:nth-child(1) {
animation-delay: 0;
}
&:nth-child(2) {
animation-delay: calc(var(--transition-duration) / 3);
}
&:nth-child(3) {
animation-delay: calc(2 * var(--transition-duration) / 3);
}
}
}
@keyframes wiggle-vertically {
0% { transform: translateY(0); }
25% { transform: translateY(calc(-1 * var(--half-size))); }
75% { transform: translateY(calc(-1 * var(--half-size))); }
100% { transform: translateY(0); }
}