Upgraded from NET 6.0 to NET 7.0 and added loading circle

This commit is contained in:
BOT Alex 2023-07-14 20:58:26 +08:00
parent 5d72c2d2e5
commit 808299c61b
3 changed files with 48 additions and 6 deletions

View file

@ -62,3 +62,38 @@ a, .btn-link {
.blazor-error-boundary::after {
content: "An error has occurred."
}
.loading-progress {
position: relative;
display: block;
width: 8rem;
height: 8rem;
margin: 20vh auto 1rem auto;
background-color: dimgray;
border-radius: 5em;
}
.loading-progress circle {
fill: none;
stroke: #e0e0e0;
stroke-width: 0.6rem;
transform-origin: 50% 50%;
transform: rotate(-90deg);
}
.loading-progress circle:last-child {
stroke: #1b6ec2;
stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
transition: stroke-dasharray 0.05s ease-in-out;
}
.loading-progress-text {
position: absolute;
text-align: center;
font-weight: bold;
color: aliceblue;
inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}
.loading-progress-text:after {
content: var(--blazor-load-percentage-text, "Loading");
}