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
}
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
}
}