ar-design
Version:
AR Design is a (react | nextjs) ui library.
34 lines (32 loc) • 777 B
CSS
.ar-checkbox-wrapper {
display: flex;
align-items: center;
height: var(--input-height);
}
.ar-checkbox-wrapper > label > :is(input[type="checkbox"]) {
display: none;
}
.ar-checkbox-wrapper > label > span {
display: flex;
align-items: center;
gap: 0 0.5rem;
user-select: none;
}
.ar-checkbox-wrapper > label > span > .ar-checkbox {
position: relative;
display: inline-block;
min-width: 1rem;
min-height: 1rem;
}
.ar-checkbox-wrapper > label > :is(input[type="checkbox"]):checked + span > .ar-checkbox::before {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) rotate(45deg);
display: inline-block;
content: "";
width: 0.25rem;
height: 0.5rem;
border: solid 1px transparent;
}
@import url("./core/border.css");