aboutsummaryrefslogtreecommitdiff
path: root/gitweb/static
diff options
context:
space:
mode:
authorJakub Narebski <jnareb@gmail.com>2011-10-31 00:36:23 +0100
committerJunio C Hamano <gitster@pobox.com>2011-10-31 15:22:57 -0700
commit970fac5e24966d7e296cd044de6a6d0ba585c8c5 (patch)
tree49322d621ea0251f2f1854fe83b0bff775006886 /gitweb/static
parent6ba1eb51b94c4777d84e4c9c868096735b1e16dd (diff)
downloadgit-970fac5e24966d7e296cd044de6a6d0ba585c8c5.tar.gz
git-970fac5e24966d7e296cd044de6a6d0ba585c8c5.tar.xz
gitweb: Give side-by-side diff extra CSS styling
Use separate background colors for pure removal, pure addition and change for side-by-side diff. This makes reading such diff easier, allowing to easily distinguish empty lines in diff from vertical whitespace used to align chunk blocks. Note that if lines in diff were numbered, the absence of line numbers [for one side] would help in distinguishing empty lines from vertical align. Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitweb/static')
-rw-r--r--gitweb/static/gitweb.css13
1 files changed, 13 insertions, 0 deletions
diff --git a/gitweb/static/gitweb.css b/gitweb/static/gitweb.css
index 21842a66a..c7827e8f1 100644
--- a/gitweb/static/gitweb.css
+++ b/gitweb/static/gitweb.css
@@ -491,6 +491,19 @@ div.chunk_block div.new {
width: 50%;
}
+div.chunk_block.rem div.old div.diff.rem {
+ background-color: #fff5f5;
+}
+div.chunk_block.add div.new div.diff.add {
+ background-color: #f8fff8;
+}
+div.chunk_block.chg div div.diff {
+ background-color: #fffff0;
+}
+div.chunk_block.ctx div div.diff.ctx {
+ color: #404040;
+}
+
div.index_include {
border: solid #d9d8d1;