💄 Display the APM logo in dummy preview-buttons

This commit is contained in:
Philipp Stracker 2024-07-15 13:43:09 +02:00
parent 6081b9ddf9
commit 07ec924c77
No known key found for this signature in database
3 changed files with 26 additions and 0 deletions

View file

@ -23,6 +23,11 @@
&.ppcp-button-minicart {
--apple-pay-button-display: block;
}
&.ppcp-preview-button.ppcp-button-dummy {
/* URL must specify the correct module-folder! */
--apm-button-dummy-background: url(../../../ppcp-applepay/assets/images/applepay.png);
}
}
.wp-block-woocommerce-checkout, .wp-block-woocommerce-cart {

View file

@ -6,6 +6,11 @@
outline-offset: -1px;
border-radius: var(--apm-button-border-radius);
}
&.ppcp-preview-button.ppcp-button-dummy {
/* URL must specify the correct module-folder! */
--apm-button-dummy-background: url(../../../ppcp-googlepay/assets/images/googlepay.png);
}
}
.wp-block-woocommerce-checkout, .wp-block-woocommerce-cart {

View file

@ -31,9 +31,25 @@ $background-ident-color: #fbfbfb;
&.ppcp-button-dummy {
display: flex;
min-height: 25px;
align-items: center;
justify-content: center;
background: #0001;
position: relative;
&:before {
content: '';
position: absolute;
left: 12px;
top: 50%;
transform: translateY(-50%);
width: 42px;
height: 24px;
background-image: var(--apm-button-dummy-background, none);
background-repeat: no-repeat;
background-size: contain;
background-position: center left;
}
}
}