Commit 54ad9ad8 by lmf

优化样式

parent 3d30fd60
...@@ -30,10 +30,20 @@ if ($block->getIsInCatalogProduct()) { ...@@ -30,10 +30,20 @@ if ($block->getIsInCatalogProduct()) {
"shortcutContainerClass": "<?= /* @noEscape */ "." . $shortcutHtmlId ?>" "shortcutContainerClass": "<?= /* @noEscape */ "." . $shortcutHtmlId ?>"
} }
}' }'
> >
<?php
if(strpos($block->escapeUrl($block->getImageUrl()),'checkout-logo-medium') !== false){
$imgsrc = $block->getViewFileUrl('Magento_Paypal::images/paypal-color.svg');
$class = 'checkout-logo-medium';
} else {
$imgsrc = $block->getViewFileUrl('Magento_Paypal::images/paypal-credit.png');
$class = 'paypal-credit';
}
?>
<div class="<?= $class ?>">
<input type="image" data-action="checkout-form-submit" <input type="image" data-action="checkout-form-submit"
data-checkout-url="<?= $block->escapeUrl($block->getCheckoutUrl()) ?>" data-checkout-url="<?= $block->escapeUrl($block->getCheckoutUrl()) ?>"
src="<?= $block->getViewFileUrl('Magento_Paypal::images/paypal-color.svg') ?>" src="<?= $imgsrc ?>"
alt="<?= $block->escapeHtml(__('Checkout with PayPal')) ?>" alt="<?= $block->escapeHtml(__('Checkout with PayPal')) ?>"
title="<?= $block->escapeHtml(__('Checkout with PayPal')) ?>"/> title="<?= $block->escapeHtml(__('Checkout with PayPal')) ?>"/>
<?php if ($block->getAdditionalLinkImage()) : ?> <?php if ($block->getAdditionalLinkImage()) : ?>
...@@ -43,4 +53,5 @@ if ($block->getIsInCatalogProduct()) { ...@@ -43,4 +53,5 @@ if ($block->getIsInCatalogProduct()) {
</a> </a>
<?php endif; ?> <?php endif; ?>
<div class="checkout-txt">Checkout</div> <div class="checkout-txt">Checkout</div>
</div>
</div> </div>
...@@ -2263,6 +2263,25 @@ strong.subtitle.empty{ ...@@ -2263,6 +2263,25 @@ strong.subtitle.empty{
font-size: 16px; font-size: 16px;
color: #1d1d1d; color: #1d1d1d;
} }
.cart-container .checkout-methods-items li {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 0.5rem;
}
.checkout-logo-medium, .paypal-credit {
display: flex;
background: #ffc439;
margin-bottom: 10px;
font-size: 14px;
align-items: center;
font-weight: 700;
justify-content: center;
font-family: Outfit-Regular;
}
.cart-container .checkout-methods-items li:first-child{ .cart-container .checkout-methods-items li:first-child{
background-color: #000000; background-color: #000000;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment