2020-06-17 09:53:42 +00:00
|
|
|
.wc-block-components-checkbox {
|
2020-05-14 09:07:21 +00:00
|
|
|
@include reset-typography();
|
2020-07-31 15:17:01 +00:00
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
height: 1em;
|
2020-04-07 15:37:03 +00:00
|
|
|
position: relative;
|
|
|
|
|
2020-06-17 09:53:42 +00:00
|
|
|
.wc-block-components-checkbox__input[type="checkbox"] {
|
2020-04-07 15:37:03 +00:00
|
|
|
appearance: none;
|
2020-08-11 08:59:59 +00:00
|
|
|
border: 2px solid currentColor;
|
|
|
|
border-radius: 2px;
|
|
|
|
height: em(18px);
|
|
|
|
width: em(18px);
|
2020-04-07 15:37:03 +00:00
|
|
|
margin: 0;
|
2020-08-11 08:59:59 +00:00
|
|
|
min-height: 18px;
|
|
|
|
min-width: 18px;
|
2020-04-07 15:37:03 +00:00
|
|
|
overflow: hidden;
|
|
|
|
position: static;
|
|
|
|
vertical-align: middle;
|
2020-08-11 08:59:59 +00:00
|
|
|
background-color: #fff;
|
2020-04-07 15:37:03 +00:00
|
|
|
|
|
|
|
&:checked {
|
|
|
|
background: currentColor;
|
|
|
|
border-color: currentColor;
|
2020-08-11 08:59:59 +00:00
|
|
|
}
|
2020-04-07 15:37:03 +00:00
|
|
|
|
2020-08-11 08:59:59 +00:00
|
|
|
&:not(:checked) + .wc-block-components-checkbox__mark {
|
|
|
|
display: none;
|
2020-04-07 15:37:03 +00:00
|
|
|
}
|
2020-03-06 10:26:03 +00:00
|
|
|
}
|
2020-04-07 15:37:03 +00:00
|
|
|
|
2020-08-11 08:59:59 +00:00
|
|
|
.wc-block-components-checkbox__mark {
|
|
|
|
fill: #fff;
|
|
|
|
position: absolute;
|
|
|
|
left: em(1px);
|
|
|
|
top: em(-2px);
|
|
|
|
width: em(16px);
|
|
|
|
height: em(16px);
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-components-checkbox__label {
|
2020-04-07 15:37:03 +00:00
|
|
|
padding-left: $gap-smaller;
|
|
|
|
vertical-align: middle;
|
2020-03-06 10:26:03 +00:00
|
|
|
}
|
|
|
|
}
|
2020-08-11 08:59:59 +00:00
|
|
|
|
|
|
|
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
|
|
.wc-block-components-checkbox__mark {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|