From b5d7c96bbad12d3d73f2454a4d7943e854aaa443 Mon Sep 17 00:00:00 2001 From: Ali Ayas Date: Sun, 23 Feb 2014 13:11:10 +0200 Subject: [PATCH] Apply GitHub diff colors However, jsdifflib is still not a good approach. It requires dumping all the two text to the browser and do the work there. Instead, maybe the diff should be taken from the git itself and highlighting should be applied on that. OTOH, word level diff would be good when applicable (like GitHub does). --- src/main/webapp/assets/jsdifflib/diffview.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/assets/jsdifflib/diffview.css b/src/main/webapp/assets/jsdifflib/diffview.css index 811a593b7..4c4a7c7f2 100644 --- a/src/main/webapp/assets/jsdifflib/diffview.css +++ b/src/main/webapp/assets/jsdifflib/diffview.css @@ -66,7 +66,7 @@ table.diff .replace { background-color:#FD8 } table.diff .delete { - background-color:#E99; + background-color:#FFDDDD; } table.diff .skip { background-color:#EFEFEF; @@ -74,10 +74,10 @@ table.diff .skip { border-right:1px solid #BBC; } table.diff .insert { - background-color:#9E9 + background-color:#DDFFDD } table.diff th.author { text-align:right; border-top:1px solid #BBC; background:#EFEFEF -} \ No newline at end of file +}