woocommerce-paypal-payments/modules/ppcp-settings/resources/css/components/reusable-components/_settings-block.scss

114 lines
2 KiB
SCSS
Raw Normal View History

2025-01-10 18:20:00 +01:00
/*
Styles the `SettingsBlock` and all its derived components.
*/
.ppcp-r-settings-block {
display: flex;
flex-direction: column;
2025-01-16 14:53:58 +01:00
gap: var(--block-item-gap, 16px);
2025-01-10 18:20:00 +01:00
2025-01-22 17:19:23 +01:00
.ppcp--header {
2025-01-10 18:20:00 +01:00
display: flex;
flex-direction: column;
gap: 6px;
&:not(:last-child) {
padding-bottom: var(--block-header-gap, 6px);
2025-01-10 18:20:00 +01:00
}
}
2025-01-22 17:19:23 +01:00
.ppcp--title {
2025-01-10 18:20:00 +01:00
@include font(11, 22, 600);
color: var(--color-text-title);
display: block;
text-transform: uppercase;
2025-01-22 15:08:14 +01:00
&.ppcp--no-caps {
@include font(14, 16, 600);
text-transform: none;
}
2025-01-22 15:08:14 +01:00
&.ppcp--big {
@include font(16, 20, 600);
}
2025-01-10 18:20:00 +01:00
.ppcp-r-title-badge {
text-transform: none;
margin-left: 6px;
}
}
2025-01-22 17:22:19 +01:00
.ppcp--title-extra {
@include font(13, 20, 400);
color: var(--color-text-teriary);
text-transform: none;
margin-left: 5px;
}
2025-01-22 17:19:23 +01:00
.ppcp--title-wrapper {
2025-01-10 18:20:00 +01:00
display: flex;
justify-content: space-between;
align-items: center;
}
&.ppcp-r-settings-block__feature {
2025-01-22 17:19:23 +01:00
.ppcp--title {
2025-01-10 18:20:00 +01:00
@include font(13, 20, 600);
color: var(--color-text-main);
text-transform: none;
}
.ppcp-r-settings-block__feature__description {
@include font(13, 20, 400);
color: var(--color-text-description);
}
}
2025-01-22 17:19:23 +01:00
.ppcp--description {
2025-01-10 18:20:00 +01:00
@include font(13, 20, 400);
margin: 0;
color: var(--color-text-description);
&:not(:last-child) {
padding-bottom: 1em;
}
a {
color: var(--color-blueberry);
}
strong {
color: var(--color-gray-800);
}
}
2025-01-22 15:08:14 +01:00
+ .ppcp-r-settings-block:not(.ppcp--no-gap) {
margin-top: var(--block-separator-gap, 32px);
padding-top: var(--block-separator-gap, 32px);
2025-01-22 17:22:19 +01:00
border-top: var(--block-separator-size, 1px) solid var(--block-separator-color);
}
2025-01-10 18:20:00 +01:00
}
}
.ppcp-r-settings-block {
&--order-intent,
&--save-payment-methods {
@include vertical-layout-event-gap(24px);
> .ppcp-r-settings-block__content {
@include vertical-layout-event-gap(24px);
}
}
}
.ppcp-r-settings-block__accordion {
> .ppcp-r-accordion {
width: 100%;
.ppcp-r-accordion__toggler {
width: 100%;
margin: 0;
text-align: unset;
}
}
}