diff options
author | Yorhel <git@yorhel.nl> | 2012-01-25 13:59:43 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2012-01-25 13:59:43 +0100 |
commit | 6f33c4786786978ee785bc3e5020cef5f66254ef (patch) | |
tree | 6f6de09886a4baeacbae9e5e8982e4415b881dc7 /lib/VNDB/Util/BrowseHTML.pm | |
parent | 616ddb08bf4f10560229bee326eb89ce1bef7488 (diff) |
Do most of the table striping in CSS
Using CSS3 selectors. This is a more elegant approach, and since browser
support for CSS3 selectors isn't as crap as it used to be I can finally
make use of them.
Diffstat (limited to 'lib/VNDB/Util/BrowseHTML.pm')
-rw-r--r-- | lib/VNDB/Util/BrowseHTML.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VNDB/Util/BrowseHTML.pm b/lib/VNDB/Util/BrowseHTML.pm index 993f8746..88396cf5 100644 --- a/lib/VNDB/Util/BrowseHTML.pm +++ b/lib/VNDB/Util/BrowseHTML.pm @@ -38,7 +38,7 @@ sub htmlBrowse { $self->htmlBrowseNavigate($opt{pageurl}, $opt{options}{p}, $opt{nextpage}, 't'); div class => 'mainbox browse'.($opt{class} ? ' '.$opt{class} : ''); - table; + table class => 'stripe'; # header thead; @@ -139,7 +139,7 @@ sub htmlBrowseHist { my($s, $n, $i) = @_; my $revurl = "/$i->{type}$i->{iid}.$i->{rev}"; - Tr $n % 2 ? ( class => 'odd' ) : (); + Tr; td class => 'tc1_1'; a href => $revurl, "$i->{type}$i->{iid}"; end; @@ -180,7 +180,7 @@ sub htmlBrowseVN { ], row => sub { my($s, $n, $l) = @_; - Tr $n % 2 ? (class => 'odd') : (); + Tr; if($tagscore) { td class => 'tc_s'; tagscore $l->{tagscore}, 0; |