@import "../mixins/index"; @steps-prefix-cls: ~"@{css-prefix}steps"; @steps-vertical-prefix-cls: ~"@{css-prefix}steps-vertical"; @steps-vertical-small-prefix-cls: ~"@{css-prefix}steps-vertical-small"; @process-icon-color: @primary-color; @process-title-color: #666; @process-description-color: @process-title-color; @process-tail-color: #e9e9e9; @wait-icon-color: #ccc; @wait-title-color: #999; @wait-description-color: @wait-title-color; @wait-tail-color: @process-tail-color; @finish-icon-color: @process-icon-color; @finish-title-color: @wait-title-color; @finish-description-color: @finish-title-color; @finish-tail-color: @process-icon-color; .transition(@transition) { transition: @transition; -webkit-transition: @transition; -moz-transition: @transition; } .@{steps-prefix-cls} { font-size: 0; width: 100%; line-height: 1.5; .@{steps-prefix-cls}-item { position: relative; display: inline-block; vertical-align: top; &.@{steps-prefix-cls}-status-wait { .@{steps-prefix-cls}-head-inner { border-color: @wait-icon-color; background-color: #fff; > .@{steps-prefix-cls}-icon { color: @wait-icon-color; } } .@{steps-prefix-cls}-title { color: @wait-title-color; } .@{steps-prefix-cls}-description { color: @wait-description-color; } .@{steps-prefix-cls}-tail > i { background-color: @wait-tail-color; } } &.@{steps-prefix-cls}-status-process { .@{steps-prefix-cls}-head-inner { border-color: @process-icon-color; background-color: @process-icon-color; > .@{steps-prefix-cls}-icon { color: #fff; } } .@{steps-prefix-cls}-title { color: @process-title-color; } .@{steps-prefix-cls}-description { color: @process-description-color; } .@{steps-prefix-cls}-tail > i { background-color: @process-tail-color; } } &.@{steps-prefix-cls}-status-finish { .@{steps-prefix-cls}-head-inner { border-color: @finish-icon-color; background-color: #fff; > .@{steps-prefix-cls}-icon { color: @finish-icon-color; } } .@{steps-prefix-cls}-tail > i { background-color: @finish-tail-color; } .@{steps-prefix-cls}-title { color: @finish-title-color; } .@{steps-prefix-cls}-description { color: @finish-description-color; } } &.@{steps-prefix-cls}-custom { .@{steps-prefix-cls}-head-inner { background: none; border: 0; width: auto; height: auto; > .@{steps-prefix-cls}-icon { font-size: 20px; top: 2px; width: 20px; height: 20px; } } &.@{steps-prefix-cls}-status-process { .@{steps-prefix-cls}-head-inner > .@{steps-prefix-cls}-icon { color: @process-icon-color; } } } } .@{steps-prefix-cls}-head, .@{steps-prefix-cls}-main { position: relative; display: inline-block; vertical-align: top; } .@{steps-prefix-cls}-head { background: #fff; } .@{steps-prefix-cls}-head-inner { display: block; border: 1px solid @wait-icon-color; width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 26px; font-size: 14px; margin-right: 8px; .transition(background-color 0.3s ease); .transition(border-color 0.3s ease); > .@{steps-prefix-cls}-icon { line-height: 1; top: -1px; color: @primary-color; position: relative; &.anticon { font-size: 12px; position: relative; top: -2px; } } } .@{steps-prefix-cls}-main { margin-top: 3px; } .@{steps-prefix-cls}-title { font-size: 14px; margin-bottom: 4px; color: #666; font-weight: bold; background: #fff; display: inline-block; padding-right: 10px; } .@{steps-prefix-cls}-item-last { .@{steps-prefix-cls}-title { padding-right: 0; } } .@{steps-prefix-cls}-description { font-size: 12px; color: #999; } .@{steps-prefix-cls}-tail { position: absolute; left: 0; width: 100%; top: 13px; padding: 0 10px; > i { display: inline-block; vertical-align: top; background: @wait-tail-color; height: 1px; border-radius: 1px; width: 100%; .transition(background 0.3s ease); } } &.@{steps-prefix-cls}-small { .@{steps-prefix-cls}-head-inner { border: 1px solid @wait-icon-color; width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 18px; font-size: 12px; margin-right: 10px; > .@{steps-prefix-cls}-icon.anticon { .iconfont-size-under-12px(9px); top: -1px; } } .@{steps-prefix-cls}-main { margin-top: 0; } .@{steps-prefix-cls}-title { font-size: 12px; margin-bottom: 4px; color: #666; font-weight: bold; } .@{steps-prefix-cls}-description { font-size: 10px; color: #999; } .@{steps-prefix-cls}-tail { top: 8px; padding: 0 8px; > i { height: 1px; border-radius: 1px; width: 100%; } } } &.@{steps-prefix-cls}-small .@{steps-prefix-cls}-item.@{steps-prefix-cls}-custom .@{steps-prefix-cls}-head-inner, .@{steps-prefix-cls}-item.@{steps-prefix-cls}-custom .@{steps-prefix-cls}-head-inner { width: inherit; height: inherit; line-height: inherit; border-radius: 0; border: 0; background: none; } } //vertical steps .@{steps-prefix-cls} { .@{steps-prefix-cls}-item.@{steps-vertical-prefix-cls} { display: block; } .@{steps-vertical-prefix-cls}.@{steps-prefix-cls}-tail { left: 13px; height: 100%; width: 1px; top: 0; padding: 30px 0 4px 0; > i { height: 100%; width: 1px; } } .@{steps-vertical-prefix-cls}.@{steps-prefix-cls}-main { min-height: 47px; } .@{steps-vertical-prefix-cls}.@{steps-prefix-cls}-head-inner { margin-right: 16px; } .@{steps-prefix-cls}-item.@{steps-vertical-small-prefix-cls} { display: block; } .@{steps-vertical-small-prefix-cls}.@{steps-prefix-cls}-tail { left: 7px; height: 100%; width: 2px; top: 0; padding: 0; > i { height: 100%; width: 0px; } } .@{steps-prefix-cls}-item.@{steps-prefix-cls}-status-wait { .@{steps-vertical-small-prefix-cls}.@{steps-prefix-cls}-tail { > i { background-color: #fff; border-left: 2px dotted @wait-tail-color; } } } .@{steps-prefix-cls}-item.@{steps-prefix-cls}-status-process { .@{steps-vertical-small-prefix-cls}.@{steps-prefix-cls}-tail { > i { background-color: #fff; border-left: 2px dotted @process-tail-color; } } } .@{steps-prefix-cls}-item.@{steps-prefix-cls}-status-finish { .@{steps-vertical-small-prefix-cls}.@{steps-prefix-cls}-tail { > i { background-color: #fff; border-left: 2px solid @finish-tail-color; } } } .@{steps-vertical-small-prefix-cls}.@{steps-prefix-cls}-main { min-height: 47px; } .@{steps-vertical-small-prefix-cls}.@{steps-prefix-cls}-head-inner { margin-right: 8px; background-color: #2db7f5; } .@{steps-prefix-cls}-status-wait, .@{steps-prefix-cls}-status-process { .@{steps-vertical-small-prefix-cls}.@{steps-prefix-cls}-head-inner { text-indent: 1000px; display: inline-block; background-color: #fff; } } .@{steps-vertical-small-prefix-cls}.@{steps-prefix-cls}-head-inner { width: 16px; height: 16px; border-width: 2px; } .@{steps-prefix-cls}-status-finish { .@{steps-vertical-small-prefix-cls}.@{steps-prefix-cls}-head-inner { background-color: @finish-tail-color; } } .@{steps-prefix-cls}-status-finish { .@{steps-vertical-small-prefix-cls}.@{steps-prefix-cls}-head-inner { .@{steps-vertical-small-prefix-cls}.@{steps-prefix-cls}-icon:before { color: #fff; font-weight: 700; position: absolute; top: -13px; left: -6px; } } } }