From ca17299948e62a88d356b8aa987029ff51fa07cb Mon Sep 17 00:00:00 2001 From: William Rockwood Date: Thu, 6 Dec 2012 16:27:26 -0500 Subject: [PATCH] Minor pagination tweaks - Removed a redundant "Results" from the template (search results results vs search results) - Adjusted css to make next/prev buttons have same style as the page numbers Signed-off-by: William Rockwood --- css/tadl.css | 9 +++++---- templates_tadlskin/opac/parts/result/paginate.tt2 | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/css/tadl.css b/css/tadl.css index 4894739967..0079d6a5ab 100644 --- a/css/tadl.css +++ b/css/tadl.css @@ -1274,7 +1274,8 @@ div.facet_sidebar { #adv_global_addrow a:hover { color:#f70; } .adv_adv_link { font-size: 8pt; color: red; } #acct_prefs_header { float: left; } -.search_page_nav_link { padding-left:5px; cursor: pointer; } +.search_page_nav_link { margin:0; padding:3px 2px; cursor: pointer; border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; text-decoration:none; } +.search_page_nav_link:hover { margin:0; padding: 3px 2px; border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; text-decoration:none; background:#fff; } #opac.result.sort { width: 160px; } .renew-summary { font-size: 125%; font-style: italic; margin: 0.5ex 0; } .failure-text { margin-left: 4em; font-style: italic; color: #ff0000; } @@ -1337,9 +1338,9 @@ a.dash-link:hover { text-decoration: underline !important; } } .cn_browse_item { padding: 2ex; } -.results-paginator-selected { color: #004677; padding: 3px 4px 2px; font-weight: bold; border: 1px solid #dadada; background:#fff; border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; } -.results-paginator { padding: 3px 4px 2px; border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; text-decoration:none; } -.results-paginator:hover { padding: 3px 4px 2px; border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; text-decoration:none; background:#fff; } +.results-paginator-selected { color: #004677; padding: 3px 4px; font-weight: bold; border: 1px solid #dadada; background:#fff; border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; } +.results-paginator { padding: 3px 4px; border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; text-decoration:none; } +.results-paginator:hover { padding: 3px 4px; border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; text-decoration:none; background:#fff; } .inactive-hold { background: #e5e5e5; } #hold-items-list td { padding: 5px; margin-bottom: 20px; } diff --git a/templates_tadlskin/opac/parts/result/paginate.tt2 b/templates_tadlskin/opac/parts/result/paginate.tt2 index cd5efd4a5f..df411d57e8 100644 --- a/templates_tadlskin/opac/parts/result/paginate.tt2 +++ b/templates_tadlskin/opac/parts/result/paginate.tt2 @@ -3,7 +3,7 @@ [% ctx.bookbag ? l('List Contents') : l('Search Results') %] [% |l(ctx.result_start, ctx.result_stop, ctx.hit_count) %] - Results [_1] - [_2] of [_3] + [_1] - [_2] of [_3] [% END %] [% |l(page + 1, page_count) %](page [_1] of [_2])[% END %] @@ -22,7 +22,7 @@ [% l('Previous') %] - + [% # show links to 4 previous pages, the current page, and 3 more pages. added = 0; pageitr = page - 5; -- 2.11.0