woocommerce-paypal-payments/modules/ppcp-settings/resources/css/components/reusable-components/_payment-method-modal.scss

155 lines
2.2 KiB
SCSS
Raw Normal View History

2024-10-29 12:39:44 +01:00
.ppcp-r-modal {
2024-11-05 13:30:27 +01:00
@import "../../global";
@import './button';
@import './fields';
2024-10-29 12:39:44 +01:00
.components-modal {
&__header {
height: 52px;
padding: 20px 20px 0 20px;
button {
padding: 4px;
}
}
&__content {
2024-11-21 11:38:01 +01:00
margin-top: 60px;
padding: 0 24px 28px 24px;
2024-11-21 11:38:01 +01:00
}
}
&__container {
width: 352px;
max-width: 100%;
}
.has-size-small {
.ppcp-r-modal__container {
max-width: 252px;
}
.components-modal__content {
2024-10-29 12:39:44 +01:00
margin-top: 48px;
}
}
&__header {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
border-bottom: 1px solid $color-gray-500;
2024-11-21 11:38:01 +01:00
padding-bottom: 18px;
margin-bottom: 18px;
2024-10-29 12:39:44 +01:00
}
&__title {
2024-11-21 11:38:01 +01:00
@include font(14, 20, 600);
2024-10-29 12:39:44 +01:00
color: $color-black;
}
&__content {
2024-11-21 11:38:01 +01:00
padding: 0;
2024-10-29 12:39:44 +01:00
}
2024-11-05 13:30:27 +01:00
2024-11-21 11:38:01 +01:00
.components-toggle-control {
gap: 8px;
margin: 0;
label {
@include font(13, 20, 400);
color: $color-text-text;
}
.components-form-toggle__track {
border-color: $color-border;
2024-11-05 13:30:27 +01:00
}
}
&__field-row {
display: flex;
flex-direction: column;
gap: 8px;
&--save {
2024-11-21 11:38:01 +01:00
margin-top: -4px;
2024-11-05 13:30:27 +01:00
align-items: flex-end;
}
input[type='text'] {
margin: 0;
border-color: $color-gray-700;
}
}
&__field-rows {
display: flex;
flex-direction: column;
gap: 24px;
&--acdc {
gap: 18px;
2024-11-21 11:38:01 +01:00
.ppcp-r-modal__field-row--save {
margin-top: 2px;
}
2024-11-05 13:30:27 +01:00
}
.components-radio-control {
.components-flex {
gap: 18px;
}
label {
@include font(14, 20, 400);
color: $color-black;
}
&__option {
gap: 18px;
}
&__input {
border-color: $color-gray-700;
margin-right: 0;
&:checked {
border: 1px solid $color-gray-700;
background-color: $color-white;
&::before {
border-color: $color-blueberry;
}
}
}
}
2024-11-05 13:30:27 +01:00
}
.ppcp-r-modal__field-row--save button.is-primary {
2024-11-11 14:02:49 +01:00
@include small-button;
2024-11-21 11:38:01 +01:00
width: 100%;
justify-content: center;
padding: 6px 12px;
}
.ppcp-r__radio-content {
label {
@include font(13, 20, 400);
}
2024-11-05 13:30:27 +01:00
}
&__content-title {
2024-11-21 11:38:01 +01:00
@include font(13, 20, 600);
2024-11-05 13:30:27 +01:00
color: $color-black;
display: block;
margin: 0 0 4px 0;
}
&__description {
@include font(14, 20, 400);
color: $color-black;
2024-11-21 11:38:01 +01:00
margin: 0 0 12px 0;
2024-11-05 13:30:27 +01:00
}
2024-10-29 12:39:44 +01:00
}