mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 02:00:31 +08:00
Enable grayscale loading indicator
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<script lang="ts">
|
||||
import debounce from "lodash/debounce";
|
||||
|
||||
export let grayscale = false;
|
||||
export let small = false;
|
||||
export let center = false;
|
||||
export let fadeIn = false;
|
||||
@@ -50,6 +51,10 @@
|
||||
animation: sk-bouncedelay 1.4s infinite ease-in-out both;
|
||||
}
|
||||
|
||||
.spinner.grayscale > div {
|
||||
background-color: var(--color-fill-ghost);
|
||||
}
|
||||
|
||||
.spinner.condensed > div {
|
||||
-webkit-animation: sk-bouncedelay-condensed 0.7s infinite linear both;
|
||||
animation: sk-bouncedelay-condensed 0.7s infinite linear both;
|
||||
@@ -151,19 +156,14 @@
|
||||
class="spinner"
|
||||
class:fade-in={fadeIn}
|
||||
class:small
|
||||
class:grayscale
|
||||
class:center
|
||||
class:margins
|
||||
class:condensed>
|
||||
<div
|
||||
class="bounce1"
|
||||
style="background-color: var(--color-fill-secondary)" />
|
||||
<div class="bounce1" style="" />
|
||||
{#if !condensed}
|
||||
<div
|
||||
class="bounce2"
|
||||
style="background-color: var(--color-fill-secondary)" />
|
||||
<div
|
||||
class="bounce3"
|
||||
style="background-color: var(--color-fill-secondary)" />
|
||||
<div class="bounce2" />
|
||||
<div class="bounce3" />
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user