[icinga-checkins] icinga.org: icingaweb2-module-director/feature/self-service-host-api-12915 : css: use font icon when highlighting errors

git at icinga.org git at icinga.org
Thu Oct 13 14:02:00 CEST 2016


Module: icingaweb2-module-director
Branch: feature/self-service-host-api-12915
Commit: ad11f89abf503b58a76eb343e3ffd9d360ba085f
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=ad11f89abf503b58a76eb343e3ffd9d360ba085f

Author: Thomas Gelf <thomas at gelf.net>
Date:   Thu Oct 13 12:00:06 2016 +0000

css: use font icon when highlighting errors

---

 public/css/module.less |   27 +++++++++++++++++----------
 1 file changed, 17 insertions(+), 10 deletions(-)

diff --git a/public/css/module.less b/public/css/module.less
index 056d42e..83507f9 100644
--- a/public/css/module.less
+++ b/public/css/module.less
@@ -101,23 +101,30 @@ pre.logfile {
 
 pre.generated-config {
 
-  .highlight {
-    padding-left: 0.5em;
-
     a {
       color: inherit;
+      font-weight: bold;
     }
 
-    &.critical {
-      border-left: 0.5em solid @color-critical;
-    }
 
-    &.warning {
-      border-left: 0.5em solid @color-warning;
+  .highlight {
+    &::before {
+      // icon: right-big
+      font-family: 'ifont';
+      content: '\e826';
+      margin-left: -1em;
+      padding-top: 0em;
+      float: left;
     }
 
-    &.information {
-      border-left: 0.5em solid @color-ok;
+    &.critical::before {
+      color: @color-critical;
+    }
+    &.warning::before {
+      color: @color-warning;
+    }
+    &.ok::before {
+      color: @color-ok;
     }
   }
 }



More information about the icinga-checkins mailing list