monitoring/css: Rename prefix for background colors from bg-state to bg-color

This commit is contained in:
Eric Lippmann 2015-09-07 11:07:55 +02:00
parent 644148e9ac
commit e155e1514a
2 changed files with 9 additions and 9 deletions

View File

@ -77,7 +77,7 @@ $hostFilter = '(host_name=' . implode('|host_name=', array_keys($pivotData)) . '
), ),
array( array(
'aria-describedby' => $ariaDescribedById, 'aria-describedby' => $ariaDescribedById,
'class' => 'bg-state-' . Service::getStateText($service->service_state) . ($service->service_handled ? ' handled' : ''), 'class' => 'bg-color-' . Service::getStateText($service->service_state) . ($service->service_handled ? ' handled' : ''),
'title' => $this->escape($service->service_output), 'title' => $this->escape($service->service_output),
'aria-label' => sprintf( 'aria-label' => sprintf(
$this->translate('Show detailed information for service %s on host %s'), $this->translate('Show detailed information for service %s on host %s'),

View File

@ -1,11 +1,11 @@
/*! Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */ /*! Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
.bg-state-ok, .bg-color-ok,
.bg-state-up { .bg-color-up {
background-color: @colorOk; background-color: @colorOk;
} }
.bg-state-warning { .bg-color-warning {
background-color: @colorWarning; background-color: @colorWarning;
&.handled { &.handled {
@ -13,8 +13,8 @@
} }
} }
.bg-state-critical, .bg-color-critical,
.bg-state-down { .bg-color-down {
background-color: @colorCritical; background-color: @colorCritical;
&.handled { &.handled {
@ -22,7 +22,7 @@
} }
} }
.bg-state-unreachable { .bg-color-unreachable {
background-color: @colorUnreachable; background-color: @colorUnreachable;
&.handled { &.handled {
@ -30,7 +30,7 @@
} }
} }
.bg-state-unknown { .bg-color-unknown {
background-color: @colorUnknown; background-color: @colorUnknown;
&.handled { &.handled {
@ -38,7 +38,7 @@
} }
} }
.bg-state-pending { .bg-color-pending {
background-color: @colorPending; background-color: @colorPending;
} }