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

115 lines
1.8 KiB
SCSS
Raw Normal View History

2024-10-23 15:24:52 +02:00
.ppcp-r-select-box-wrapper {
margin: 0 auto;
display: flex;
gap: 32px;
flex-wrap: wrap;
}
.ppcp-r-select-box {
2024-10-24 06:35:48 +02:00
position: relative;
2024-10-23 15:24:52 +02:00
width: 100%;
border: 1px solid $color-gray-200;
2024-10-24 13:54:50 +02:00
outline: 1px solid transparent;
border-radius: 4px;
2024-10-23 15:24:52 +02:00
display: flex;
gap: 16px;
padding: 24px 16px 24px 16px;
2024-10-23 15:24:52 +02:00
2024-10-24 06:35:48 +02:00
&.selected {
border-color: $color-blueberry;
outline-color: $color-blueberry;
box-shadow: $shadow-selection-box;
}
&__radio-value {
2024-10-24 13:54:50 +02:00
@include hide-input-field;
2024-10-23 15:24:52 +02:00
&:checked {
2024-10-24 06:35:48 +02:00
+ .ppcp-r-select-box__radio-presentation {
background: $color-white;
width: 20px;
height: 20px;
border: 6px solid $color-blueberry;
2024-10-23 15:24:52 +02:00
}
}
}
2024-10-24 13:54:50 +02:00
&__checkbox-value {
@include hide-input-field;
&:not(:checked) + .ppcp-r-select-box__checkbox-presentation img {
display: none;
}
&:checked {
+ .ppcp-r-select-box__checkbox-presentation {
width: 20px;
height: 20px;
border: none;
img {
border-radius: 2px;
}
}
}
}
2024-10-24 06:35:48 +02:00
&__content {
display: flex;
position: relative;
pointer-events: none;
*:not(a){
pointer-events: none;
}
a {
pointer-events: all;
}
2024-10-24 06:35:48 +02:00
}
&__title {
@include font(14, 20, 700);
color: $color-black;
2024-10-24 06:35:48 +02:00
margin: 0 0 4px 0;
display: block;
}
&__description {
@include font(13, 20, 400);
color: $color-gray-700;
margin:0;
&:not(:last-child){
margin-block-end:18px;
}
2024-10-24 06:35:48 +02:00
}
2024-10-23 15:24:52 +02:00
&__radio-presentation {
2024-10-24 13:54:50 +02:00
@include fake-input-field(20px);
}
&__checkbox-presentation {
@include fake-input-field(2px);
}
2024-10-29 13:03:24 +01:00
&__additional-content{
position: relative;
z-index: 1;
}
2024-10-24 13:54:50 +02:00
@media screen and (max-width: 480px) {
gap: 16px;
padding: 18px 16px;
&__description {
margin: 0 0 8px 0;
}
&__content {
gap: 12px;
}
}
@media screen and (max-width: 380px) {
&__content > img {
max-width: 32px;
}
2024-10-23 15:24:52 +02:00
}
}