[Codestriker-commits] CVS update: codestriker/html codestriker-bluish.css
Brought to you by:
sits
From: <si...@us...> - 2008-06-23 07:12:07
|
User: sits Date: 08/06/23 00:12:06 Modified: lib/Codestriker/Http DeltaRenderer.pm Response.pm html codestriker-bluish.css Log: More CSS-related changes. Index: DeltaRenderer.pm =================================================================== RCS file: /cvsroot/codestriker/codestriker/lib/Codestriker/Http/DeltaRenderer.pm,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- DeltaRenderer.pm 20 Jun 2008 02:34:00 -0000 1.13 +++ DeltaRenderer.pm 23 Jun 2008 07:12:06 -0000 1.14 @@ -108,13 +108,9 @@ # it. my %comment_hash = %{ $self->{comment_hash} }; my %comment_location_map = %{ $self->{comment_location_map} }; - my $comment_number = undef; my $query = $self->{query}; if (exists $comment_hash{$anchor}) { - # Determine what comment number this anchor refers to. - $comment_number = $comment_location_map{$anchor}; - $text = $query->span({-id=>"c$comment_number"}, "") . - $query->span({-class=>"comment"}, $text); + $params->{class} = "comment"; # Determine what the next comment in line is. my $index = -1; @@ -127,7 +123,7 @@ "return overlib(comment_text[$index],STICKY,DRAGGABLE,ALTCUT);"; $params->{onmouseout} = "return nd();"; } else { - $text = $query->span({-class=>"nocom"}, $text); + $params->{class} = "nocom"; } return $query->a($params, $text); @@ -333,7 +329,8 @@ } elsif (! defined $old_data && defined $new_data) { $render_old_colour = $old_notpresent_col; } - + + my %comment_location_map = %{ $self->{comment_location_map} }; my $line = {}; if (defined $old_data) { $line->{old_data} = $old_data; Index: Response.pm =================================================================== RCS file: /cvsroot/codestriker/codestriker/lib/Codestriker/Http/Response.pm,v retrieving revision 1.45 retrieving revision 1.46 diff -u -r1.45 -r1.46 --- Response.pm 23 Jun 2008 01:26:01 -0000 1.45 +++ Response.pm 23 Jun 2008 07:12:06 -0000 1.46 @@ -365,7 +365,7 @@ $previous_url .= '#' . $previous; $overlib_html .= "<a href=\"javascript:window.location=\\'$previous_url\\'; "; if ($fview == -1 || $fview == $previous_fview) { - $overlib_html .= "overlib(comment_text[$previous_index], STICKY, DRAGGABLE, ALTCUT, FIXX, getEltPageLeft(getElt(\\'c$previous_index\\')), FIXY, getEltPageTop(getElt(\\'c$previous_index\\'))); "; + $overlib_html .= "overlib(comment_text[$previous_index], STICKY, DRAGGABLE, ALTCUT, FIXX, getEltPageLeft(getElt(\\'$previous\\')), FIXY, getEltPageTop(getElt(\\'$previous\\'))); "; } $overlib_html .= "void(0);\">Previous</a>"; } @@ -380,7 +380,7 @@ $next_url .= '#' . $next; $overlib_html .= "<a href=\"javascript:window.location=\\'$next_url\\'; "; if ($fview == -1 || $fview == $next_fview) { - $overlib_html .= "overlib(comment_text[$next_index], STICKY, DRAGGABLE, ALTCUT, FIXX, getEltPageLeft(getElt(\\'c$next_index\\')), FIXY, getEltPageTop(getElt(\\'c$next_index\\'))); "; + $overlib_html .= "overlib(comment_text[$next_index], STICKY, DRAGGABLE, ALTCUT, FIXX, getEltPageLeft(getElt(\\'$next\\')), FIXY, getEltPageTop(getElt(\\'$next\\'))); "; } $overlib_html .= "void(0);\">Next</a>"; } Index: codestriker-bluish.css =================================================================== RCS file: /cvsroot/codestriker/codestriker/html/codestriker-bluish.css,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- codestriker-bluish.css 22 Jun 2008 23:01:29 -0000 1.2 +++ codestriker-bluish.css 23 Jun 2008 07:12:06 -0000 1.3 @@ -63,10 +63,18 @@ TD.mscb {background-color: #eeee77; font-family: monospace; font-size: smaller} /* Line number with comment */ -SPAN.comment {color: #ff0000; font-family: Georgia, serif; font-size: smaller} +A.comment { color: #ff0000; font-family: Georgia, serif; font-size: smaller} +A.comment:link { color: ff0000; text-decoration: none } +A.comment:visited { color: inherit; text-decoration: none } +A.comment:visited:hover { text-decoration: underline; } +A.comment:link:hover { text-decoration: underline; } /* Line number with no comment */ -SPAN.nocom {font-family: Georgia, serif; font-size: smaller} +A.nocom { font-family: Georgia, serif; font-size: smaller} +A.nocom:link { color: inherit; text-decoration: none } +A.nocom:visited { color: inherit; text-decoration: none } +A.nocom:visited:hover { text-decoration: underline; } +A.nocom:link:hover { text-decoration: underline; } /* Monospaced line with added text */ SPAN.msa {background-color: #abd; font-family: monospace; font-size: medium} @@ -82,14 +90,17 @@ /* Monospaced line number with comment */ SPAN.mscom {color: #ff0000; font-family: monospace; font-size: medium} +SPAN.mscom:link { color: inherit; text-decoration: none } +SPAN.mscom:visited { color: inherit; text-decoration: none } +SPAN.mscom:visited:hover { text-decoration: underline; } +SPAN.mscom:link:hover { text-decoration: underline; } + /* Monospaced line number with no comment */ SPAN.msnocom {font-family: monospace; font-size: medium} - -/* Smaller monospaced line number with comment */ -SPAN.smscom {color: #ff0000; font-family: monospace; font-size: smaller} - -/* Smaller monospaced line number with no comment */ -SPAN.smsnocom {font-family: monospace; font-size: smaller} +SPAN.msnocom:link { color: inherit; text-decoration: none } +SPAN.msnocom:visited { color: inherit; text-decoration: none } +SPAN.msnocom:visited:hover { text-decoration: underline; } +SPAN.msnocom:link:hover { text-decoration: underline; } /* File heading */ SPAN.file_comment {background-color: #cccccc; font-family: Georgia, serif; font-size: medium; color: #ff0000} @@ -139,17 +150,18 @@ TD.tt1 {background-color: #eeeeee; font-family: Georgia, serif} /* Codestriker heading */ -TD.heading {text-align: center; background-color: #246; font-family: Georgia, serif; font-size: x-large} -A.heading {text-decoration: none; color: #ffffff; background-color: transparent;} +#header {margin-bottom: 1em; font-family: sans-serif;} +#header .heading {background-color: #404D6C; color: white; font-size: 110%; -moz-border-radius-topleft: 5px; -moz-border-radius-topright: 5px; margin: 0; padding: 0.5em; vertical-align: bottom; font-weight: bold;} +#header .heading a {text-decoration: none; color: inherit; background-color: transparent;} /* Codestriker top-level menu */ -DIV.menu {font-family: Georgia, serif} +#header .menu {font-size: 85%; border-left: 1px solid silver; border-right: 1px solid silver; border-bottom: 1px solid silver; -moz-border-radius-bottomleft: 5px; -moz-border-radius-bottomright: 5px; padding: 0.5em} /* Tabbing styles */ TR.tab {background-color: #abd; font-family: Georgia, serif} TD.selected {background-color: #abd} TD.notselected {background-color: #cccccc} -TD.space {background-color: #eeeeee} +TD.space {background-color: white} A.tab {text-decoration: none} /* Styles for error field in comment posting tooltip. */ |