aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Pinpad.svelte
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-03-19 10:23:34 -0700
committerAdam Soltys <[email protected]>2024-03-19 10:23:34 -0700
commita4685f61e656ed0e3cd343073931867955be3281 (patch)
treec28c446ef0f6d5cbc37a7c58f954c145bd18ef80 /src/components/Pinpad.svelte
parentc6c2ac113186ba304c46580320df91c119ab5314 (diff)
parente2bb9d704878070054fa8ef81da73b248e2c4f97 (diff)
downloadcoinos-ui-a4685f61e656ed0e3cd343073931867955be3281.tar.gz
coinos-ui-a4685f61e656ed0e3cd343073931867955be3281.zip
Merge remote-tracking branch 'muriwolf/swapee' into swapee
Diffstat (limited to 'src/components/Pinpad.svelte')
-rw-r--r--src/components/Pinpad.svelte12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/components/Pinpad.svelte b/src/components/Pinpad.svelte
index 641ddb2b..1dc20366 100644
--- a/src/components/Pinpad.svelte
+++ b/src/components/Pinpad.svelte
@@ -45,14 +45,14 @@
use:focus
bind:value={v}
type="password"
- class="outline-none border-0 text-center py-0"
+ class="outline-none border-0 text-center py-0 dark:bg-stone-800 dark:text-white"
pattern="[0-9]+"
/>
{:else}
<input
on:keydown={validate}
bind:value={v}
- class="outline-none border-0 text-center py-0"
+ class="outline-none border-0 text-center py-0 dark:bg-stone-800 dark:text-white"
type="text"
pattern="[0-9]+"
/>
@@ -60,18 +60,18 @@
<button
type="button"
on:click={() => (hide = !hide)}
- class="absolute -right-5 top-5"
+ class="absolute -right-5 dark:invert {hide ? 'top-5' : 'top-[22px]'}"
>
<Icon icon={hide ? "eye-off" : "eye"} style="w-8" />
</button>
</div>
- <div class="grid grid-cols-3 gap-2 w-[300px] mx-auto grayscale">
+ <div class="grid grid-cols-3 gap-2 w-[300px] mx-auto">
{#each numPad as value}
{#if value === arrow}
<button
type="button"
- class="bg-primary rounded-xl py-4 px-8 font-semibold active:bg-black active:text-white flex justify-center items-center hover:opacity-80"
+ class="bg-primary dark:bg-stone-700 rounded-xl py-4 px-8 font-semibold dark:text-gray-50 active:bg-black active:text-white flex justify-center items-center hover:opacity-80"
on:click={() => handleInput(value)}
>
<Left />
@@ -79,7 +79,7 @@
{:else}
<button
type="button"
- class="bg-primary rounded-xl py-4 px-8 font-semibold active:bg-black active:text-white hover:opacity-80"
+ class="bg-primary dark:bg-stone-700 rounded-xl py-4 px-8 font-semibold dark:text-gray-50 active:bg-black dark:active:bg-stone-900 active:text-white hover:opacity-80"
on:click={() => handleInput(value)}>{value}</button
>
{/if}