diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:23:16 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:23:16 +0000 |
commit | 3e97c51418e6d27e9a81906f347fcb7c78e27d4f (patch) | |
tree | ee596ce1bc9840661386f96f9b8d1f919a106317 /vendor/gipfl/diff/public/css | |
parent | Initial commit. (diff) | |
download | icingaweb2-module-incubator-3e97c51418e6d27e9a81906f347fcb7c78e27d4f.tar.xz icingaweb2-module-incubator-3e97c51418e6d27e9a81906f347fcb7c78e27d4f.zip |
Adding upstream version 0.20.0.upstream/0.20.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/gipfl/diff/public/css')
-rw-r--r-- | vendor/gipfl/diff/public/css/diff.less | 133 |
1 files changed, 133 insertions, 0 deletions
diff --git a/vendor/gipfl/diff/public/css/diff.less b/vendor/gipfl/diff/public/css/diff.less new file mode 100644 index 0000000..1dc2ef6 --- /dev/null +++ b/vendor/gipfl/diff/public/css/diff.less @@ -0,0 +1,133 @@ +@color-diff-ins: @color-ok; +@color-diff-del: @color-critical; +@color-diff-changed-old: fade(@color-critical, 30%); +@color-diff-changed-new: fade(@color-ok, 30%); +@color-diff-green-shade-light: #dfd; +@color-diff-pale-green: #9e9; +@color-diff-text-on-diff: #051030; +@color-change-replace-del: #e99; + +.Differences { + width: 100%; + table-layout: fixed; + empty-cells: show; +} + +.Differences thead { + display: none; +} + +.Differences thead th { + text-align: left; + padding-left: 4 / 14 * 16em; +} + +.Differences tbody th { + text-align: right; + width: 4em; + padding: 1px 2px; + border-right: 1px solid @gray-light; + background: @gray-lightest; + font-weight: normal; + vertical-align: top; +} + +.Differences tbody td { + color: @text-color; + width: 50%; + .preformatted(); + word-break: break-all; +} + +.DifferencesSideBySide { + ins, del { + text-decoration: none; + } + + .ChangeInsert { + td.Left { + background: @gray-lighter; + } + td.Right { + background: @color-diff-changed-new; + color: @color-diff-text-on-diff; + } + } + + .ChangeDelete { + td.Left { + background: @color-diff-changed-old; + color: @color-diff-text-on-diff; + } + td.Right { + background: @gray-lighter; + } + } + + .ChangeReplace { + td.Left { + background: @color-diff-changed-old; + color: @color-diff-text-on-diff; + del { + background: @color-diff-del; + } + } + + td.Right { + background: @color-diff-changed-new; + color: @color-diff-text-on-diff; + ins { + background: @color-diff-ins; + } + } + + } +} + +.Differences .Skipped { + background: @gray-lightest; +} + +.DifferencesInline .ChangeReplace .Left, +.DifferencesInline .ChangeDelete .Left { + background: @color-diff-changed-old; +} + +.DifferencesInline .ChangeReplace .Right, +.DifferencesInline .ChangeInsert .Right { + background: @color-diff-green-shade-light; +} + +.DifferencesInline .ChangeReplace ins { + background: @color-diff-pale-green; +} + +.DifferencesInline .ChangeReplace del { + background: @color-change-replace-del; +} + +.DifferencesInline { + tr td:last-child { + width: 90%; + } + tr th:first-child { + width: 5%; + } + tr th:nth-child(2) { + width: 5%; + } + ins, del { + text-decoration: none; + } +} + +#layout.compact-layout, #layout.default-layout { + &.twocols table.Differences { + th { + font-size: 0.75em; + } + td { + font-size: 0.916em; + } + } +} |