summaryrefslogtreecommitdiffstats
path: root/public/css/widget/state-badge.less
blob: 2f81c1eaa4fb163c25581ef935538a46be74a69c (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: @text-color-on-icinga-blue;
  display: inline-block;
  font-size: 1em;
  min-width: 2em;
  padding: .25em;
  text-align: center;

  &.handled {
    opacity: .8;
  }

  &.state-critical {
    background-color: @color-critical;
  }

  &.state-down {
    background-color: @color-down;
  }

  &.state-ok {
    background-color: @color-ok;
  }

  &.state-pending {
    background-color: @color-pending;
  }

  &.state-unknown {
    background-color: @color-unknown;
  }

  &.state-up {
    background-color: @color-up;
  }

  &.state-warning {
    background-color: @color-warning;
  }
}

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