Minor pagination tweaks
authorWilliam Rockwood <wrockwood@tadl.org>
Thu, 6 Dec 2012 21:27:26 +0000 (16:27 -0500)
committerWilliam Rockwood <wrockwood@tadl.org>
Thu, 6 Dec 2012 21:27:26 +0000 (16:27 -0500)
- 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 <wrockwood@tadl.org>
css/tadl.css
templates_tadlskin/opac/parts/result/paginate.tt2

index 4894739..0079d6a 100644 (file)
@@ -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; }
index cd5efd4..df411d5 100644 (file)
@@ -3,7 +3,7 @@
     <span class="h1">[% ctx.bookbag ? l('List Contents') : l('Search Results') %]</span>
     <span nowrap="nowrap" class="result_number">
                 [% |l(ctx.result_start, ctx.result_stop, ctx.hit_count) %]
-                Results <strong>[_1]</strong> - <strong>[_2]</strong> of <strong>[_3]</strong>
+                 <strong>[_1]</strong> - <strong>[_2]</strong> of <strong>[_3]</strong>
                 [% END %]
                 <span style='padding-left: 6px;'>
                     [% |l(page + 1, page_count) %](page <strong>[_1]</strong> of <strong>[_2]</strong>)[% END %]
@@ -22,7 +22,7 @@
                     <a class='[% class %]' href='[% href %]' 
                         title='[% l("Previous page") %]'><span class="nav_arrow_fix">&#9668;</span> [% l('Previous') %] </a>
 
-                    <span style='padding-left: 11px; padding-right:11px;'>
+                    <span style='padding: 0 6px;'>
                         [%  # show links to 4 previous pages, the current page, and 3 more pages.
                             added = 0;
                             pageitr = page - 5;