about summary refs log tree commit diff stats
path: root/src/pages/components/Input.svelte
blob: d963233cec8db7562fa9167a8fe4cadcda5e5a14 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<script>
  export let value
</script>

<input
  {...$$props}
  bind:value
  on:blur
  on:change
  on:click
  on:contextmenu
  on:focus
  on:keydown
  on:keypress
  on:keyup
  on:mouseover
  on:mouseenter
  on:mouseleave
  on:paste
  on:input
/>

<style>
  input {
    font-weight: bold;
    box-sizing: border-box;
    color: var(--text);
    font-size: 16px;
    padding: 8px;
    background-color: var(--bg-secondary);
    border: none;
    margin: 0;
    width: 400px;
    border-radius: 3px;
    outline-color: var(--active);
  }

  input:focus {
    outline-color: var(--active);
  }
</style>