From a1e4f707a8d54bc41e38b38a49e9cb8839ed5bf7 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 31 Aug 2022 23:06:27 -0700 Subject: form styles --- src/components/RegisterOrLogin.svelte | 16 +++++++++++----- src/routes/+layout.svelte | 15 +++++++++++++++ src/routes/[username]/settings/_account.svelte | 7 ++----- src/routes/invoice/[id]/+page.svelte | 6 +++--- 4 files changed, 31 insertions(+), 13 deletions(-) (limited to 'src') diff --git a/src/components/RegisterOrLogin.svelte b/src/components/RegisterOrLogin.svelte index e4c490d6..83b1be54 100644 --- a/src/components/RegisterOrLogin.svelte +++ b/src/components/RegisterOrLogin.svelte @@ -43,7 +43,7 @@ name="email" type="email" required - class="bg-primary p-4 rounded-2xl w-full" + class="bg-primary" bind:value={email} autofocus /> @@ -56,7 +56,7 @@ name="username" type="text" required - class="bg-primary p-4 rounded-2xl w-full" + class="bg-primary" bind:value={username} autofocus={pageID === 'signIn'} /> @@ -69,7 +69,7 @@ name="password" type="text" required - class="block bg-primary p-4 rounded-2xl w-full" + class="bg-primary" bind:value={password} /> {:else} @@ -77,7 +77,7 @@ name="password" type="password" required - class="block bg-primary p-4 rounded-2xl w-full" + class="bg-primary" bind:value={password} /> {/if} @@ -97,7 +97,7 @@ @@ -133,3 +133,9 @@ + + diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index ed26835d..8163bd70 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -55,4 +55,19 @@ button.primary { @apply rounded-full border py-2 font-bold my-4 flex px-4 bg-white mx-auto hover:bg-primary; } + + input { + @apply block border rounded-2xl px-5 py-4 w-full outline-none; + } + + select { + @apply border rounded-2xl py-4 px-5; + -webkit-appearance: none; + -moz-appearance: none; + background: transparent; + background-image: url('/icons/down.svg'); + background-repeat: no-repeat; + background-position-x: 100%; + background-position-y: 0.7em; + } diff --git a/src/routes/[username]/settings/_account.svelte b/src/routes/[username]/settings/_account.svelte index 68af0841..ff718637 100644 --- a/src/routes/[username]/settings/_account.svelte +++ b/src/routes/[username]/settings/_account.svelte @@ -34,7 +34,6 @@ @@ -45,16 +44,15 @@ type="text" name="username" bind:value={$user.username} - class="block border rounded-xl p-3 w-full" />
{#if revealPassword} - + {:else} - + {/if}
diff --git a/src/routes/invoice/[id]/+page.svelte b/src/routes/invoice/[id]/+page.svelte index b9584b97..a76d4bc2 100644 --- a/src/routes/invoice/[id]/+page.svelte +++ b/src/routes/invoice/[id]/+page.svelte @@ -193,7 +193,7 @@ min="0" max="100" value={tipPercent} - class="px-2" + class="px-2 py-0" on:input={handleSlide} /> @@ -212,7 +212,7 @@
$ @@ -221,7 +221,7 @@ type="number" min="0" on:input={(e) => handleCustomTipAmount(e)} - class="bg-primary rounded-2xl py-3 px-10 font-semibold mt-2 mr-1 w-full md:w-auto" + class="pl-10" placeholder="Other" />