ui-lib/lib/ui/css/checkbox.scss

51 lines
961 B
SCSS

@import "./functions/checkbox.scss";
.checkbox-image {
>input[type="checkbox"] {
display: none;
&:checked {
&~.checked {
display: inline;
}
&~.unchecked {
display: none;
}
}
}
>.checked {
display: none;
}
>.unchecked {
display: inline;
}
}
.checkbox-wrapper {
display: inline-flex;
align-items: center;
padding: 0 8px;
height: 36px;
@include check-box();
.check-box-inner {
flex: 0 0 auto;
&+* {
flex: 1 1 auto;
font-weight: 400;
font-size: var(--font-size);
padding-left: 8px;
padding-right: 6px;
align-self: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
cursor: pointer;
color: var(--color);
}
}
}