Spinner
This commit is contained in:
@@ -15,6 +15,7 @@
|
|||||||
disabled={isRunning || deleting}
|
disabled={isRunning || deleting}
|
||||||
>
|
>
|
||||||
{#if isRunning}
|
{#if isRunning}
|
||||||
|
<span class="spinner"></span>
|
||||||
{label} Syncing...
|
{label} Syncing...
|
||||||
{:else}
|
{:else}
|
||||||
Sync from {label}
|
Sync from {label}
|
||||||
@@ -37,4 +38,22 @@
|
|||||||
.dcl-btn:hover:not(:disabled) {
|
.dcl-btn:hover:not(:disabled) {
|
||||||
background-color: #d35400;
|
background-color: #d35400;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Spinner animation */
|
||||||
|
.spinner {
|
||||||
|
display: inline-block;
|
||||||
|
width: 1rem;
|
||||||
|
height: 1rem;
|
||||||
|
margin-right: 0.5rem;
|
||||||
|
border: 2px solid rgba(255, 255, 255, 0.3);
|
||||||
|
border-radius: 50%;
|
||||||
|
border-top-color: white;
|
||||||
|
animation: spin 0.8s linear infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes spin {
|
||||||
|
to {
|
||||||
|
transform: rotate(360deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user