summaryrefslogtreecommitdiff
path: root/src/assets/styles/bmc/custom/_buttons.scss
blob: b9b8073b2c98d09bf3c1f02d6425308e81104290 (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
.btn {
  font-weight: $headings-font-weight;
  padding-top: $spacer / 2;
  padding-right: $spacer;
  padding-bottom: $spacer / 2;
  padding-left: $spacer;

  // Buttons with SVGs and text expect
  // text to be wrapped in a span element
  svg + span {
    margin-left: $spacer / 4;
  }
}

.btn-primary {
  fill: currentColor;
}

.btn-secondary {
  fill: currentColor;
}

.btn-link {
  fill: $primary;
  text-decoration: none !important;

  &:focus {
    box-shadow: $btn-focus-box-shadow;
  }
  &:hover {
    fill: darken($primary, 15%);
  }
}

.btn:disabled {
  color: $gray-600;
  fill: currentColor;

  &:not(.btn-link) {
    border-color: $gray-400;
    background-color: $gray-400;
  }
}