summaryrefslogtreecommitdiffstats
path: root/asset/css/cancel-button.less
blob: 76403991a75fce21402a01d76781bc82e778f653 (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
.cancel-button {
  display: inline-flex;
  align-items: baseline;
  padding: .5em 1em;

  .appearance(none);
  .rounded-corners();
  line-height: normal;
  cursor: pointer;

  background: var(--cancel-button-bg, @cancel-button-bg);
  border: 1px solid var(--cancel-button-border-color, @cancel-button-border-color);
  color: var(--cancel-button-color, @cancel-button-color);

  &:focus,
  &:hover {
    background-color: var(--cancel-button-hover-bg, @cancel-button-hover-bg);
    color: var(--cancel-button-hover-color, @cancel-button-hover-color);
  }

  &[disabled] {
    background: none;
    cursor: default;

    border: 1px solid var(--control-disabled-color, @control-disabled-color);
    color: var(--control-disabled-color, @control-disabled-color);

    &:focus,
    &:hover {
      background: none;
      color: var(--control-disabled-color, @control-disabled-color);
    }
  }
}