From 5db287f710ebdcb363f619aaa2af0e78af7a7a28 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 11 Sep 2005 02:31:26 +0000 Subject: [PATCH] Renaming diff CSS classes to make a bit more sense --- diff.php | 4 ++-- includes/svnlib.php | 2 +- templates/default/diff.css | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/diff.php b/diff.php index 0888cc2..2746845 100644 --- a/diff.php +++ b/diff.php @@ -68,11 +68,11 @@ foreach ($diff->fetch() AS $filename => $file) { if ($line['act'] == '+') { - $class = 'diff_add_bit'; + $class = 'diff_add'; } else if ($line['act'] == '-') { - $class = 'diff_del_bit'; + $class = 'diff_del'; } else { diff --git a/includes/svnlib.php b/includes/svnlib.php index 0381a06..e40ad14 100644 --- a/includes/svnlib.php +++ b/includes/svnlib.php @@ -84,7 +84,7 @@ class SVNLib $string = str_replace(' ', ' ', $string); // convert advanced diff - $string = str_replace(array('{@++}', '{@--}'), array('', ''), $string); + $string = str_replace(array('{@++}', '{@--}'), array('', ''), $string); $string = str_replace(array('{/@++}', '{/@--}'), '', $string); // nl2br diff --git a/templates/default/diff.css b/templates/default/diff.css index 692f4d0..d8e63e3 100644 --- a/templates/default/diff.css +++ b/templates/default/diff.css @@ -16,22 +16,22 @@ .diff_add { - background-color: rgb(153, 238, 153); + background-color: rgb(221, 255, 221); } -.diff_del +.diff_add_bit { - background-color: rgb(238, 153, 153); + background-color: rgb(153, 238, 153); } -.diff_add_bit +.diff_del { - background-color: rgb(221, 255, 221); + background-color: rgb(255, 211, 211); } .diff_del_bit { - background-color: rgb(255, 211, 211); + background-color: rgb(238, 153, 153); } .diff_norm -- 2.43.5