From efb42e224820ac5e7f0ff10336e83173d4831831 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Fri, 9 Dec 2011 12:05:14 -0500 Subject: [PATCH] TPAC: Remove more explicit widths from results page Refactor the facet sidebar such that headers consist of a floated span and a div with no specific width; absent a specific width, the button will float over top of text that might expand due to translation. Also remove the explicit table cell width for the results counter column and move some inline styles over to CSS. More to be done in results table but we are on our way. Signed-off-by: Dan Scott --- Open-ILS/src/templates/opac/parts/result/facets.tt2 | 8 +++----- Open-ILS/src/templates/opac/parts/result/table.tt2 | 13 +++++-------- Open-ILS/web/css/skin/default/opac/style.css | 16 ++++++++-------- 3 files changed, 16 insertions(+), 21 deletions(-) diff --git a/Open-ILS/src/templates/opac/parts/result/facets.tt2 b/Open-ILS/src/templates/opac/parts/result/facets.tt2 index 76c335fa3a..7b027738c4 100644 --- a/Open-ILS/src/templates/opac/parts/result/facets.tt2 +++ b/Open-ILS/src/templates/opac/parts/result/facets.tt2 @@ -19,8 +19,7 @@ FOR facet_label IN labels.sort;
-
[% facet.cmf.label %]
-
+ [% IF close_facets.grep(close_key).0; new_close = []; @@ -40,8 +39,8 @@ FOR facet_label IN labels.sort; [% l('Collapse') %] [% END %] -
-
 
+ +
[% facet.cmf.label %]
[% IF !close_facets.grep(close_key).0 %]
@@ -88,7 +87,6 @@ FOR facet_label IN labels.sort; [% END %] [% END %]
-
 
[% END %] diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2 index 422a378a52..d9ef345a69 100644 --- a/Open-ILS/src/templates/opac/parts/result/table.tt2 +++ b/Open-ILS/src/templates/opac/parts/result/table.tt2 @@ -18,13 +18,11 @@
- - +
-
- [% INCLUDE "opac/parts/staff_saved_searches.tt2" %] - [% INCLUDE 'opac/parts/result/facets.tt2' %] -
+
+ [% INCLUDE "opac/parts/staff_saved_searches.tt2" %] + [% INCLUDE 'opac/parts/result/facets.tt2' %] @@ -37,8 +35,7 @@
- diff --git a/Open-ILS/web/css/skin/default/opac/style.css b/Open-ILS/web/css/skin/default/opac/style.css index a52fe3db88..5e6a49483a 100644 --- a/Open-ILS/web/css/skin/default/opac/style.css +++ b/Open-ILS/web/css/skin/default/opac/style.css @@ -896,12 +896,11 @@ span.dash_divider { .facet_box_temp { padding-bottom:3px; - width:180px; + width: 15em; overflow:hidden; } .facet_box_temp .header { - width:180px; height:31px; overflow:hidden; background:url('/images/facet_box_bg.png') no-repeat; @@ -914,7 +913,6 @@ span.dash_divider { float:left; padding-top:6px; padding-left:12px; - width:134px; overflow:hidden; } @@ -931,7 +929,7 @@ span.dash_divider { } .facet_box_wrapper .box_wrapper .box { - width:166px; + width: 14em; border-top:1px solid #7ebee5; border-left:1px solid #f3f3f3; border-right:1px solid #f3f3f3; @@ -963,6 +961,11 @@ span.dash_divider { background-color: #d7d7d7; } +.facet_border { + border-left: 1px solid #e9ebf3; + padding-right: 0.5em; +} + #footer-wrap { background: linear-gradient(lightGreen, #252525); background: -moz-linear-gradient(lightGreen, #252525); @@ -1028,6 +1031,7 @@ a.dash-link:hover { text-decoration: underline !important; } } .list-create-table-buttons input[type=image] { margin-top: 2px; } .result_table_format_cell { padding: 0px 10px; text-align: center; } +.results_row_count { font-weight: bold; } #hold_editor h1 { font-size: 120%; font-weight: bold; } #hold_editor h2 { font-size: 111%; font-weight: normal; text-indent: 2em; font-style: italic; } #hold_editor h1, #hold_editor h2 { margin: 2px 0; } @@ -1224,10 +1228,6 @@ table.bookbag-specific { border-bottom: none; *height: 0px; } -.opac-auto-015 { - border-left: 1px solid #e9ebf3; - padding-right: 27px; -} .adv_global_filter_sort { border: none; width: 100%; -- 2.11.0
[% result_count; result_count = result_count + 1 %].