79 lines
1.5 KiB
SCSS
79 lines
1.5 KiB
SCSS
/** @format */
|
|
|
|
.woocommerce-segmented-selection {
|
|
width: 100%;
|
|
color: $core-grey-dark-500;
|
|
}
|
|
|
|
.woocommerce-segmented-selection__container {
|
|
width: 100%;
|
|
grid-template-columns: 1fr 1fr;
|
|
display: grid;
|
|
border-top: 1px solid $core-grey-light-700;
|
|
border-bottom: 1px solid $core-grey-light-700;
|
|
background-color: $core-grey-light-700;
|
|
}
|
|
|
|
.woocommerce-segmented-selection__item {
|
|
display: block;
|
|
@include set-grid-item-position( 2, 10 );
|
|
|
|
&:nth-child(2n) {
|
|
border-left: 1px solid $core-grey-light-700;
|
|
border-top: 1px solid $core-grey-light-700;
|
|
}
|
|
|
|
&:nth-child(2n + 1) {
|
|
border-top: 1px solid $core-grey-light-700;
|
|
}
|
|
|
|
&:nth-child(-n + 2) {
|
|
border-top: 0;
|
|
}
|
|
}
|
|
|
|
.woocommerce-segmented-selection__label {
|
|
background-color: $core-grey-light-100;
|
|
padding: $gap-small $gap-small $gap-small $gap-larger;
|
|
position: relative;
|
|
display: block;
|
|
height: 100%;
|
|
|
|
&:active {
|
|
background-color: $core-grey-light-200;
|
|
}
|
|
|
|
&:hover {
|
|
background-color: $core-grey-light-200;
|
|
}
|
|
}
|
|
|
|
.woocommerce-segmented-selection__input {
|
|
opacity: 0;
|
|
position: absolute;
|
|
left: -9999px;
|
|
|
|
&:active + label .woocommerce-segmented-selection__label {
|
|
background-color: $core-grey-light-200;
|
|
}
|
|
|
|
&:checked + label .woocommerce-segmented-selection__label {
|
|
background-color: $white;
|
|
font-weight: 600;
|
|
|
|
&::before {
|
|
content: '';
|
|
width: 8px;
|
|
height: 8px;
|
|
background-color: $woocommerce;
|
|
position: absolute;
|
|
top: 50%;
|
|
transform: translate(-20px, -50%);
|
|
}
|
|
}
|
|
|
|
&:focus + label .woocommerce-segmented-selection__label {
|
|
box-shadow: inset 0 0 0 1px $black;
|
|
}
|
|
}
|