From f53606b6006a3a6b8e00a33b496640d3d552e960 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Sat, 26 Sep 2020 19:44:25 +0000 Subject: [PATCH] Bug 21851: Improve style of sidebar forms This patch makes minor changes to staff client CSS in order to improve the style of forms in sidebars. It adjusts the style of nested fieldsets and gives more room to list items (and the form fields they contain). To test, apply the patch and regenerate the staff client CSS (https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_client) - View pages with forms in the left-hand sidebar, especially: - Circulation -> Overdues - Patrons -> Patrons search results - Acquisitions -> Invoices - Acquisitions -> Order search results - Tools -> Tags Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- .../prog/css/src/staff-global.scss | 25 ++++++++++++++++--- .../prog/en/modules/acqui/histsearch.tt | 4 +-- .../prog/en/modules/members/member.tt | 8 +++--- 3 files changed, 28 insertions(+), 9 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss index 6d03d1a310..a46c61d051 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -132,17 +132,36 @@ aside { fieldset { &.brief { - margin: 0 0 1em 0; padding: .4em .7em; + button + button, + input + input { + margin-left: 5px; + } + fieldset { - margin: 0; - padding: .5em 0; + border-width: 1px; + border-radius: 0; + margin: 0 0 .5em 0; + padding: .5em; legend { font-size: 95%; margin: 0; } + + &.action { + margin-left: 0; + padding: .5em 0; + } + } + + input, select { + height: calc(1.5em + .75rem + 2px); + } + + label { + margin: .5em 0 0 0; } li { diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt index 67daf85bdd..e43000df35 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt @@ -156,9 +156,9 @@ Search orders [% END %] [% INCLUDE 'filter-orders.inc' %] + +
- -
[% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt index 1d2609b0ac..962d7cc3ae 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt @@ -119,14 +119,14 @@
-

Filters

+

Search patrons

  1. - +
  2. - +
  3. - + [% SET categories = Categories.all() %]