From f77f2cc3ec2683ff51b7fac3ca55dd850bb03d97 Mon Sep 17 00:00:00 2001 From: liaoxuezhi <2betop.cn@gmail.com> Date: Sat, 24 Oct 2020 18:02:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20inline=20=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scss/components/form/_form.scss | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scss/components/form/_form.scss b/scss/components/form/_form.scss index fe11d311c..c1599e4f0 100644 --- a/scss/components/form/_form.scss +++ b/scss/components/form/_form.scss @@ -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;