Repository navigation
Expand file tree
/
Copy pathloader.css
More file actions
61 lines (54 loc) · 1.44 KB
/
Copy pathloader.css
File metadata and controls
61 lines (54 loc) · 1.44 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
54
55
56
57
58
59
60
61
/* ============================================================================
Default loader styling used by @_linked/react's built-in loading element.
Apps override .ld-loader (size, color, animation) to brand the loader, or
replace the element entirely via LinkedComponentDefaults.loader.
============================================================================ */
.ld-loader {
width: 1.5em;
height: 1.5em;
color: var(--color-gray-500);
display: inline-block;
vertical-align: middle;
}
.ld-loader__track {
stroke-width: 2;
opacity: 0.2;
}
.ld-loader__arc {
stroke-width: 2;
stroke-linecap: round;
stroke-dasharray: 56.5; /* approx 2*PI*9 */
stroke-dashoffset: 42.4; /* leaves a 25% visible arc */
transform-origin: center;
animation: ld-loader-spin 900ms linear infinite;
}
@keyframes ld-loader-spin {
to {
transform: rotate(360deg);
}
}
/* Opt-in branded infinity loader: import LinkedInfinityLoader from
@_linked/react and set it as the app-wide loader. */
.ld-loader--infinity {
width: 3em;
height: 1.5em;
color: var(--color-primary-500);
}
.ld-loader--infinity path {
stroke-width: 2;
stroke-linecap: round;
stroke-dasharray: 160;
stroke-dashoffset: 160;
animation: ld-loader-infinity-trace 2400ms ease-in-out infinite;
}
@keyframes ld-loader-infinity-trace {
0% {
stroke-dashoffset: 160;
}
50% {
stroke-dashoffset: 0;
}
100% {
stroke-dashoffset: -160;
}
}