From 98e257901cbc2f0c57d2bbc356f1d8c47e73a2db Mon Sep 17 00:00:00 2001 From: Hsuan Lee Date: Sat, 21 Oct 2017 16:30:41 +0800 Subject: [PATCH] feat(module:steps): support [nzProgressDot] property in vertical mode (#446) --- 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 6e613e741b..a2d235355f 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; + } + } +}