From 08385daf72de128c7e4dac08e2a6d635ffda8663 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Sat, 29 Apr 2017 04:57:42 +0000 Subject: [PATCH] Bug 2093 [Follow-up] Add OPAC dashboard for logged-in users This patch adds some additional markup for applying styles to and the corresponding CSS. Also modified: Links to opac-user.pl should now open the correct tab. To test, apply the patch and compile the modified LESS file. Clear your browser cache if necessary. Follow the original test plan and confirm that the revised links work correctly. Signed-off-by: Hugo Agud Signed-off-by: Nick Clemens --- .../opac-tmpl/bootstrap/en/modules/opac-main.tt | 12 ++-- koha-tmpl/opac-tmpl/bootstrap/less/opac.less | 70 ++++++++++++++++++++++ 2 files changed, 76 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt index e60087b..817dad6 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt @@ -137,22 +137,22 @@ [% ELSE %] [% IF Koha.Preference('OPACUserSummary') %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/less/opac.less b/koha-tmpl/opac-tmpl/bootstrap/less/opac.less index 63961e8..159174f 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/less/opac.less +++ b/koha-tmpl/opac-tmpl/bootstrap/less/opac.less @@ -2526,4 +2526,74 @@ a.reviewlink:visited { color: white !important; } +.count_label { + @base: #369; + background-color: @base; + border-radius: 5px; + color: #FFF; + display: inline-block; + font-weight: bold; + min-width: 1.5em; + padding: .2em; + text-align: center; + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); + + &:hover { + background-color: lighten( @base, 20% ); + } +} + +.user_checkouts_count { + +} + +.user_overdues_count, +.user_fines_count { + background-color: #990000; + &:hover { + background-color: lighten( #990000, 10% ); + } +} + +.user_holds_pending_count { + +} + +.user_holds_waiting_count { + background-color: #538200; + &:hover { + background-color: lighten( #538200, 10% ); + } +} + +#user_summary { + border: 1px solid #EAEAE6; + border-radius: 7px; + margin-bottom: 1em; + padding-bottom: .5em; + + h3 { + background-color: #EAEAE6; + border-top-left-radius: 6px; + border-top-right-radius: 6px; + box-shadow: 0 1px 1px 0 rgba(0,0,0,0.2); + margin-top: 0; + padding: .2em 0; + text-align: center; + } + + ul { + list-style-type: none; + margin: 0 0 .2em 0; + + a { + display: block; + font-weight: bold; + padding: .2em 1em; + } + } +} + + + @import "responsive.less"; -- 2.1.4