From f1869ec06407dcca8c8d29cf06fd342b203ee758 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 7 Jan 2011 11:15:18 -0500 Subject: [PATCH] Fix for Bug 5593, Change cart markup to allow for easier icon styling Replacing inline cart image with a span with a unique ID. Adding styling to the deafult CSS to give that span a background of the same cart image as before. Custom CSS can override this with a different image. Example for OPACUserCSS preference: background-image : url("/opac-tmpl/prog/famfamfam/silk/basket.png"); width:16px; height:16px; } Signed-off-by: Katrin Fischer background-image: url("/opac-tmpl/prog/famfamfam/silk/basket.png"); } Will also change the cart image in opac detail view. Signed-off-by: Chris Cormack --- koha-tmpl/opac-tmpl/prog/en/css/opac.css | 11 +++++++++++ .../opac-tmpl/prog/en/includes/doc-head-close.inc | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/css/opac.css b/koha-tmpl/opac-tmpl/prog/en/css/opac.css index 83b54eaa4f..f04a51c082 100644 --- a/koha-tmpl/opac-tmpl/prog/en/css/opac.css +++ b/koha-tmpl/opac-tmpl/prog/en/css/opac.css @@ -1654,6 +1654,17 @@ span.starMT { * html #cartmenulink span, * html #listsmenulink span { padding-top : 5px; } + +#cartmenulink span#carticon { + background: transparent url("../../images/cart.gif") top left no-repeat; + position: static; + width : 14px; + height:14px; + margin: 0.35em 0.45em 0 0.2em; + padding:0; + float: left; +} + #listsmenulink { background : #9FBFFF; } diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc b/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc index a0869b2554..570bd5f63e 100644 --- a/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc +++ b/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc @@ -48,7 +48,7 @@ var MSG_NO_RECORD_ADDED = _("No item was added to your cart"); var MSG_CONFIRM_DEL_BASKET = _("Are you sure you want to empty your cart?"); var MSG_CONFIRM_DEL_RECORDS = _("Are you sure you want to remove the selected items?"); - $("#cartDetails").ready(function(){ $("#cmspan").html("<\/i><\/i><\/span>\"\" "+_("Cart")+"<\/span><\/span><\/a>"); }); + $("#cartDetails").ready(function(){ $("#cmspan").html("<\/i><\/i><\/span> "+_("Cart")+"<\/span><\/span><\/a>"); }); var MSG_NO_RECORD_SELECTED = _("No item was selected"); var MSG_TAGS_DISABLED = _("Sorry, tags are not enabled on this system."); var MSG_TAG_ALL_BAD = _("Error! Your tag was entirely markup code. It was NOT added. Please try again with plain text."); -- 2.39.5