diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-04-18 11:30:10 +0200 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-04-18 11:30:10 +0200 |
commit | 18652c6ff5e10208298bea67ffce6b4ed327c97d (patch) | |
tree | 9c0cca8139007641c9fd9a1cbfcff179953a1054 /components | |
parent | 59459df904674bc3eaa95f4203113793c7c7fc9a (diff) |
search page without inline css
Diffstat (limited to 'components')
-rw-r--r-- | components/ui.tsx | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/components/ui.tsx b/components/ui.tsx index e2d19ad..60b80f4 100644 --- a/components/ui.tsx +++ b/components/ui.tsx @@ -12,14 +12,11 @@ export function Vierkant(props: { children?: ReactNode; className?: string; id?: string; - fullwidth?: boolean; onclick?: () => void; }) { return <a href={props.href} - className={['bg-800', 'round-l', 'pad-l', 'vierkant', props.className, props.fullwidth && 'fullwidth'].join( - ' ', - )} + className={['bg-800', 'round-l', 'vierkant', props.className].join(' ')} id={props.id} onClick={props.onclick} > @@ -98,6 +95,7 @@ export function Input(props: { dark?: boolean; autocomplete?: string; autofocus?: boolean; + className?: string; }) { return <input id={props.id} @@ -107,20 +105,9 @@ export function Input(props: { placeholder={props.label} spellCheck={false} defaultValue={props.value ? String(props.value) : ''} - className={props.dark ? 'dark' : 'light'} + className={"input" + " " + (props.dark ? 'dark' : 'light') + " " + props.className} autoComplete={props.autocomplete} autoFocus={props.autofocus} - style={{ - padding: 12, - border: 0, - width: 'calc(100% - 24px)', - fontSize: 14, - backgroundColor: 'var(--page-background)', - color: 'var(--text-alt)', - borderRadius: 8, - fontFamily: 'Inter', - ...props.style, - }} />; } |