From bcc44a1a71d2c6a9e11ef482a1e469eec3445e36 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 17 May 2019 15:03:24 +0000 Subject: [PATCH] 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 Signed-off-by: Bin Wen Signed-off-by: Chris Cormack Signed-off-by: Martin Renvoize (cherry picked from commit 33b70b798d4cc2bc6d6db43a40d006dd8c1109b8) Signed-off-by: Fridolin Somers (cherry picked from commit 19ccb03a7409faf7270d7028ca39367a5a499445) Signed-off-by: Lucas Gass --- .../prog/css/src/staff-global.scss | 72 +++++++++++++++++++ .../prog/en/includes/page-numbers.inc | 8 +-- 2 files changed, 76 insertions(+), 4 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 a4c2c025fc..204307fd21 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -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; diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/page-numbers.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/page-numbers.inc index 6ea10c1240..4fb9a6bba4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/page-numbers.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/page-numbers.inc @@ -1,9 +1,9 @@ [% IF ( PAGE_NUMBERS ) %][% END %] -- 2.39.5