Merge pull request #129 from BinaryAlley/feature/add-gradient-to-library-scan-progress-bar

Adds gradient animation to library scan progress bars
This commit is contained in:
BinaryAlley authored and GitHub committed 2025-03-01 19:14:45 +00:00
commit b894add1f6
1 file changed
+28
@@ -55,9 +55,23 @@
.scan-progress-job > div {
height: 100%;
background: #4CAF50;
position: relative;
overflow: hidden;
transition: width 0.3s ease;
}
.scan-progress-total > div::after,
.scan-progress-job > div::after {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient( 90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100% );
animation: progress-pulse 8s infinite;
}
.icon-groups {
flex: 0 0 auto; /* prevent shrinking */
display: flex;
@@ -97,6 +111,20 @@
height: 20px;
cursor: pointer;
}
@@keyframes progress-pulse {
0% {
left: -100%;
}
15% {
left: 100%;
}
100% {
left: 100%;
}
}
</style>
<div style="display: grid; grid-template-rows: auto 1fr;"><!--container with two rows, one fixed, one filling remaining space-->