summaryrefslogtreecommitdiff
path: root/WebInterface/NodeJSServer/src/style/partials/_btn.scss
blob: cf5ee33ac3fd5170f0e55975799d8468d5d1ba83 (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
@import 'colors';

.btn {
  border: none;
  border-radius: 4px;
  padding: 8px;
  margin: 0;
  font-size: 1rem;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: bold;
  display: inline-block;
  background-color: $secondary;
  color: $secondary-text;
  text-transform: uppercase;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  cursor: pointer;
  letter-spacing: 0.25rem;

  background-position: center;
  transition: background 800ms ease, box-shadow 100ms ease, color 200ms ease;

  &:hover {
    background: $secondary-dark radial-gradient(circle, transparent 1%, $secondary-dark 1%) center/15000%;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  }

  &:active {
    background-color: $secondary-light;
    background-size: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    transition: background 0s, box-shadow 0s;
  }

  &:disabled {
    color: $secondary-text-disabled;
    background: $secondary-disabled;
    box-shadow: none;
    transition: background 200ms ease, box-shadow 200ms ease, color 200ms ease;
  }
}

.text-btn {
  padding: 8px;
  margin: 0;
  font-size: 1rem;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: bold;
  display: inline-block;
  color: $secondary-text;
  background-color: rgba(0, 0, 0, 0);
  text-transform: uppercase;
  box-shadow: none;

  background-position: center;
  transition: background 800ms ease, box-shadow 100ms ease, color 200ms ease;

  &:hover {
    background: $secondary-dark-transparent radial-gradient(circle, transparent 1%, $secondary-dark-transparent 1%) center/15000%;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  }

  &:active {
    background-color: $secondary-light;
    background-size: 100%;
    box-shadow: none;
    transition: background 0s, box-shadow 0s;
  }

  &:disabled {
    background: rgba(0,0,0,0);
    color: $secondary-text-disabled;
    box-shadow: none;
    transition: background 200ms ease, box-shadow 200ms ease, color 200ms ease;
  }
}