diff options
Diffstat (limited to 'asset/css/state-badge.less')
-rw-r--r-- | asset/css/state-badge.less | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/asset/css/state-badge.less b/asset/css/state-badge.less new file mode 100644 index 0000000..25097a8 --- /dev/null +++ b/asset/css/state-badge.less @@ -0,0 +1,52 @@ +.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); + } + + &.state-none { + background-color: var(--state-none, @state-none); + color: var(--text-color-light, @text-color-light); + } +} + +a .state-badge { + &:not(.disabled):hover { + filter: brightness(80%); + } +} |