Bug 35037: Revise the appearance of the last patron button
Following Bug 21246 I find the button to be too obtrusive. This patch makes CSS changes to the style of the "Last patron" button shown in the staff interface when the "showLastPatron" system preference is enabled. To test, apply the patch and rebuild the staff interface CSS. - Enable the showLastPatron system preference if necessary. - Go to Circulation in the staff interface and check out to a patron. - A "Last patron" button should appear on the right-hand end of the breadcrumbs bar. - Check that the link, dropdown button, and dropdown menu look good. Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
d10ce467f5
commit
4ac7c8bc06
4 changed files with 26 additions and 7 deletions
|
@ -295,8 +295,17 @@ a.navbar-toggle {
|
||||||
}
|
}
|
||||||
|
|
||||||
#lastborrowerlink {
|
#lastborrowerlink {
|
||||||
color: #FFFFFF;
|
font-size: 13px;
|
||||||
background-color: $background-color-primary;
|
padding: 0 .7em;
|
||||||
|
|
||||||
|
& + .dropdown-toggle {
|
||||||
|
margin-left: 0;
|
||||||
|
padding: .01em .7em;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: #FFF;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
|
|
|
@ -941,6 +941,10 @@ details[open] {
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#shortcut {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
#breadcrumbs, #shortcut {
|
#breadcrumbs, #shortcut {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
clear: both;
|
clear: both;
|
||||||
|
@ -3223,7 +3227,11 @@ label {
|
||||||
}
|
}
|
||||||
|
|
||||||
> .btn:first-child:not( :last-child ):not( .dropdown-toggle ) {
|
> .btn:first-child:not( :last-child ):not( .dropdown-toggle ) {
|
||||||
border-right: 1px solid darken( saturate( $btn-primary, 15 ), 15 );
|
border-right: 1px solid #CCC;
|
||||||
|
|
||||||
|
&.btn-primary {
|
||||||
|
border-right: 1px solid darken( saturate( $btn-primary, 15 ), 15 );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,12 +3,12 @@
|
||||||
</script>
|
</script>
|
||||||
<div id="lastborrower-window">
|
<div id="lastborrower-window">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn btn-default navbar-btn lastborrower" id="lastborrowerlink" href="#" title=""><i class="fa fa-arrow-right"></i> Last patron</a>
|
<a class="btn btn-link navbar-btn lastborrower" id="lastborrowerlink" href="#" title=""><i class="fa fa-arrow-right"></i> Last patron</a>
|
||||||
<button type="button" data-toggle="dropdown" class="btn btn-default navbar-btn dropdown-toggle" aria-haspopup="true" aria-expanded="false">
|
<button type="button" data-toggle="dropdown" class="btn btn-link navbar-btn dropdown-toggle" aria-haspopup="true" aria-expanded="false">
|
||||||
<span class="caret"></span>
|
<span class="caret"></span>
|
||||||
<span class="sr-only">Toggle Dropdown</span>
|
<span class="sr-only">Toggle Dropdown</span>
|
||||||
</button>
|
</button>
|
||||||
<ul id="lastBorrowerList" class="dropdown-menu">
|
<ul id="lastBorrowerList" class="dropdown-menu dropdown-menu-right">
|
||||||
<li role="separator" class="divider"></li>
|
<li role="separator" class="divider"></li>
|
||||||
<li><a id="lastborrower-remove" class="lastborrower" href="#">Clear list</a></li>
|
<li><a id="lastborrower-remove" class="lastborrower" href="#">Clear list</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -3,5 +3,7 @@
|
||||||
[% INCLUDE 'last-borrower.inc' %]
|
[% INCLUDE 'last-borrower.inc' %]
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
||||||
<a class="toplinks" href="/cgi-bin/koha/help.pl" id="helper"><i class="fa-solid fa-circle-question"></i> <span>Help</span></a>
|
<div>
|
||||||
|
<a class="" href="/cgi-bin/koha/help.pl" id="helper"><i class="fa-solid fa-circle-question"></i> <span>Help</span></a>
|
||||||
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
Loading…
Reference in a new issue