Bugzilla – Attachment 2966 Details for
Bug 5593
Change cart markup to allow for easier icon styling
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed change
0001-Fix-for-Bug-5593-Change-cart-markup-to-allow-for-eas.patch (text/plain), 3.16 KB, created by
Owen Leonard
on 2011-01-07 17:26:10 UTC
(
hide
)
Description:
Proposed change
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2011-01-07 17:26:10 UTC
Size:
3.16 KB
patch
obsolete
>From 67099ebb2bf09e537bca41fbde031f798e1c4c98 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >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; >} >--- > koha-tmpl/opac-tmpl/prog/en/css/opac.css | 13 ++++++++++++- > .../opac-tmpl/prog/en/includes/doc-head-close.inc | 2 +- > 2 files changed, 13 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/css/opac.css b/koha-tmpl/opac-tmpl/prog/en/css/opac.css >index 430dad8..5eb4a3f 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; > } >@@ -1991,4 +2002,4 @@ div.ft { > #plainmarc th { background-color : #FFF; border: 0; white-space: nowrap; text-align:left; vertical-align: top; padding: 2px; } > #plainmarc td { border: 0; padding : 2px; vertical-align: top; } > >-div.bibmessage { background-color : #ffffb0; border-radius : 5px; padding : 3px; margin : 2px; } >+div.bibmessage { background-color : #ffffb0; border-radius : 5px; padding : 3px; margin : 2px; } >\ No newline at end of file >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 beda270..6132cc1 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 >@@ -49,7 +49,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("<a href=\"#\" id=\"cartmenulink\" class=\"\"><i><\/i><span><i><\/i><span><\/span><img src=\"/opac-tmpl/prog/images/cart.gif\" width=\"14\" height=\"14\" alt=\"\" border=\"0\" /> "+_("Cart")+"<span id=\"basketcount\"><\/span><\/span><\/a>"); }); <!-- TMPL_ELSE --><!-- TMPL_IF NAME="virtualshelves" --> >+ $("#cartDetails").ready(function(){ $("#cmspan").html("<a href=\"#\" id=\"cartmenulink\" class=\"\"><i><\/i><span><i><\/i><span><\/span><span id=\"carticon\"></span> "+_("Cart")+"<span id=\"basketcount\"><\/span><\/span><\/a>"); }); <!-- TMPL_ELSE --><!-- TMPL_IF NAME="virtualshelves" --> > var MSG_NO_RECORD_SELECTED = _("No item was selected");<!-- /TMPL_IF --><!-- /TMPL_IF --> > <!-- TMPL_IF NAME="OPACAmazonCoverImages" -->$(window).load(function() { > verify_images(); >-- >1.7.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 5593
: 2966 |
3355