summaryrefslogtreecommitdiff
path: root/css/component/button.css
blob: cf0f86244d87476697c41eb4b28601e8df04dd57 (plain)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: $margin-m-2;
  font-size: $font-size-header;
  font-weight: $font-weight-medium;
  transition: all $transition-duration ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
  user-select: none;
  outline: none;
  padding: $margin-m-0 $margin-l-0;
}
.btn:focus-visible {
  outline: 2px solid $color-accent;
  outline-offset: 2px;
}
.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}
.btn-default {
  background-color: $color-text-primary;
  color: $color-background;
}
.btn-default:hover {
  opacity: 0.9;
}
.btn-default:active {
  opacity: 0.95;
}
.btn-outline {
  border: 1px solid $color-border;
  background-color: transparent;
  color: $color-text-primary;
}
.btn-outline:hover {
  border-color: $color-accent;
  color: $color-accent;
}
.btn-ghost {
  background-color: transparent;
  color: $color-text-primary;
}
.btn-ghost:hover {
  background-color: $color-text-fourth;
}
.btn-link {
  background-color: transparent;
  color: $color-accent;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.btn-link:hover {
  text-decoration: none;
}
@-moz-keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@-webkit-keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@-o-keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}