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;
|
|
|
|
border: 1px solid currentColor;
|
2020-07-31 15:17:01 +00:00
|
|
|
height: 1em;
|
2020-04-07 15:37:03 +00:00
|
|
|
margin: 0;
|
|
|
|
min-height: 16px;
|
|
|
|
min-width: 16px;
|
|
|
|
overflow: hidden;
|
|
|
|
position: static;
|
|
|
|
vertical-align: middle;
|
2020-07-31 15:17:01 +00:00
|
|
|
width: 1em;
|
2020-04-07 15:37:03 +00:00
|
|
|
|
|
|
|
&:checked {
|
|
|
|
background: currentColor;
|
|
|
|
border-color: currentColor;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
color: #fff;
|
|
|
|
content: "\2713";
|
|
|
|
display: block;
|
|
|
|
height: calc(1rem - 2px);
|
|
|
|
min-height: 14px;
|
|
|
|
min-width: 14px;
|
|
|
|
margin: 0;
|
|
|
|
line-height: 100%;
|
|
|
|
text-align: center;
|
|
|
|
width: calc(1rem - 2px);
|
|
|
|
}
|
|
|
|
}
|
2020-03-06 10:26:03 +00:00
|
|
|
}
|
2020-04-07 15:37:03 +00:00
|
|
|
|
2020-06-17 09:53:42 +00:00
|
|
|
.wc-block-components-checkbox__input[type="checkbox"] + .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
|
|
|
}
|
|
|
|
}
|