mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-11-30 02:08:12 +08:00
fix(components): input textarea padding & label line-height (#7570)
* fix(components): input textarea padding & label line-height * fix(components): form label top align by line-height
This commit is contained in:
parent
92d3fcee3c
commit
4873d833e9
@ -140,18 +140,20 @@ $form-item-label-top-margin-bottom: map.merge(
|
||||
|
||||
@include e(label-wrap) {
|
||||
display: flex;
|
||||
|
||||
.#{$namespace}-form-item__label {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
@include e(label) {
|
||||
display: inline-flex;
|
||||
justify-content: flex-end;
|
||||
align-items: flex-start;
|
||||
|
||||
flex: 0 0 auto;
|
||||
text-align: right;
|
||||
font-size: getCssVar('form-label-font-size');
|
||||
color: getCssVar('text-color', 'regular');
|
||||
|
||||
height: #{map.get($form-item-line-height, 'default')};
|
||||
line-height: #{map.get($form-item-line-height, 'default')};
|
||||
|
||||
padding: 0 12px 0 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
@ -43,7 +43,7 @@
|
||||
position: relative;
|
||||
display: block;
|
||||
resize: vertical;
|
||||
padding: 5px 15px;
|
||||
padding: 5px map.get($input-padding-horizontal, 'default')-$border-width;
|
||||
line-height: 1.5;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
|
Loading…
Reference in New Issue
Block a user