Rather than forcing people to edit OpenLibrary.pm to modify the inline CSS,
use a class and rely on CSS from layout.css to make it easier to skin.
git-svn-id: svn://svn.open-ils.org/ILS/trunk@20303
dcc99617-32d9-48b4-a31d-
7c20da2025e4
my $page_number = $chapter->{pagenum} || '';
$toc_html .= '<tr>' .
- "<td style='text-align: right;'>$label</td>" .
- "<td style='text-align: left; padding-right: 2em;'>$title</td>" .
- "<td style='text-align: right;'>$page_number</td>" .
+ "<td class='toc_label'>$label</td>" .
+ "<td class='toc_title'>$title</td>" .
+ "<td class='toc_page'>$page_number</td>" .
"</tr>\n";
}
background:#e0e0e0;
color:red;
}
+
+/* Table of contents layout */
+td.toc_label { text-align: right; }
+td.toc_title { text-align: left; padding-left: 1em; padding-right: 2em; }
+td.toc_page { text-align: right; }