From c24dd0a79753013a80698a9e6e5153fe6e81646d Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 16 Mar 2022 09:52:54 +0100 Subject: [PATCH] css: Ensure compatibility with Icinga Web 2.10 --- public/css/module.less | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/public/css/module.less b/public/css/module.less index 1f9d2e4..78f42c3 100644 --- a/public/css/module.less +++ b/public/css/module.less @@ -756,25 +756,6 @@ table.sourcecode { } } -.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; - } -} - /** Forms stolen from director **/ .content form { margin-bottom: 2em; @@ -1036,6 +1017,25 @@ textarea.smaller { @color-diff-changed-old: #fdd; @color-diff-changed-new: #efe; +.diff { + font-family: monospace; + white-space: pre-wrap; + + del, ins { + text-decoration: none; + } + + del { + color: @color-critical; + background-color: #fdd; + } + + ins { + color: @color-ok; + background-color: #dfd; + } +} + .DifferencesSideBySide { ins, del { text-decoration: none; @@ -1061,6 +1061,7 @@ textarea.smaller { .ChangeReplace { td.Left { + color: black; background: @color-diff-changed-old; del { background: @color-diff-del; @@ -1068,6 +1069,7 @@ textarea.smaller { } td.Right { + color: black; background: @color-diff-changed-new; ins { background: @color-diff-ins;