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

119 lines
1.8 KiB
SCSS
Raw Normal View History

.ppcp-r {
&__radio-value {
@include hide-input-field;
2024-11-21 11:38:01 +01:00
&:checked + .ppcp-r__radio-presentation {
position: relative;
&::before {
content: '';
width: 12px;
height: 12px;
border-radius: 12px;
background-color: $color-blueberry;
display: block;
position: absolute;
transform: translate(-50%, -50%);
left: 50%;
top: 50%;
}
}
}
&__checkbox-value {
@include hide-input-field;
&:not(:checked) + .ppcp-r__checkbox-presentation img {
display: none;
}
&:checked {
+ .ppcp-r__checkbox-presentation {
width: 20px;
height: 20px;
border: none;
img {
border-radius: 2px;
}
}
}
}
&__radio-presentation {
@include fake-input-field(20px);
}
&__checkbox-presentation {
@include fake-input-field(2px);
}
2024-11-11 14:02:49 +01:00
&__radio-wrapper {
display: flex;
gap: 18px;
align-items: center;
position: relative;
label {
@include font(14, 20, 400);
color: $color-gray-800;
}
}
&__radio-description {
@include font(14, 20, 400);
2024-11-13 17:29:11 +01:00
margin: 0;
color: $color-gray-800;
}
&__radio-content-additional {
padding-left: 38px;
padding-top: 18px;
2024-11-11 14:02:49 +01:00
}
}
2024-11-11 14:02:49 +01:00
2024-11-13 17:29:11 +01:00
.components-base-control {
&__label {
color: $color-gray-900;
@include font(13, 16, 600);
text-transform: none;
}
2024-11-11 14:02:49 +01:00
2024-11-13 17:29:11 +01:00
&__input {
border: 1px solid $color-gray-700;
border-radius: 2px;
box-shadow: none;
2024-11-11 14:02:49 +01:00
2024-11-13 17:29:11 +01:00
&:focus {
border-color: $color-blueberry;
}
}
}
input[type='text'] {
padding: 7px 11px;
@include font(14, 20, 400);
@include primaryFont;
border-radius: 2px;
}
select {
padding: 7px 27px 7px 11px;
@include font(14, 20, 400);
}
.components-form-toggle.is-checked > .components-form-toggle__track {
background-color: $color-blueberry;
}
.ppcp-r-vertical-text-control {
.components-base-control__field {
display: flex;
flex-direction: column;
2024-11-21 11:38:01 +01:00
gap: 0;
2024-11-13 17:29:11 +01:00
margin: 0;
}
}