From a9599b802c22e44385c71f19904612e9fbad91b4 Mon Sep 17 00:00:00 2001 From: afc163 Date: Sun, 26 Feb 2017 18:09:41 +0800 Subject: [PATCH] when labelCol is 24, it is a vertical form --- components/form/style/index.less | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/components/form/style/index.less b/components/form/style/index.less index a60f9a54f6..943fee3d3b 100644 --- a/components/form/style/index.less +++ b/components/form/style/index.less @@ -249,15 +249,14 @@ form { // Form layout //== Vertical Form -.@{form-prefix-cls}-vertical { - .@{form-prefix-cls}-item-label { - padding: 0 0 8px; - display: block; - text-align: left; +.@{form-prefix-cls}-vertical .@{form-prefix-cls}-item-label, +.@{ant-prefix}-col-24.@{form-prefix-cls}-item-label { // when labelCol is 24, it is a vertical form + padding: 0 0 8px; + display: block; + text-align: left; - label:after { - content: ''; - } + label:after { + content: ''; } }