From da5c399552e266e73df787986a0a61db344eb7e7 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 22 Jan 2020 18:37:57 -0500 Subject: [PATCH] accessibility: improve contrast of diffs --- gitsrht/templates/utils.html | 2 ++ scss/main.scss | 10 +++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gitsrht/templates/utils.html b/gitsrht/templates/utils.html index 48ddd41..dad52be 100644 --- a/gitsrht/templates/utils.html +++ b/gitsrht/templates/utils.html @@ -168,6 +168,8 @@ endif %}{% endfor %} }).get(line.origin) or ""}}">{{line.content}}{# #}{% endfor %} diff --git a/scss/main.scss b/scss/main.scss index 1d2f9a1..503d704 100644 --- a/scss/main.scss +++ b/scss/main.scss @@ -159,12 +159,16 @@ pre { } .diff { - .text-danger { - color: darken($danger, 10) !important; + .lineno { + text-decoration: none; } .text-success { - color: darken($success, 10) !important; + color: color_adjust_contrast_AERT(darken($success, 10), white) !important; + } + + .text-danger { + color: color_adjust_contrast_AERT(darken($danger, 10), white) !important; } } -- 2.38.4