Bug 22935: Improve style of Bootstrap pagination
This patch makes some updates to the staff client CSS and adds Font Awesome icons to the Bootstrap pagination include. To test, apply the patch and rebuild the staff client CSS. Perform a search in the staff client which will return multiple pages of results. Check that the pagination links look good. Signed-off-by: Maryse Simard <maryse.simard@inlibro.com> Signed-off-by: Bin Wen <bin.wen@inlibro.com> Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> (cherry picked from commit33b70b798d) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commit19ccb03a74) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
333e7c5a1d
commit
bcc44a1a71
|
|
@ -3224,6 +3224,78 @@ video {
|
|||
}
|
||||
|
||||
// Bootstrap overrides
|
||||
|
||||
nav {
|
||||
background: #E6F0F2 none;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.navbar-collapse {
|
||||
background: #E6F0F2 none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.navbar-nav {
|
||||
li {
|
||||
list-style: none;
|
||||
|
||||
&.open {
|
||||
li {
|
||||
a {
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
font-weight: bold;
|
||||
padding-bottom: .4em;
|
||||
padding-top: .4em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.nav .open > a,
|
||||
.nav .open > a:hover,
|
||||
.nav .open > a:focus {
|
||||
background-color: transparent;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.nav > li > a:hover,
|
||||
.nav > li > a:focus {
|
||||
background-color: transparent;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.pagination {
|
||||
margin:.5em .8em;
|
||||
|
||||
.active {
|
||||
a {
|
||||
background-color: #5A9EAA;
|
||||
border-color: #5A9EAA;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
background-color: #5A9EAA;
|
||||
border-color: #5A9EAA;
|
||||
}
|
||||
}
|
||||
|
||||
span {
|
||||
background-color: #5A9EAA;
|
||||
border-color: #5A9EAA;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
background-color: #5A9EAA;
|
||||
border-color: #5A9EAA;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
button,
|
||||
.btn {
|
||||
border-color: #ADADAD #ADADAD #949494;
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
[% IF ( PAGE_NUMBERS ) %]<nav><ul class="pagination">
|
||||
[% IF hits_to_paginate < total %]<h6>[% hits_to_paginate | html %] of [% total | html %] results loaded, refine your search to view other records</h6>[% END %]
|
||||
[% IF ( previous_page_offset.defined ) %]
|
||||
<li><a class="nav" href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %][% IF ( sort_by ) %]&sort_by=[% sort_by |url %][% END %]">First</a></li>
|
||||
<li><a class="nav" href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %][% IF ( sort_by ) %]&sort_by=[% sort_by |url %][% END %]"><i class="fa fa-fw fa-angle-double-left"></i> First</a></li>
|
||||
<!-- Row of numbers corresponding to search result pages -->
|
||||
<li><a class="nav" href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&offset=[% previous_page_offset | html %][% IF ( sort_by ) %]&sort_by=[% sort_by |url %][% END %]"><< Previous</a></li>
|
||||
<li><a class="nav" href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&offset=[% previous_page_offset | html %][% IF ( sort_by ) %]&sort_by=[% sort_by |url %][% END %]"><i class="fa fa-fw fa-angle-left"></i> Previous</a></li>
|
||||
[% END %]
|
||||
[% FOREACH PAGE_NUMBER IN PAGE_NUMBERS %]
|
||||
[% IF ( PAGE_NUMBER.highlight ) %]
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
[% END %]
|
||||
[% END %]
|
||||
[% IF ( next_page_offset ) %]
|
||||
<li><a class="nav" href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&offset=[% next_page_offset | html %][% IF ( sort_by ) %]&sort_by=[% sort_by |url %][% END %]">Next >></a></li>
|
||||
<li><a class="nav" href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&offset=[% last_page_offset | html %][% IF ( sort_by ) %]&sort_by=[% sort_by |url %][% END %]">Last</a></li>
|
||||
<li><a class="nav" href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&offset=[% next_page_offset | html %][% IF ( sort_by ) %]&sort_by=[% sort_by |url %][% END %]">Next <i class="fa fa-fw fa-angle-right"></i></a></li>
|
||||
<li><a class="nav" href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&offset=[% last_page_offset | html %][% IF ( sort_by ) %]&sort_by=[% sort_by |url %][% END %]">Last <i class="fa fa-fw fa-angle-double-right"></i></a></li>
|
||||
[% END %]
|
||||
</ul></nav>[% END %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue