@import 'global.less';
.k-steps {
    font-size: 0;
    width: 100%;
    .k-step-item {
        position: relative;
        display: inline-block;
        vertical-align: top;
        color: #A3A3A3;
        .k-step-tail {
            width: 100%;
            padding: 0 10px;
            position: absolute;
            left: 10px;
            top: 19px;
            box-sizing: border-box;
            i {
                display: inline-block;
                width: 100%;
                height: 2px;
                vertical-align: top;
                background: #eee;
                border-radius: 1px;
                position: relative;
                &::before {
                    position: absolute;
                    left: 0;
                    top: 0;
                    content: '';
                    width: 0;
                    background: @main;
                    height: 1px;
                    transition: width .3s ease-in-out;
                }
            }
        }
        .k-step-icon {
            display: inline-block;
            position: relative;
            background-color: #fff;
            &>i {
                font-size: 24px;
                width: 20px;
                height: 28px;
                line-height: 28px;
                text-align: center;
            }
            .k-step-icon-inner {
                box-sizing: border-box;
                width: 40px;
                height: 40px;
                display: block;
                border: 2px solid #ccc;
                line-height: 37px;
                text-align: center;
                border-radius: 50%;
                font-size: 14px;
                box-sizing: border-box;
                .k-ion-ios-close {
                    font-size: 20px;
                }
            }
        }
        .k-step-main {
            display: inline-block;
            position: relative;
            vertical-align: top;
            .k-step-title {
                display: inline-block;
                font-size: 14px;
                font-weight: 700; // color: #999;
                background: #fff;
                line-height: 28px;
            }
            .k-step-description {
                font-size: 12px;
            }
        }
        &:last-child {
            .k-step-tail {
                display: none;
            }
        }
    }
    .k-steps-process {
        color: #666;
        .k-step-icon {
            &>i {
                color: @main;
            }
            .k-step-icon-inner {
                border-color: @main;
                background-color: @main;
                color: #fff;
            }
        }
    }
    .k-steps-finish {
        color: @main;
        .k-step-icon {
            color: @main;
            .k-step-icon-inner {
                border: none;
                i {
                    font-size: 40px;
                }
            }
        }
        .k-step-tail i {
            &::before {
                width: 100%;
            }
        }
    }
    .k-steps-next {
        color: @main;
        .k-step-icon {
            color: @main;
            .k-step-icon-inner {
                border: none;
                i {
                    font-size: 40px;
                }
            }
        }
        .k-step-tail i {
            &::before {
                width: 100%;
                background: red !important;
            }
        }
    }
    .k-steps-error {
        color: @danger;
        .k-step-head {
            .k-step-icon {
                .k-step-icon-inner {
                    border: none;
                    i {
                        font-size: 40px;
                    }
                }
            }
        }
        .k-step-main{
          .k-step-title{
            padding-left:6px;
            box-sizing: border-box;
          }
        }
    }
}

.k-steps-vertical {
    .k-step-item {
        display: block;
        .k-step-icon {
            padding-right: 16px;
            padding-bottom: 8px;
            float: left;
        }
        .k-step-main {
            min-height: 48px;
            overflow: hidden;
            display: block;
            .k-step-description {
                padding-bottom: 20px;
            }
        }
        .k-step-tail {
            height: 100%;
            padding: 0 0 5px 0;
            left: 50%;
            top: 0;
            width: 1px;
            i {
                display: inline-block;
                height: 100%;
                width: 1px;
                vertical-align: top;
                &::before {
                    position: absolute;
                    left: 0;
                    top: 0;
                    height: 0;
                    content: '';
                    background: @main;
                    width: 1px;
                    transition: height .3s ease-in-out;
                }
            }
        }
    }
    .k-steps-finish {
        .k-step-tail i {
            &::before {
                height: 100%;
            }
        }
    }
    .k-steps-next {
        .k-step-tail i {
            &::before {
                height: 100%;
            }
        }
    }
}

.k-steps-mini {
    .k-step-item {
        .k-step-tail {
            top: 10px;
        }
        .k-step-icon {
            .k-step-icon-inner {
                width: 18px;
                height: 18px;
                line-height: 16px;
                font-size: 12px;
            }
        }
        .k-step-main {
            .k-step-title {
                font-size: 12px;
                line-height: 24px;
            }
            .k-step-description {
                display: none;
            }
        }
    }
}
