Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spiff up credit card icons CRM-12515 #981

Merged
merged 1 commit into from
Jun 10, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 18 additions & 8 deletions css/civicrm.css
Original file line number Diff line number Diff line change
Expand Up @@ -3960,39 +3960,49 @@ span.crm-status-icon {
text-align: center;
}

/* Styles for credit card payment logos (FIXME: replace with sprite?) */
/* Styles for credit card payment logos */
#crm-container .credit_card_type-section .crm-credit_card_type-icons a {
display: block;
float: left;
width: 50px;
height: 30px;
background: url(../i/creditcard-icons.png) no-repeat 0 0 transparent;
text-indent: -20000px;
margin-right: 10px;
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
border-radius: 3px;
border: 1px solid #FFFFFF;
}

#crm-container .credit_card_type-section .crm-credit_card_type-icons .crm-credit_card_type-icon-visa {
background-position: 0 0;
width: 75px;
background-position: -50px 0;
}

#crm-container .credit_card_type-section .crm-credit_card_type-icons .crm-credit_card_type-icon-mastercard {
background-position: -75px 0;
background-position: -100px 0;
}

#crm-container .credit_card_type-section .crm-credit_card_type-icons .crm-credit_card_type-icon-amex {
background-position: -125px 0;
background-position: -150px 0;
}

#crm-container .credit_card_type-section .crm-credit_card_type-icons .crm-credit_card_type-icon-discover {
background-position: -175px 0;
background-position: -200px 0;
}

#crm-container .credit_card_type-section .crm-credit_card_type-icons .crm-credit_card_type-icon-jcb {
background-position: -225px 0;
background-position: -250px 0;
}

#crm-container .credit_card_type-section .crm-credit_card_type-icons .crm-credit_card_type-icon-unionpay {
background-position: -275px 0;
background-position: -300px 0;
}

#crm-container .cvv2-icon {
display: inline-block;
width: 50px;
height: 30px;
background: url(../i/creditcard-icons.png) no-repeat 0 0 transparent;
}

/* Avoid weird border around the images (some themes will add a border around images) */
Expand Down
Binary file modified i/creditcard-icons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed i/mini_cvv2.gif
Binary file not shown.
2 changes: 1 addition & 1 deletion templates/CRM/Core/BillingBlock.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
<div class="label">{$form.cvv2.label} {$reqMark}</div>
<div class="content">
{$form.cvv2.html}
<img src="{$config->resourceBase}i/mini_cvv2.gif" alt="{ts}Usually the last 3-4 digits in the signature area on the back of the card.{/ts}" title="{ts}Usually the last 3-4 digits in the signature area on the back of the card.{/ts}" style="vertical-align: text-bottom;" />
<span class="cvv2-icon" title="{ts}Usually the last 3-4 digits in the signature area on the back of the card.{/ts}"> </span>
</div>
<div class="clear"></div>
</div>
Expand Down