Preliminary pagination reformatting
authorWilliam Rockwood <wrockwood@tadl.org>
Wed, 28 Nov 2012 21:53:05 +0000 (16:53 -0500)
committerWilliam Rockwood <wrockwood@tadl.org>
Wed, 28 Nov 2012 21:53:05 +0000 (16:53 -0500)
- For now, this is fine. Rather than ripping out the spans and redoing
  the whole paginator as an unordered list (inline) I just added a css
  class to each of the numbers and did the styling there.
  Specifically, .results-paginator[:hover]

Signed-off-by: William Rockwood <wrockwood@tadl.org>
css/tadl.css
templates_tadlskin/opac/parts/result/paginate.tt2

index d7a4a25..2ce434b 100644 (file)
@@ -1336,7 +1336,9 @@ a.dash-link:hover { text-decoration: underline !important; }
 }
 .cn_browse_item { padding: 2ex; }
 
-.results-paginator-selected { color: red; }
+.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; }
 .inactive-hold { background: #e5e5e5; }
 
 #hold-items-list td { padding: 5px; margin-bottom: 20px; }
index edcc817..cd5efd4 100644 (file)
@@ -32,7 +32,7 @@
                                     IF pageitr == page; %]
                                         <span class='results-paginator-selected'>[% pageitr + 1%]</span>
                                     [% ELSE %]
-                                        <a href="[% mkurl('', {page => pageitr}) %]">[% pageitr + 1%]</a>
+                                        <a href="[% mkurl('', {page => pageitr}) %]" class="results-paginator">[% pageitr + 1%]</a>
                                 [%  END;
                                     added = added + 1;
                                     IF added == 8; LAST; END;