style: 优化复选框半选禁用样式 (#8975)

Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com>
This commit is contained in:
qkiroc 2023-12-01 14:56:21 +08:00 committed by GitHub
parent da257108a9
commit 35481241d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,12 +137,12 @@
}
&[disabled] + i {
border-color: var(--Checkbox-onDisabled-color);
border-color: var(--Checkbox-color) !important;
cursor: not-allowed;
background-color: var(--checkbox-checkbox-disabled-bg-color);
&:before {
width: var(--Checkbox-inner-size);
height: calc(var(--Checkbox-inner-size) / 2);
background-color: var(--Checkbox-onDisabled-color);
border-width: 0;
}
}
@ -285,6 +285,7 @@
&:before {
border-color: var(--Checkbox-onDisabled-color);
background: var(--Checkbox-onDisabled-bg);
border-width: 0 0 px2rem(1px) px2rem(1px);
}
}