From 33679bbd0a614f0f87ec65e4b69d599cf1fb4980 Mon Sep 17 00:00:00 2001 From: Hsuan Lee Date: Tue, 17 Oct 2017 10:53:05 +0800 Subject: [PATCH] feat(module:steps): support [nzProgressDot] property in vertical mode --- src/components/steps/style/patch.less | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/components/steps/style/patch.less b/src/components/steps/style/patch.less index 6e613e741b0..a2d235355f2 100644 --- a/src/components/steps/style/patch.less +++ b/src/components/steps/style/patch.less @@ -1,3 +1,7 @@ +@import "../../style/themes/default"; + +@steps-prefix-cls: ~"@{ant-prefix}-steps"; + .ant-steps-horizontal nz-step:not(:first-child) .ant-steps-head{ padding-left: 10px; margin-left: -10px; @@ -5,3 +9,21 @@ nz-step{ display: block; } + +.@{steps-prefix-cls}-dot { + &.@{steps-prefix-cls}-vertical { + .@{steps-prefix-cls}-tail { + margin-left: 0; + } + .@{steps-prefix-cls}-step { + text-align: left; + width: auto; + } + .@{steps-prefix-cls}-head-inner { + margin-right: 16px; + } + .@{steps-prefix-cls}-main { + margin-top: 0; + } + } +}