mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 00:04:04 +02:00
FilterEditor: make active element fit hover colors
This commit is contained in:
parent
3f6c28dfb3
commit
704a87c0f2
@ -346,7 +346,7 @@ class FilterEditor extends AbstractWidget
|
|||||||
protected function renderFilter($filter, $level = 0)
|
protected function renderFilter($filter, $level = 0)
|
||||||
{
|
{
|
||||||
if ($level === 0 && $filter->isChain() && $filter->isEmpty()) {
|
if ($level === 0 && $filter->isChain() && $filter->isEmpty()) {
|
||||||
return '<ul class="datafilter"><li style="background-color: #ffb">' . $this->renderNewFilter() . '</li></ul>';
|
return '<ul class="datafilter"><li class="active">' . $this->renderNewFilter() . '</li></ul>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($filter instanceof FilterChain) {
|
if ($filter instanceof FilterChain) {
|
||||||
@ -403,7 +403,7 @@ class FilterEditor extends AbstractWidget
|
|||||||
. $this->text($filter)
|
. $this->text($filter)
|
||||||
. $this->removeLink($filter)
|
. $this->removeLink($filter)
|
||||||
. $this->addLink($filter)
|
. $this->addLink($filter)
|
||||||
. '</li><li style="background-color: #ffb">'
|
. '</li><li class="active">'
|
||||||
. $this->renderNewFilter() .$this->cancelLink()
|
. $this->renderNewFilter() .$this->cancelLink()
|
||||||
. '</li></ul>'
|
. '</li></ul>'
|
||||||
;
|
;
|
||||||
@ -670,7 +670,7 @@ class FilterEditor extends AbstractWidget
|
|||||||
. '<form action="'
|
. '<form action="'
|
||||||
. Url::fromRequest()
|
. Url::fromRequest()
|
||||||
. '" class="filterEditor" method="POST">'
|
. '" class="filterEditor" method="POST">'
|
||||||
. '<ul class="tree"><li>'
|
. '<ul class="tree widgetFilter"><li>'
|
||||||
. $this->renderFilter($this->filter)
|
. $this->renderFilter($this->filter)
|
||||||
. '</li></ul>'
|
. '</li></ul>'
|
||||||
. '<div style="float: right">'
|
. '<div style="float: right">'
|
||||||
|
@ -251,3 +251,7 @@ li li .badge {
|
|||||||
.badge-pending {
|
.badge-pending {
|
||||||
background-color: @colorUnknown;
|
background-color: @colorUnknown;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.widgetFilter li.active {
|
||||||
|
background-color: #eee;
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user