##// END OF EJS Templates
Adapt pagination for smaller screens (#19097)....
Jean-Philippe Lang -
r14565:c4ff59337bb6
parent child
Show More
@@ -220,11 +220,12 module Redmine
220 220 end
221 221 html << '</ul>'
222 222
223 html << content_tag('span', "(#{paginator.first_item}-#{paginator.last_item}/#{paginator.item_count})", :class => 'items') + ' '
224
223 info = ''.html_safe
224 info << content_tag('span', "(#{paginator.first_item}-#{paginator.last_item}/#{paginator.item_count})", :class => 'items') + ' '
225 225 if per_page_links != false && links = per_page_links(paginator, &block)
226 html << content_tag('span', links.to_s, :class => 'per-page')
226 info << content_tag('span', links.to_s, :class => 'per-page')
227 227 end
228 html << content_tag('span', info)
228 229
229 230 html.html_safe
230 231 end
@@ -506,6 +506,9 span.pagination {margin-left:3px; color:#888;}
506 506 border: 1px solid #ccc;
507 507 margin-left: -1px;
508 508 line-height: 2em;
509 margin-bottom: 1em;
510 white-space: nowrap;
511 text-align: center;
509 512 }
510 513 .pagination ul.pages li a,
511 514 .pagination ul.pages li span {
@@ -532,6 +535,7 span.pagination {margin-left:3px; color:#888;}
532 535 color: inherit;
533 536 text-decoration: inherit;
534 537 }
538 span.pagination>span {white-space:nowrap;}
535 539
536 540 #search-form fieldset p {margin:0.2em 0;}
537 541
@@ -825,3 +825,11
825 825 width: 100%;
826 826 }
827 827 }
828
829 @media all and (max-width: 599px) {
830 .pagination ul.pages li {display:none;}
831 .pagination ul.pages li.current,
832 .pagination ul.pages li.previous,
833 .pagination ul.pages li.next {display:inline-block; width:32%; overflow:hidden;}
834 }
835
General Comments 0
You need to be logged in to leave comments. Login now