refactor: 优化 longbow-checkbox 样式
#Comment comment display: flex 导致复选框比文字低一个像素
This commit is contained in:
parent
7f26cf4efe
commit
8f17092b00
|
@ -1,16 +1,16 @@
|
|||
.form-checkbox {
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
display: inline-block;
|
||||
user-select: none;
|
||||
white-space: nowrap;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.form-checkbox .checkbox-input {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
display: inline-block;
|
||||
line-height: 1;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.form-checkbox .checkbox-input input {
|
||||
|
@ -73,3 +73,9 @@
|
|||
.form-checkbox.is-disabled.is-checked .checkbox-input .checkbox-inner:after {
|
||||
border-color: #c0c4cc;
|
||||
}
|
||||
|
||||
@media (min-width: 576px) {
|
||||
.form-inline .form-checkbox {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue