Stripe Icon Added

This commit is contained in:
Prashant Singh 2019-06-29 11:34:11 +05:30
parent 51f0eec908
commit d891fb108c
3 changed files with 25 additions and 8 deletions

View File

@ -6,10 +6,8 @@ return [
'name' => 'STRIPE',
'route' => 'admin.stripe.seller',
'sort' => 7,
'icon-class' => 'stripe-menu-icon',
],
[
'icon-class' => 'stripe-icon',
], [
'key' => 'stripe.connect',
'name' => 'Connect Account',
'route' => 'admin.stripe.seller',

View File

@ -15,6 +15,10 @@ class EventServiceProvider extends ServiceProvider
*/
public function boot()
{
Event::listen('bagisto.admin.layout.head', function($viewRenderEventManager) {
$viewRenderEventManager->addTemplate('stripe::checkout.style');
});
Event::listen('bagisto.shop.layout.head', function($viewRenderEventManager) {
$viewRenderEventManager->addTemplate('stripe::checkout.style');
});

View File

@ -7,12 +7,28 @@
right: 5px;
}
.stripe-menu-icon {
.icon {
display: inline-block;
background-size: cover;
}
%menu-properties {
width: 48px;
height: 48px;
display: inline-block;
background-size: cover;
}
.stripe-icon {
@extend %menu-properties;
background-image: url("../images/icons/Icon-Stripe.svg");
}
.stripe-menu-icon.active {
background-image: url("../images/icons/Icon-Stripe-Active.svg");
.active {
.stripe-icon {
@extend %menu-properties;
background-image: url("../images/icons/Icon-Stripe-Active.svg");
}
}
#stripe-pay-button label {
@ -20,7 +36,6 @@
color: #ffffff;
}
.more-payment-icons {
text-align: center;
margin-top: 15px;