about summary refs log tree commit diff stats
path: root/src/pages/components/Button.svelte
blob: 6ae2ba61907eab55baf209011c6fab0083db60ec (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
<button {...$$restProps} on:click {...$$props}>
  <slot></slot>
</button>

<style>
  button {
    color: var(--text);
    border: none;
    text-decoration: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition-duration: 0.1s;
    display: inline-flex;
    align-items: center;
    margin: 7.5px 0;
    background-color: var(--bg-secondary);
    border-radius: 5px;
    padding: 10px;
  }

  button:hover:enabled {
    color: var(--active);
  }

  button:active:enabled {
    transform: translateY(1px);
  }

  button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
  }
  
</style>