优化 inline 样式

This commit is contained in:
liaoxuezhi 2020-10-24 18:02:35 +08:00
parent ebb4b298aa
commit f77f2cc3ec

View File

@ -23,6 +23,7 @@
.#{$ns}Form-item--inline > .#{$ns}Form-value > & {
display: inline-block;
vertical-align: top;
}
}
@ -73,9 +74,6 @@
}
.#{$ns}Form--inline > &--inline {
margin-bottom: $Form-item-gap/2;
margin-right: $Form-item-gap/2;
&:last-child {
margin-right: 0;
margin-bottom: 0;
@ -87,6 +85,11 @@
vertical-align: top;
}
&--inline {
margin-bottom: $Form-item-gap/2;
margin-right: $Form-item-gap/2;
}
&--horizontal {
> .#{$ns}Form-label {
text-align: $Form--horizontal-label-align;