mirror of
https://gh.wpcy.net/https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2026-04-26 01:14:19 +08:00
260 lines
4 KiB
SCSS
260 lines
4 KiB
SCSS
.ppcp-axo-watermark-container {
|
|
justify-self: end;
|
|
align-self: end;
|
|
margin-top: 5px;
|
|
|
|
&.loader {
|
|
width: 15px;
|
|
align-self: center;
|
|
}
|
|
|
|
&:before {
|
|
display: none;
|
|
}
|
|
|
|
&.loader:before {
|
|
display: block; /* Same as WooCommerce's `@mixin loader()` uses */
|
|
height: 12px;
|
|
width: 12px;
|
|
margin-left: -6px;
|
|
margin-top: -6px;
|
|
left: 12px;
|
|
position: relative;
|
|
}
|
|
}
|
|
|
|
#ppcp-axo-billing-email-field-wrapper {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
|
|
.woocommerce-input-wrapper {
|
|
display: grid;
|
|
grid-template-areas:
|
|
"input"
|
|
"watermark"
|
|
"button";
|
|
grid-template-columns: 1fr;
|
|
gap: 6px;
|
|
align-items: start;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
#ppcp-axo-billing-email-submit-button {
|
|
grid-area: button;
|
|
width: 100%;
|
|
margin-top: 0;
|
|
position: relative;
|
|
transition: opacity 0.3s ease;
|
|
flex: 0 1 auto;
|
|
align-self: flex-start;
|
|
|
|
.loader:before {
|
|
display: inline;
|
|
height: 12px;
|
|
width: 12px;
|
|
margin-left: -6px;
|
|
margin-top: -6px;
|
|
left: auto;
|
|
right: auto;
|
|
}
|
|
}
|
|
|
|
.ppcp-axo-billing-email-submit-button {
|
|
position: relative;
|
|
|
|
&-hidden {
|
|
opacity: 0;
|
|
}
|
|
|
|
&-loaded:not([disabled]) {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.ppcp-axo-payment-container {
|
|
padding: 1rem 0;
|
|
|
|
&.axo-hidden {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.ppcp-axo-email-widget {
|
|
border: 1px solid #cccccc;
|
|
background-color: #eeeeee;
|
|
padding: 0.5rem 1rem;
|
|
margin-bottom: 1rem;
|
|
text-align: center;
|
|
font-weight: bold;
|
|
color: #000000;
|
|
}
|
|
|
|
.ppcp-axo-field-hidden {
|
|
display: none;
|
|
}
|
|
|
|
.ppcp-axo-customer-details {
|
|
margin-bottom: 40px;
|
|
position: relative;
|
|
}
|
|
|
|
.axo-checkout-wrapper {
|
|
margin-bottom: 20px;
|
|
padding: 0 10px;
|
|
|
|
.axo-checkout-header-section {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 1em;
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
|
|
.styled-card {
|
|
position: relative;
|
|
box-sizing: border-box;
|
|
margin: 1em 0;
|
|
border-radius: 10px;
|
|
width: 100%;
|
|
max-width: 350px;
|
|
background-color: #F8F9FA;
|
|
border: 2px solid #ECEEFE;
|
|
text-align: left;
|
|
padding: 15px;
|
|
display: flex;
|
|
gap: 15px;
|
|
|
|
.ppcp-card-icon-wrapper {
|
|
width: 60px;
|
|
align-self: center;
|
|
flex-grow: 1;
|
|
flex-shrink: 0;
|
|
|
|
img {
|
|
max-width: 100%;
|
|
display: block;
|
|
margin: 0!important;
|
|
}
|
|
}
|
|
|
|
.axo-card-meta-wrapper {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
row-gap: .5em;
|
|
}
|
|
|
|
.axo-card-number {
|
|
font-size: 18px;
|
|
line-height: 1em;
|
|
color: #666;
|
|
font-family: monospace;
|
|
font-weight: bold;
|
|
width: 100%;
|
|
}
|
|
|
|
.axo-card-owner {
|
|
padding-right: 20px;
|
|
position: relative;
|
|
&::after {
|
|
content: "•";
|
|
position: absolute;
|
|
right: 10px;
|
|
transform: translateX(50%);
|
|
color: #6d6d6d;
|
|
}
|
|
}
|
|
|
|
.axo-card-owner,
|
|
.axo-card-expiry{
|
|
font-size: 16px;
|
|
color: #6d6d6d;
|
|
line-height: 1em;
|
|
}
|
|
}
|
|
}
|
|
|
|
.ppcp-axo-order-button {
|
|
float: none;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
margin: var(--global-md-spacing) 0 1em;
|
|
padding: 0.6em 1em;
|
|
}
|
|
|
|
.ppcp-axo-watermark-loading {
|
|
min-height: 12px;
|
|
}
|
|
|
|
.ppcp-axo-overlay,
|
|
.ppcp-axo-watermark-loading:after {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(255, 255, 255, 0.5);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
z-index: 999;
|
|
content: '';
|
|
}
|
|
|
|
.ppcp-axo-loading .col-1 {
|
|
position: relative;
|
|
opacity: 0.9;
|
|
transition: opacity 0.5s ease;
|
|
}
|
|
|
|
#payment .payment_methods li label[for="payment_method_ppcp-axo-gateway"] {
|
|
img {
|
|
float: none;
|
|
vertical-align: middle;
|
|
}
|
|
}
|
|
|
|
#payment .payment_methods li.payment_method_ppcp-axo-gateway .ppcp-card-icon {
|
|
float: none;
|
|
max-height: initial
|
|
}
|
|
|
|
@media screen and (max-width: 719px) {
|
|
#ppcp-axo-billing-email {
|
|
&-field-wrapper {
|
|
flex-direction: column;
|
|
}
|
|
|
|
&-submit-button {
|
|
align-self: auto;
|
|
}
|
|
}
|
|
|
|
input[type="email"] {
|
|
grid-area: input;
|
|
width: 100%;
|
|
}
|
|
|
|
#ppcp-axo-billing-email-submit-button {
|
|
align-self: center;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 783px) {
|
|
#ppcp-axo-billing-email-field-wrapper .woocommerce-input-wrapper {
|
|
grid-template-areas:
|
|
"input button"
|
|
"watermark watermark";
|
|
grid-template-columns: 1fr auto;
|
|
gap: 6px 8px;
|
|
}
|
|
|
|
input[type="email"] {
|
|
align-self: center;
|
|
}
|
|
|
|
#ppcp-axo-billing-email-submit-button {
|
|
align-self: center;
|
|
width: auto;
|
|
}
|
|
}
|