美化ELementUi步骤条
程序员文章站
2022-03-04 11:01:14
...
美化ELement步骤条
代码如下:
<div class="simple-step simple-step-green">
<el-steps direction="vertical" :active="1">
<template v-for="(item, index) in stepData">
<el-step
:key="index"
:title="item.title"
:description="item.desc"
></el-step>
</template>
</el-steps>
</div>
.simple-step.simple-step-green {
/deep/ {
.is-finish .el-step__icon.is-text {
border-color: #27bf68;
background-color: #27bf68;
box-shadow: 0 0 7px 3px #27bf68;
}
.el-step__title.is-finish {
color: #000000;
}
.el-step__description {
color: #c0c4cc;
}
.is-finish.el-step__description {
color: #8c8c8c;
}
}
}
.simple-step {
/deep/ {
.el-step__description {
color: #314659;
margin-top: -6px;
height: 35px;
}
.el-step__description.is-finish {
color: #409eff;
}
.is-finish .el-step__icon {
background-color: #409eff;
}
.is-finish .el-step__icon.is-text {
background-color: #409eff;
border-color: #409eff;
}
.el-step__icon.is-text {
background-color: rgba(0, 0, 0, 0.09);
border-color: rgba(0, 0, 0, 0.09);
}
.el-step__line {
background: rgba(0, 0, 0, 0.09);
}
.el-step.is-vertical .el-step__head {
width: 14px;
}
.el-step.is-vertical .el-step__main {
padding-left: 5px;
}
.el-step.is-vertical .el-step__line {
width: 1px;
top: 17px;
bottom: 0;
left: 3px;
}
.el-step__icon.is-text {
width: 6px;
height: 6px;
}
.el-step__icon-inner {
display: none;
}
}
}
上一篇: js获取年份,当前年份的前后15年
下一篇: 步骤条样式