ui-lib/lib/ui/css/checkbox.scss
2023-04-21 17:17:56 +08:00

51 lines
960 B
SCSS

@import "./functions/func.scss";
.ui-check-image-wrapper {
>input[type="checkbox"] {
display: none;
&:checked {
~.checked {
display: inline;
}
~.unchecked {
display: none;
}
}
}
>.checked {
display: none;
}
>.unchecked {
display: inline;
}
}
.ui-check-wrapper {
display: inline-flex;
align-items: center;
padding: 0 8px;
height: 36px;
@include ui-check();
.ui-check-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);
}
}
}