ui-lib/css/checkbox.scss
2023-04-10 17:30:17 +08:00

52 lines
995 B
SCSS

@import './functions/checkbox.scss';
@import './variables/definition.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: $mediumSize;
padding-left: 8px;
padding-right: 6px;
align-self: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
cursor: pointer;
color: var(--color);
}
}
}