[icinga-checkins] icinga.org: icingaweb2/feature/add-to-dashboard-4537: FilterEditor: make active element fit hover colors

git at icinga.org git at icinga.org
Wed Nov 19 11:48:11 CET 2014


Module: icingaweb2
Branch: feature/add-to-dashboard-4537
Commit: 704a87c0f252b83ee40b297f7c65cd6507cde709
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=704a87c0f252b83ee40b297f7c65cd6507cde709

Author: Thomas Gelf <thomas at gelf.net>
Date:   Wed Nov 19 10:07:30 2014 +0100

FilterEditor: make active element fit hover colors

---

 library/Icinga/Web/Widget/FilterEditor.php |    6 +++---
 public/css/icinga/widgets.less             |    4 ++++
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/library/Icinga/Web/Widget/FilterEditor.php b/library/Icinga/Web/Widget/FilterEditor.php
index 2abc897..3b7f10e 100644
--- a/library/Icinga/Web/Widget/FilterEditor.php
+++ b/library/Icinga/Web/Widget/FilterEditor.php
@@ -346,7 +346,7 @@ class FilterEditor extends AbstractWidget
     protected function renderFilter($filter, $level = 0)
     {
         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) {
@@ -403,7 +403,7 @@ class FilterEditor extends AbstractWidget
                   . $this->text($filter)
                   . $this->removeLink($filter)
                   . $this->addLink($filter)
-                  . '</li><li style="background-color: #ffb">'
+                  . '</li><li class="active">'
                   . $this->renderNewFilter() .$this->cancelLink()
                   . '</li></ul>'
                   ;
@@ -670,7 +670,7 @@ class FilterEditor extends AbstractWidget
               . '<form action="'
               . Url::fromRequest()
               . '" class="filterEditor" method="POST">'
-              . '<ul class="tree"><li>'
+              . '<ul class="tree widgetFilter"><li>'
               . $this->renderFilter($this->filter)
               . '</li></ul>'
               . '<div style="float: right">'
diff --git a/public/css/icinga/widgets.less b/public/css/icinga/widgets.less
index 2870f7c..235783f 100644
--- a/public/css/icinga/widgets.less
+++ b/public/css/icinga/widgets.less
@@ -251,3 +251,7 @@ li li .badge {
 .badge-pending {
   background-color: @colorUnknown;
 }
+
+.widgetFilter li.active {
+    background-color: #eee;
+}



More information about the icinga-checkins mailing list