File tree 1 file changed +21
-13
lines changed
js_modules/dagster-ui/packages/ui-components/src/components
1 file changed +21
-13
lines changed Original file line number Diff line number Diff line change @@ -8,24 +8,32 @@ export const Skeleton = styled.div<{$height?: string | number; $width?: string |
8
8
display: block;
9
9
min-height: 1.5em;
10
10
border-radius: 6px;
11
- background: linear-gradient(
12
- 90deg,
13
- ${ Colors . backgroundLight ( ) } 25%,
14
- ${ Colors . backgroundLightHover ( ) } 37%,
15
- ${ Colors . backgroundLight ( ) } 63%
16
- );
17
- background-size: 400% 100%;
18
- animation-name: skeleton-loading;
19
- animation-duration: 1.4s;
20
- animation-timing-function: ease;
21
- animation-iteration-count: infinite;
11
+ background: ${ Colors . backgroundLight ( ) } ;
12
+ position: relative;
13
+ overflow: hidden;
14
+
15
+ &::after {
16
+ content: '';
17
+ position: absolute;
18
+ top: 0;
19
+ right: 0;
20
+ bottom: 0;
21
+ left: 0;
22
+ background: linear-gradient(
23
+ 90deg,
24
+ ${ Colors . backgroundLight ( ) } 0%,
25
+ ${ Colors . backgroundLightHover ( ) } 50%,
26
+ ${ Colors . backgroundLight ( ) } 100%
27
+ );
28
+ animation: skeleton-loading 1.4s ease infinite;
29
+ }
22
30
23
31
@keyframes skeleton-loading {
24
32
0% {
25
- background-position: 100% 50% ;
33
+ transform: translateX(- 100%) ;
26
34
}
27
35
100% {
28
- background-position: 0 50% ;
36
+ transform: translateX(100%) ;
29
37
}
30
38
}
31
39
` ;
You can’t perform that action at this time.
0 commit comments