aboutsummaryrefslogtreecommitdiff
path: root/gitweb/gitweb.css
diff options
context:
space:
mode:
authorJakub Narebski <jnareb@gmail.com>2006-08-25 21:05:07 +0200
committerJunio C Hamano <junkio@cox.net>2006-08-25 19:41:12 -0700
commitef10ee877f6d4db4c9bc65d0e36b3670f0fe114e (patch)
tree143b95ba3833cdb3242300e9ab5e6160401cdf72 /gitweb/gitweb.css
parente4e4f825455f2903e4d015e51c09ec0527a0be86 (diff)
downloadgit-ef10ee877f6d4db4c9bc65d0e36b3670f0fe114e.tar.gz
git-ef10ee877f6d4db4c9bc65d0e36b3670f0fe114e.tar.xz
gitweb: Add invisible hyperlink to from-file/to-file diff header
Change replacing hashes as from-file/to-file with filenames from difftree to adding invisible (except underlining on hover/mouseover) hyperlink to from-file/to-file blob. /dev/null as from-file or to-file is not changed (is not hyperlinked). This makes two-file from-file/to-file unified diff header parsing in git_patchset_body more generic, and not only for legacy blobdiffs. Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'gitweb/gitweb.css')
-rw-r--r--gitweb/gitweb.css10
1 files changed, 10 insertions, 0 deletions
diff --git a/gitweb/gitweb.css b/gitweb/gitweb.css
index 0912361ac..afd9e8a56 100644
--- a/gitweb/gitweb.css
+++ b/gitweb/gitweb.css
@@ -273,11 +273,21 @@ td.mode {
font-family: monospace;
}
+div.diff a.list {
+ text-decoration: none;
+}
+
+div.diff a.list:hover {
+ text-decoration: underline;
+}
+
+div.diff.to_file a.list,
div.diff.to_file,
div.diff.add {
color: #008800;
}
+div.diff.from_file a.list,
div.diff.from_file,
div.diff.rem {
color: #cc0000;