Increase readability by using slightly softer colours

This commit is contained in:
Jeff Zaroyko
2008-02-20 13:57:35 +11:00
committed by Chris Morgan
parent 86ced92c4c
commit 155f631a4b
2 changed files with 7 additions and 4 deletions

View File

@@ -54,6 +54,9 @@ tr.gold { background-color: #fff600; }
tr.silver { background-color: silver; } tr.silver { background-color: silver; }
tr.bronze { background-color: #fcba0a; } tr.bronze { background-color: #fcba0a; }
tr.garbage { background-color: #999966; } tr.garbage { background-color: #999966; }
tr.warning { background-color: #ff3333; } /* novascotia salmon */
tr.howto { background-color: green; }
tr.defaultnote { background-color: #0066CC; } /* mid-light blue */
/* classes for the version info pane */ /* classes for the version info pane */
/* version info pane is the right hand pane at the top of the version page */ /* version info pane is the right hand pane at the top of the version page */

View File

@@ -201,12 +201,12 @@ class Note {
switch($this->sTitle) switch($this->sTitle)
{ {
case 'WARNING': case 'WARNING':
$sColor = 'red'; $sClass = 'warning';
$sTitle = 'Warning'; $sTitle = 'Warning';
break; break;
case 'HOWTO': case 'HOWTO':
$sColor = 'green'; $sClass = 'howto';
$sTitle = 'HOWTO'; $sTitle = 'HOWTO';
break; break;
@@ -216,7 +216,7 @@ class Note {
else else
$sTitle = 'Note'; $sTitle = 'Note';
$sColor = 'blue'; $sClass = 'defaultnote';
} }
$oVersion = new version($this->iVersionId); $oVersion = new version($this->iVersionId);
@@ -224,7 +224,7 @@ class Note {
$shOutput = html_frame_start("","98%",'',0); $shOutput = html_frame_start("","98%",'',0);
$shOutput .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\">\n"; $shOutput .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\">\n";
$shOutput .= "<tr bgcolor=\"".$sColor."\" align=\"center\" valign=\"top\"><td><b>".$sTitle."</b></td></tr>\n"; $shOutput .= "<tr class=\"".$sClass."\" align=\"center\" valign=\"top\"><td><b>".$sTitle."</b></td></tr>\n";
$shOutput .= "<tr><td class=\"note\">\n"; $shOutput .= "<tr><td class=\"note\">\n";
$shOutput .= $this->shDescription; $shOutput .= $this->shDescription;
$shOutput .= "</td></tr>\n"; $shOutput .= "</td></tr>\n";