mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-01 19:38:16 +08:00
style: 优化复选框半选禁用样式 (#8975)
Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com>
This commit is contained in:
parent
da257108a9
commit
35481241d1
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user