From c1d6c368d77515a6c4fb5bba335e29b227a7c673 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 14 Sep 2015 17:01:10 +0200 Subject: [PATCH] module.less: style new config diff HTML --- public/css/module.less | 49 ++++++++++++++++++++++++++++++++---------- 1 file changed, 38 insertions(+), 11 deletions(-) diff --git a/public/css/module.less b/public/css/module.less index 587c5f9e..72ee2a66 100644 --- a/public/css/module.less +++ b/public/css/module.less @@ -184,17 +184,6 @@ table.log-properties { span { padding: 0.3em 1em; } - - .old { - background-color: @colorCriticalHandled; - color: white; - text-decoration: stroken; - } - - .new { - background-color: @colorOk; - color: white; - } } p.error { @@ -337,3 +326,41 @@ table.simple { .tree a.service { background-image: url('../img/director/service.png'); } .tree a.command { background-image: url('../img/director/script.png'); } +.diff { + font-family: monospace; + white-space: pre-wrap; + + + del, ins { + text-decoration: none; + } + + del { + color: @colorCritical; + background-color: #fdd; + } + + ins { + color: @colorOk; + background-color: #dfd; + } +} + +div.diff { +/* line-height: 1.8em; + height: 1.8em;*/ + margin: 0; + padding: 0; + overflow: hidden; +} + + +.diff.old ins { + display: none; +} + +.diff.new del { + display: none; +} + +