@import "../styles/base/fn.wxss";

.@{wuxClassNamePrefix}-step {
    font-size: 0;
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    padding: 0 5px;
    vertical-align: top;

    &--vertical {
        padding-bottom: 30px;

        .@{wuxClassNamePrefix}-step__hd {
            float: left;
        }

        .@{wuxClassNamePrefix}-step__bd {
            overflow: hidden;
            display: block;
            margin-left: 40px;
            margin-top: 0;
            text-align: left;
            clear: inherit;
        }

        .@{wuxClassNamePrefix}-step__ft {
            position: absolute;
            left: 19px;
            top: 0;
            height: 100%;
            width: 1px;
            padding: 30px 0 4px;
            margin-left: 0;

            &:after {
                width: 1px;
                height: 100%;
            }
        }       
    }

    &__ft {
        position: absolute;
        left: 50%;
        width: 100%;
        top: 12px;
        padding: 0 24px;
        margin-left: 3px;
        box-sizing: border-box;

        &:after {
            content: "";
            display: inline-block;
            background: #ddd;
            height: 1px;
            border-radius: 1px;
            width: 100%;
            transition: background .3s;
            position: relative;
            left: -2px;
        }
    }

    &__icon {
        box-sizing: border-box;
        font-size: 12px;
        width: 24px;
        height: 100%;
        border-radius: 50%;
        background: #fff;
        position: relative;
        z-index: 2;
        margin: 0 auto;
        border: #e9eaec solid 1px;
    }

    &__thumb {
        width: 100%;
        height: 100%;
        display: inline-block;
        overflow: hidden;
    }

    &--process {
        .@{wuxClassNamePrefix}-step__icon {
            border: @positive solid 1px;
            color:#fff;
            background: @positive;
        }

        .@{wuxClassNamePrefix}-step__ft:after {
           // background: @positive;
        }
    }

    &--wait {
        .@{wuxClassNamePrefix}-step__icon {
            border: #e9eaec solid 1px;
            color:#e9eaec;
        }

        .@{wuxClassNamePrefix}-step__ft:after {
            background: @positive;
        }
    }

    &--finish {
        .@{wuxClassNamePrefix}-step__icon {
            border: @positive solid 1px;
            color:@positive;
        }

        .@{wuxClassNamePrefix}-step__ft:after {
            background: @positive;
        }
    }

    &--error {
        .@{wuxClassNamePrefix}-step__icon {
            border: @assertive solid 1px;
            color: @assertive;
        }

        .@{wuxClassNamePrefix}-step__ft:after {
            background: @assertive;
        }
    }

    &__hd {
        width: auto;
        height: 24px;
        line-height: 24px;
        text-align: center;
        box-sizing: border-box;
    }

    &__bd {
        margin-top: 10px;
        text-align: center;
        clear: both;
    }

    &__title {
        font-size: 16px;
        font-weight: 700;
        color: #000;
    }

    &__content {
        font-size: 12px;
        margin-top: 3px;
        color: #b2b2b2;
    }
}