steps.min.css 2.74 KB
.steps {
    display: flex;
    padding: 10px;
    box-sizing: border-box
}

.steps-horizontal {
    white-space: nowrap
}

.steps-vertical {
    display: flex;
    flex-direction: column;
    height: 100%
}

.steps-center {
    text-align: center
}

.step {
    position: relative;
    flex-shrink: 1
}

.steps-horizontal .step {
    display: flex;
    flex-direction: column;
    align-items: flex-start
}

.steps-horizontal.steps-center .step {
    align-items: center
}

.steps-vertical .step {
    display: flex
}

.step-line-box {
    position: relative;
    width: 100%;
    margin-bottom: 10px
}

.steps-vertical .step-line-box {
    flex-grow: 0;
    width: auto;
    margin-right: 10px;
    margin-bottom: 0
}

.step-line {
    position: absolute;
    height: 2px;
    top: 11px;
    left: 0;
    right: 0;
    border-color: inherit;
    background-color: #c0c4cc
}

.steps-vertical .step-line {
    width: 2px;
    top: 0;
    bottom: 0;
    left: 11px;
    height: 100%
}

.steps-center .step-line {
    left: 50%;
    right: -50%
}

.step-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    transition: .15s ease-out;
    border-radius: 50%;
    border: 2px solid;
    border-color: inherit
}

.step-icon-finish-bg {
    background-color: #00a479;
}

.step-icon-default-bg {
    background-color: #999;
}

.step-icon-number {
    display: inline-block;
    user-select: none;
    text-align: center;
    font-weight: 700;
    line-height: 1;
    color: inherit
}

.step-icon-bullets {
    display: inline-block;
    user-select: none;
    width: 14px;
    height: 14px;
    background-color: currentColor;
    border-radius: 50%
}

.step-title {
    white-space: pre-line;
    padding-right: 10%;
    font-size: 16px;
    margin-bottom: 10px
}

.steps-vertical .step-title {
    text-align: right;
    line-height: 24px;
    padding: 0 0 8px 0;
    margin: 0 10px 0 0
}

.step-description {
    white-space: pre-line;
    padding-right: 10%;
    font-size: 12px;
    line-height: 22px;
    font-weight: 400;
    margin: -5px 0 10px 0
}

.steps-horizontal .step:last-child .step-description,
.steps-horizontal .step:last-child .step-title {
    padding-right: 0
}

.steps-vertical .step-description {
    line-height: 20px;
    padding: 0 0 8px 0;
    margin: 0 10px 0 0
}

.steps-center .step-description,
.steps-center .step-title {
    padding-right: 0
}

.steps .step:last-child .step-line {
    display: none
}

.step-default-class {
    color: #999;
    border-color: #999
}

.step-finish-class {
    color: #409eff;
    border-color: #409eff
}

.step-finish-line-bg {
    background-color: #409eff
}