summaryrefslogtreecommitdiffstats
path: root/asset/css/state-badge.less
blob: 355aa85d4f303f06a808dc881d03dfc3e070486e (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
.state-badge {
  .rounded-corners();
  color: var(--default-text-color-inverted, @default-text-color-inverted);
  display: inline-block;
  font-size: 1em;
  min-width: 2em;
  padding: .25em;
  text-align: center;

  &.handled {
    opacity: .8;
  }

  &.state-critical {
    background-color: var(--state-critical, @state-critical);
  }

  &.state-down {
    background-color: var(--state-down, @state-down);
  }

  &.state-ok {
    background-color: var(--state-ok, @state-ok);
  }

  &.state-pending {
    background-color: var(--state-pending, @state-pending);
  }

  &.state-unknown {
    background-color: var(--state-unknown, @state-unknown);
  }

  &.state-up {
    background-color: var(--state-up, @state-up);
  }

  &.state-warning {
    background-color: var(--state-warning, @state-warning);
  }
}

a .state-badge {
  &:not(.disabled):hover {
    filter: brightness(80%);
  }
}