2018-05-17 04:44:58 +00:00
|
|
|
/** @format */
|
|
|
|
|
2018-06-01 14:35:18 +00:00
|
|
|
.woocommerce-segmented-selection {
|
2018-05-17 04:44:58 +00:00
|
|
|
width: 100%;
|
2018-06-29 00:34:17 +00:00
|
|
|
color: $core-grey-dark-500;
|
2018-05-28 10:55:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-segmented-selection__container {
|
|
|
|
width: 100%;
|
2018-05-17 04:44:58 +00:00
|
|
|
grid-template-columns: 1fr 1fr;
|
|
|
|
display: grid;
|
2018-06-29 00:34:17 +00:00
|
|
|
border-top: 1px solid $core-grey-light-700;
|
|
|
|
border-bottom: 1px solid $core-grey-light-700;
|
|
|
|
background-color: $core-grey-light-700;
|
2018-05-17 04:44:58 +00:00
|
|
|
}
|
|
|
|
|
2019-02-13 23:41:35 +00:00
|
|
|
.woocommerce-segmented-selection__item {
|
|
|
|
&: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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-01 14:35:18 +00:00
|
|
|
.woocommerce-segmented-selection__label {
|
2018-06-29 00:34:17 +00:00
|
|
|
background-color: $core-grey-light-100;
|
2018-08-23 18:21:04 +00:00
|
|
|
padding: $gap-small $gap-small $gap-small $gap-larger;
|
2018-05-17 04:44:58 +00:00
|
|
|
position: relative;
|
|
|
|
display: block;
|
2018-05-23 23:15:52 +00:00
|
|
|
height: 100%;
|
2018-06-29 00:34:17 +00:00
|
|
|
|
|
|
|
&:active {
|
2018-07-09 15:46:31 +00:00
|
|
|
background-color: $core-grey-light-200;
|
2018-06-29 00:34:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: $core-grey-light-200;
|
|
|
|
}
|
2018-05-17 04:44:58 +00:00
|
|
|
}
|
|
|
|
|
2018-06-01 14:35:18 +00:00
|
|
|
.woocommerce-segmented-selection__input {
|
2018-05-17 04:44:58 +00:00
|
|
|
opacity: 0;
|
|
|
|
position: absolute;
|
|
|
|
left: -9999px;
|
|
|
|
|
2018-06-29 00:34:17 +00:00
|
|
|
&:active + label .woocommerce-segmented-selection__label {
|
2018-07-09 15:46:31 +00:00
|
|
|
background-color: $core-grey-light-200;
|
2018-06-29 00:34:17 +00:00
|
|
|
}
|
|
|
|
|
2018-06-01 14:35:18 +00:00
|
|
|
&:checked + label .woocommerce-segmented-selection__label {
|
2018-06-29 00:34:17 +00:00
|
|
|
background-color: $white;
|
2018-08-23 02:07:19 +00:00
|
|
|
font-weight: 600;
|
2018-05-17 04:44:58 +00:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
width: 8px;
|
|
|
|
height: 8px;
|
2018-06-29 00:34:17 +00:00
|
|
|
background-color: $woocommerce;
|
2018-05-17 04:44:58 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
2018-08-23 02:07:19 +00:00
|
|
|
transform: translate(-20px, -50%);
|
2018-05-17 04:44:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-01 14:35:18 +00:00
|
|
|
&:focus + label .woocommerce-segmented-selection__label {
|
2018-08-29 20:21:59 +00:00
|
|
|
box-shadow: inset 0 0 0 1px $black;
|
2018-05-17 04:44:58 +00:00
|
|
|
}
|
|
|
|
}
|