aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Pinpad.svelte
diff options
context:
space:
mode:
authorMurillo Pinheiro de Oliveira <[email protected]>2024-02-18 19:50:45 -0300
committerMurillo Pinheiro de Oliveira <[email protected]>2024-02-18 19:50:45 -0300
commit5c80d3b511d7f83486d0f195400f382e5b721ec3 (patch)
treeb10ab016528cda70e44d63a0bb5c7c99c9625d28 /src/components/Pinpad.svelte
parent12609903a777413171ec71e646d4eb775414e6a3 (diff)
downloadcoinos-ui-5c80d3b511d7f83486d0f195400f382e5b721ec3.tar.gz
coinos-ui-5c80d3b511d7f83486d0f195400f382e5b721ec3.zip
updated: dark theme
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}