about summary refs log tree commit diff stats
path: root/src/pages/components/Input.svelte
blob: 59e584dbf1503998ba51514a139adf17e59fc65b (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
42
43
44
45
46
<script>
  export let value
</script>

<input
  {...$$restProps}
  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);
  }
  @media (max-width: 715px) {
    input {
      width: 200px;
    }
  }
</style>