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).
This commit is contained in:
Ali Ayas
2014-02-23 13:11:10 +02:00
parent 39091240ff
commit b5d7c96bba

View File

@@ -66,7 +66,7 @@ table.diff .replace {
background-color:#FD8 background-color:#FD8
} }
table.diff .delete { table.diff .delete {
background-color:#E99; background-color:#FFDDDD;
} }
table.diff .skip { table.diff .skip {
background-color:#EFEFEF; background-color:#EFEFEF;
@@ -74,7 +74,7 @@ table.diff .skip {
border-right:1px solid #BBC; border-right:1px solid #BBC;
} }
table.diff .insert { table.diff .insert {
background-color:#9E9 background-color:#DDFFDD
} }
table.diff th.author { table.diff th.author {
text-align:right; text-align:right;