[open-ils-commits] r20303 - in trunk/Open-ILS: src/perlmods/lib/OpenILS/WWW/AddedContent web/opac/skin/default/css (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Apr 25 14:19:16 EDT 2011
Author: dbs
Date: 2011-04-25 14:19:12 -0400 (Mon, 25 Apr 2011)
New Revision: 20303
Modified:
trunk/Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent/OpenLibrary.pm
trunk/Open-ILS/web/opac/skin/default/css/layout.css
Log:
Use layout.css to control table of contents from OpenLibrary added content
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.
Modified: trunk/Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent/OpenLibrary.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent/OpenLibrary.pm 2011-04-23 05:43:07 UTC (rev 20302)
+++ trunk/Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent/OpenLibrary.pm 2011-04-25 18:19:12 UTC (rev 20303)
@@ -114,9 +114,9 @@
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";
}
Modified: trunk/Open-ILS/web/opac/skin/default/css/layout.css
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/css/layout.css 2011-04-23 05:43:07 UTC (rev 20302)
+++ trunk/Open-ILS/web/opac/skin/default/css/layout.css 2011-04-25 18:19:12 UTC (rev 20303)
@@ -251,3 +251,8 @@
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; }
More information about the open-ils-commits
mailing list