File size: 2,148 Bytes
03d9a71 |
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 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
import { Theme, css, keyframes } from 'antd-style';
const progressAnimation = keyframes`
0% {
background-position: 0 0;
}
100% {
background-position: 24px 24px;
}
`;
export default (token: Theme) => css`
.progress-container {
flex-direction: column;
}
.eta-bar {
overflow: hidden;
opacity: 1 !important;
background: linear-gradient(
to right,
${token.colorFillQuaternary},
${token.colorFill}
) !important;
backdrop-filter: saturate(180%) blur(10px);
border: 1px solid ${token.colorBorder};
border-radius: ${token.borderRadius}px;
}
.wrap.svelte-j1gjts:has(div) {
overflow: hidden;
min-height: 36px;
background: ${token.colorBgContainer} !important;
border-radius: ${token.borderRadius}px;
box-shadow: 0 0 0 2px ${token.colorBgContainer};
.meta-text,
.meta-text-center {
font-size: 12px;
color: ${token.colorTextDescription};
}
}
.progressDiv {
position: relative !important;
top: 0 !important;
overflow: hidden;
background: ${token.colorBgElevated} !important;
> .progress {
position: relative;
overflow: hidden;
display: flex;
align-items: center;
justify-content: flex-end;
line-height: 1;
text-shadow: 0 1px 1px rgba(0, 0, 0, 40%);
&::before {
content: '';
position: absolute;
z-index: 1;
inset: 0;
overflow: hidden;
background-image: linear-gradient(
-45deg,
rgba(255, 255, 255, 20%) 25%,
transparent 25%,
transparent 50%,
rgba(255, 255, 255, 20%) 50%,
rgba(255, 255, 255, 20%) 75%,
transparent 75%,
transparent
);
background-size: 24px 24px;
animation: ${progressAnimation} 2s linear infinite;
}
&::after {
content: '';
position: absolute;
z-index: 1;
inset: 0;
overflow: hidden;
background-image: linear-gradient(to bottom, rgba(255, 255, 255, 40%), transparent 50%);
}
}
}
`;
|