From f02c2625185ebf19c87ee03fc0718a3b913753cc Mon Sep 17 00:00:00 2001 From: dbs Date: Mon, 25 Apr 2011 18:19:12 +0000 Subject: [PATCH] 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. git-svn-id: svn://svn.open-ils.org/ILS/trunk@20303 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../perlmods/lib/OpenILS/WWW/AddedContent/OpenLibrary.pm | 6 +++--- Open-ILS/web/opac/skin/default/css/layout.css | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent/OpenLibrary.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent/OpenLibrary.pm index 634fdc7560..fab9ea9aed 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent/OpenLibrary.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent/OpenLibrary.pm @@ -114,9 +114,9 @@ sub toc_html { my $page_number = $chapter->{pagenum} || ''; $toc_html .= '' . - "$label" . - "$title" . - "$page_number" . + "$label" . + "$title" . + "$page_number" . "\n"; } diff --git a/Open-ILS/web/opac/skin/default/css/layout.css b/Open-ILS/web/opac/skin/default/css/layout.css index 45a2e19877..1197a742de 100644 --- a/Open-ILS/web/opac/skin/default/css/layout.css +++ b/Open-ILS/web/opac/skin/default/css/layout.css @@ -251,3 +251,8 @@ tr[name="myopac_invalid_addr_row"] td { 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; } -- 2.43.2