Skip to content

Commit

Permalink
#141 - Show animated spinner when upload progress is 0%.
Browse files Browse the repository at this point in the history
  • Loading branch information
maraf committed Oct 5, 2020
1 parent e4b7098 commit 67279ef
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ public string StatusCssClass
if (Progress.Status == "done")
return "text-success";
else if (Progress.Status == "current")
return $"text-primary";
return Progress.Percentual == 0 ? "loading-circle" : $"text-primary";
else if (Progress.Status == "error")
return "text-danger";
else if (Progress.Status == "pending")
Expand Down
20 changes: 20 additions & 0 deletions src/Recollections.Blazor.UI/wwwroot/css/_loading.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,23 @@
}
}
}

.loading-circle {
border: 8px solid #BCBFBE;
border-top: 8px solid #007BFF;
border-radius: 50%;
width: 60px;
height: 60px;
animation: spin 2s linear infinite;
color: transparent;
}

@keyframes spin {
0% {
transform: rotate(0deg);
}

100% {
transform: rotate(360deg);
}
}
15 changes: 15 additions & 0 deletions src/Recollections.Blazor.UI/wwwroot/css/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,21 @@ a {
top: 19px;
height: 26px; } }

.loading-circle {
border: 8px solid #BCBFBE;
border-top: 8px solid #007BFF;
border-radius: 50%;
width: 60px;
height: 60px;
animation: spin 2s linear infinite;
color: transparent; }

@keyframes spin {
0% {
transform: rotate(0deg); }
100% {
transform: rotate(360deg); } }

.inline-editor .oi-check, .inline-editor .fa-check {
color: var(--green); }

Expand Down
2 changes: 1 addition & 1 deletion src/Recollections.Blazor.UI/wwwroot/css/site.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 67279ef

Please sign in to comment.