woocommerce/plugins/woocommerce-admin/client/components/segmented-selection/style.scss

62 lines
1.2 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;
grid-gap: 1px;
background-color: $core-grey-light-700;
}
.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;
}
}