refac
This commit is contained in:
1 parent
db934a3b4f
commit
ba067258de
39 files changed
+1540
-1442
No files matched your search
@@ -1,7 +1,6 @@
|
||||
<script lang="ts">
|
||||
const i18n = getContext('i18n');
|
||||
import { getContext } from 'svelte';
|
||||
import { settings } from '$lib/stores';
|
||||
export let id = 'password-input';
|
||||
export let value: string = '';
|
||||
export let placeholder = '';
|
||||
@@ -17,7 +16,7 @@
|
||||
|
||||
let show = false;
|
||||
|
||||
const highContrastInputClass =
|
||||
const inputChromeClass =
|
||||
'rounded-lg border border-gray-100/50 bg-gray-50/40 px-2 py-1.5 text-gray-700 outline-hidden transition-colors placeholder:text-gray-300 focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-gray-300 dark:placeholder:text-gray-700 dark:focus:border-blue-500';
|
||||
</script>
|
||||
|
||||
@@ -27,7 +26,7 @@
|
||||
{/if}
|
||||
<input
|
||||
{id}
|
||||
class={`${inputClassName} ${show ? '' : 'password'} ${($settings?.highContrastMode ?? false) ? highContrastInputClass : ' outline-hidden placeholder:text-gray-300 dark:placeholder:text-gray-600'}`}
|
||||
class={`${inputClassName} ${show ? '' : 'password'} ${inputChromeClass}`}
|
||||
{placeholder}
|
||||
type={type === 'password' && !show ? 'password' : 'text'}
|
||||
bind:value
|
||||
|
||||
Reference in new issue
Block a user