mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
166 lines
2.9 KiB
SCSS
166 lines
2.9 KiB
SCSS
// Grid layout.
|
|
.ppcp-r-settings-block.ppcp--grid > .ppcp--content {
|
|
--block-separator-gap: 0;
|
|
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 16px;
|
|
|
|
@media screen and (max-width: 767px) {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
@media screen and (max-width: 480px) {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
// Theming & visual styles.
|
|
.ppcp-r-settings-block__payment-methods {
|
|
.ppcp-r-settings-block {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
border: 1px solid $color-gray-300;
|
|
border-radius: var(--container-border-radius);
|
|
padding: 16px;
|
|
min-height: 200px;
|
|
|
|
.ppcp--method-inner {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
}
|
|
|
|
.ppcp--method-title-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
margin: 0 0 8px 0;
|
|
gap: 12px;
|
|
}
|
|
|
|
.ppcp--method-description {
|
|
p {
|
|
@include font(13, 20, 400);
|
|
margin: 0;
|
|
color: $color-text-tertiary;
|
|
}
|
|
|
|
margin: 0 0 12px 0;
|
|
}
|
|
|
|
.ppcp--method-title {
|
|
@include font(13, 20, 500);
|
|
color: $color-black;
|
|
display: block;
|
|
}
|
|
|
|
.ppcp--method-settings {
|
|
padding: 0;
|
|
transition: 0.2s ease-out transform;
|
|
transform: rotate(0deg);
|
|
zoom: 1.005;
|
|
|
|
&:hover {
|
|
transform: rotate(45deg);
|
|
}
|
|
}
|
|
|
|
.ppcp--method-icon {
|
|
width: 30px;
|
|
height: 30px;
|
|
}
|
|
|
|
button.is-secondary {
|
|
@include small-button;
|
|
}
|
|
|
|
.ppcp--method-footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-top: auto;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Disabled state styling.
|
|
.ppcp--method-item--disabled {
|
|
position: relative;
|
|
|
|
// Apply grayscale and disable interactions.
|
|
.ppcp--method-inner {
|
|
opacity: 0.7;
|
|
filter: grayscale(1);
|
|
pointer-events: none;
|
|
transition: filter 0.2s ease;
|
|
}
|
|
|
|
// Override text colors.
|
|
.ppcp--method-title {
|
|
color: $color-gray-700 !important;
|
|
}
|
|
|
|
.ppcp--method-description p {
|
|
color: $color-gray-500 !important;
|
|
}
|
|
|
|
.ppcp--method-disabled-message {
|
|
opacity: 0;
|
|
transform: translateY(-5px);
|
|
transition: opacity 0.2s ease, transform 0.2s ease;
|
|
}
|
|
|
|
// Style all buttons and toggle controls.
|
|
.components-button,
|
|
.components-form-toggle {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
// Hover state - only blur the inner content.
|
|
&:hover {
|
|
.ppcp--method-inner {
|
|
filter: blur(2px) grayscale(1);
|
|
}
|
|
|
|
.ppcp--method-disabled-message {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Disabled overlay.
|
|
.ppcp--method-disabled-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba($color-white, 0.4);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 50;
|
|
border-radius: var(--container-border-radius);
|
|
pointer-events: auto;
|
|
opacity: 0;
|
|
transition: opacity 0.2s ease;
|
|
}
|
|
|
|
.ppcp--method-item--disabled:hover .ppcp--method-disabled-overlay {
|
|
opacity: 1;
|
|
}
|
|
|
|
.ppcp--method-disabled-message {
|
|
padding: 14px 18px;
|
|
text-align: center;
|
|
@include font(13, 20, 500);
|
|
color: $color-text-tertiary;
|
|
position: relative;
|
|
z-index: 51;
|
|
border: none;
|
|
|
|
a {
|
|
text-decoration: none;
|
|
}
|
|
}
|