From: Dan Scott Date: Mon, 12 Dec 2011 05:06:39 +0000 (-0500) Subject: TPAC: results use floated DIVs instead of table layout X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6faac2b00f86f61eede58b1867b3c5bd11740b5f;p=evergreen%2Fmasslnc.git TPAC: results use floated DIVs instead of table layout Rather than a table containing a single row for the rather gross purpose of placing the facet sidebar on the left, a little bit of a divider between the facets and the results, and the results on the right, just use a floated div and a relatively positioned div for the two pertinent chunks of content. Bonus: one touch of CSS moves the facet sidebar to the right instead of the left. Signed-off-by: Dan Scott --- diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2 index fe3865a6b4..07c7ae9ce0 100644 --- a/Open-ILS/src/templates/opac/parts/result/table.tt2 +++ b/Open-ILS/src/templates/opac/parts/result/table.tt2 @@ -9,23 +9,18 @@ result_count = ctx.result_start; %] -
- [% PROCESS "opac/parts/result/paginate.tt2" %] [% ctx.results_count_header = PROCESS results_count_header; ctx.results_count_header %]
- - - - - - -
+
[% INCLUDE "opac/parts/staff_saved_searches.tt2" %] [% INCLUDE 'opac/parts/result/facets.tt2' %] -
+ +
+ border="0" style="margin-top:10px;"> [% FOR rec IN ctx.records; attrs = {marc_xml => rec.marc_xml}; @@ -248,7 +243,7 @@ [%- END %] @@ -260,9 +255,7 @@ [% END %]
- +
-
+
[% ctx.results_count_header %] diff --git a/Open-ILS/web/css/skin/default/opac/style.css b/Open-ILS/web/css/skin/default/opac/style.css index 39afdff85f..965fc0cc10 100644 --- a/Open-ILS/web/css/skin/default/opac/style.css +++ b/Open-ILS/web/css/skin/default/opac/style.css @@ -699,7 +699,7 @@ div.format_icon { } #result_table_div { - margin-top: 20px; + margin-top: 1em; } .result_numbers { @@ -932,6 +932,12 @@ div.format_icon { .facetFieldLineValue { overflow: hidden; text-overflow: ellipsis; } */ +div.facet_sidebar { + float: left; + border-right: 1px solid #F3F3F3; + margin-right: 1em; +} + .facet_box_temp { padding-bottom:3px; width: 15em;