@import "../mixins/index"; @stepsPrefixClass: ~"@{css-prefix}steps"; @process-icon-color: @primary-color; @process-title-color: #666; @process-description-color: @process-title-color; @process-tail-color: #bcbcbc; @wait-icon-color: #bcbcbc; @wait-title-color: #999; @wait-description-color: @wait-title-color; @wait-tail-color: @wait-icon-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; } .@{stepsPrefixClass} { font-size: 0; width: 100%; line-height: 1.5; .@{stepsPrefixClass}-item { position: relative; display: inline-block; vertical-align: top; &.@{stepsPrefixClass}-status-wait { .@{stepsPrefixClass}-head-inner { border-color: @wait-icon-color; background-color: #fff; > .@{stepsPrefixClass}-icon { color: @wait-icon-color; } } .@{stepsPrefixClass}-title { color: @wait-title-color; } .@{stepsPrefixClass}-description { color: @wait-description-color; } .@{stepsPrefixClass}-tail > i { background-color: @wait-tail-color; } } &.@{stepsPrefixClass}-status-process { .@{stepsPrefixClass}-head-inner { border-color: @process-icon-color; background-color: @process-icon-color; > .@{stepsPrefixClass}-icon { color: #fff; } } .@{stepsPrefixClass}-title { color: @process-title-color; } .@{stepsPrefixClass}-description { color: @process-description-color; } .@{stepsPrefixClass}-tail > i { background-color: @process-tail-color; } } &.@{stepsPrefixClass}-status-finish { .@{stepsPrefixClass}-head-inner { border-color: @finish-icon-color; background-color: #fff; > .@{stepsPrefixClass}-icon { color: @finish-icon-color; } } .@{stepsPrefixClass}-tail > i { background-color: @finish-tail-color; } .@{stepsPrefixClass}-title { color: @finish-title-color; } .@{stepsPrefixClass}-description { color: @finish-description-color; } } &.@{stepsPrefixClass}-custom { .@{stepsPrefixClass}-head-inner { background: none; border: 0; width: auto; height: auto; > .@{stepsPrefixClass}-icon { font-size: 20px; top: 0; } } &.@{stepsPrefixClass}-status-process { .@{stepsPrefixClass}-head-inner > .@{stepsPrefixClass}-icon { color: @process-icon-color; } } } } .@{stepsPrefixClass}-head, .@{stepsPrefixClass}-main { position: relative; display: inline-block; vertical-align: top; } .@{stepsPrefixClass}-head { background: #fff; } .@{stepsPrefixClass}-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.1s ease); .transition(border-color 0.1s ease); > .@{stepsPrefixClass}-icon { line-height: 1; display: inline-block; vertical-align: middle; top: -2px; color: @primary-color; position: relative; &.anticon { font-size: 12px; } } } .@{stepsPrefixClass}-main { margin-top: 3px; } .@{stepsPrefixClass}-title { font-size: 14px; margin-bottom: 4px; color: #666; font-weight: bold; background: #fff; display: inline-block; padding-right: 10px; } .@{stepsPrefixClass}-item-last { .@{stepsPrefixClass}-title { padding-right: 0; } } .@{stepsPrefixClass}-description { font-size: 12px; color: #999; } .@{stepsPrefixClass}-tail { position: absolute; left: 0; width: 100%; top: 12px; padding:0 10px; > i { display: inline-block; background: @wait-tail-color; height: 2px; border-radius: 1px; width: 100%; } } &.@{stepsPrefixClass}-small { .@{stepsPrefixClass}-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; > .@{stepsPrefixClass}-icon.anticon { font-size: 12px; font-size: ~"9px \9"; // ie8-9 .scale(0.75); } } .@{stepsPrefixClass}-main { margin-top: 0; } .@{stepsPrefixClass}-title { font-size: 12px; margin-bottom: 4px; color: #666; font-weight: bold; } .@{stepsPrefixClass}-description { font-size: 10px; color: #999; } .@{stepsPrefixClass}-tail { top: 8px; padding:0 8px; > i { height: 1px; border-radius: 1px; width: 100%; } } } &.@{stepsPrefixClass}-small .@{stepsPrefixClass}-item.@{stepsPrefixClass}-custom .@{stepsPrefixClass}-head-inner, .@{stepsPrefixClass}-item.@{stepsPrefixClass}-custom .@{stepsPrefixClass}-head-inner { width: inherit; height: inherit; line-height: inherit; border-radius: 0; border: 0; background: none; } }