[open-ils-commits] r20304 - in branches/rel_2_1/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:20:17 EDT 2011


Author: dbs
Date: 2011-04-25 14:20:13 -0400 (Mon, 25 Apr 2011)
New Revision: 20304

Modified:
   branches/rel_2_1/Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent/OpenLibrary.pm
   branches/rel_2_1/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: branches/rel_2_1/Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent/OpenLibrary.pm
===================================================================
--- branches/rel_2_1/Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent/OpenLibrary.pm	2011-04-25 18:19:12 UTC (rev 20303)
+++ branches/rel_2_1/Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent/OpenLibrary.pm	2011-04-25 18:20:13 UTC (rev 20304)
@@ -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: branches/rel_2_1/Open-ILS/web/opac/skin/default/css/layout.css
===================================================================
--- branches/rel_2_1/Open-ILS/web/opac/skin/default/css/layout.css	2011-04-25 18:19:12 UTC (rev 20303)
+++ branches/rel_2_1/Open-ILS/web/opac/skin/default/css/layout.css	2011-04-25 18:20:13 UTC (rev 20304)
@@ -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