mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-01 18:58:10 +08:00
fix(checkbox): checkbox bordered padding & height (#2784)
This commit is contained in:
parent
2111d8a88f
commit
3c2ed958f4
@ -36,6 +36,7 @@ $--checkbox-bordered-input-width: map.merge(
|
||||
$--checkbox-bordered-height: () !default;
|
||||
$--checkbox-bordered-height: map.merge(
|
||||
(
|
||||
'default': 40px,
|
||||
'medium': 36px,
|
||||
'small': 32px,
|
||||
'mini': 28px,
|
||||
@ -69,12 +70,12 @@ $--checkbox-line-height: map.merge(
|
||||
margin-right: 30px;
|
||||
|
||||
@include when(bordered) {
|
||||
padding: var(--el-checkbox-bordered-padding);
|
||||
padding: map.get($--checkbox-bordered-padding, 'default');
|
||||
border-radius: var(--el-border-radius-base);
|
||||
border: var(--el-border-base);
|
||||
box-sizing: border-box;
|
||||
line-height: normal;
|
||||
height: var(--el-checkbox-bordered-height);
|
||||
height: map.get($--checkbox-bordered-height, 'default');
|
||||
|
||||
&.is-checked {
|
||||
border-color: var(--el-color-primary);
|
||||
|
@ -203,7 +203,6 @@ $--checkbox: map.merge(
|
||||
'checked-background-color': var(--el-color-primary),
|
||||
'checked-icon-color': var(--el-fill-base),
|
||||
'input-border-color-hover': var(--el-color-primary),
|
||||
'bordered-height': 40px,
|
||||
'button-checked-background-color': var(--el-color-primary),
|
||||
'button-checked-font-color': var(--el-color-white),
|
||||
'button-checked-border-color': var(--el-color-primary),
|
||||
|
Loading…
Reference in New Issue
Block a user