From b8f25caf7e190bb40a97ba5cfa3dc079e8da2013 Mon Sep 17 00:00:00 2001 From: EETagent Date: Sun, 4 Dec 2022 12:59:59 +0100 Subject: [PATCH] refactor: refactor text field styles --- .../src/lib/components/textfield/TextField.svelte | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/frontend/src/lib/components/textfield/TextField.svelte b/frontend/src/lib/components/textfield/TextField.svelte index 951c2c9..069a4e2 100644 --- a/frontend/src/lib/components/textfield/TextField.svelte +++ b/frontend/src/lib/components/textfield/TextField.svelte @@ -10,7 +10,7 @@ export let error: string = ''; -
+
{#if icon} - + {/if} @@ -35,6 +34,15 @@ input { @apply w-full; } + div { + @apply relative flex items-center justify-center; + } + input { + @apply hover:border-sspsBlue w-full rounded-lg border border-2 bg-[#f8fafb] p-3 text-xl shadow-lg outline-none transition-colors duration-300; + } + div span { + @apply absolute right-0 top-0 bottom-0 my-auto flex bg-transparent p-3; + } .withIcon { @apply pr-14; }