shu-c-view
Version:
rollup 打包vue组件库框架
390 lines (366 loc) • 8.89 kB
text/less
/* stylelint-disable */
@steps-prefix-cls: ~'ivu-steps';
@steps-wait-icon-color: #ccc;
@steps-wait-title-color: #999;
@steps-wait-description-color: #999;
@steps-wait-tail-color: #e8eaec;
@steps-title-color: #666;
@primary-color: #2d8cf0;
@border-color-split: #e8eaec;
@transition-time: 0.2s;
@ease-in-out: ease-in-out;
@error-color: #ed4014;
.@{steps-prefix-cls} {
width: 100%;
font-size: 0;
line-height: 1.5;
&-item {
position: relative;
display: inline-block;
vertical-align: top;
&.@{steps-prefix-cls}-status-wait {
.@{steps-prefix-cls}-head-inner {
background-color: #fff;
> .@{steps-prefix-cls}-icon,
span {
color: @steps-wait-icon-color;
}
}
.@{steps-prefix-cls}-title {
color: @steps-wait-title-color;
}
.@{steps-prefix-cls}-content {
color: @steps-wait-description-color;
}
.@{steps-prefix-cls}-tail > i {
background-color: @steps-wait-tail-color;
}
}
&.@{steps-prefix-cls}-status-process {
.@{steps-prefix-cls}-head-inner {
background-color: @primary-color;
border-color: @primary-color;
> .@{steps-prefix-cls}-icon,
span {
color: #fff;
}
}
.@{steps-prefix-cls}-title {
color: @steps-title-color;
}
.@{steps-prefix-cls}-content {
color: @steps-title-color;
}
.@{steps-prefix-cls}-tail > i {
background-color: @border-color-split;
}
}
&.@{steps-prefix-cls}-status-finish {
.@{steps-prefix-cls}-head-inner {
background-color: #fff;
border-color: @primary-color;
> .@{steps-prefix-cls}-icon,
span {
color: @primary-color;
}
}
.@{steps-prefix-cls}-tail > i:after {
width: 100%;
background: @primary-color;
opacity: 1;
transition: all @transition-time @ease-in-out;
}
.@{steps-prefix-cls}-title {
color: @steps-wait-title-color;
}
.@{steps-prefix-cls}-content {
color: @steps-wait-description-color;
}
}
&.@{steps-prefix-cls}-status-error {
.@{steps-prefix-cls}-head-inner {
background-color: #fff;
border-color: @error-color;
> .@{steps-prefix-cls}-icon {
color: @error-color;
}
}
.@{steps-prefix-cls}-title {
color: @error-color;
}
.@{steps-prefix-cls}-content {
color: @error-color;
}
.@{steps-prefix-cls}-tail > i {
background-color: @border-color-split;
}
}
&.@{steps-prefix-cls}-next-error {
.@{steps-prefix-cls}-tail > i,
.@{steps-prefix-cls}-tail > i:after {
background-color: @error-color;
}
}
&.@{steps-prefix-cls}-custom {
.@{steps-prefix-cls}-head-inner {
width: auto;
height: auto;
background: none;
border: 0;
> .@{steps-prefix-cls}-icon {
top: 2px;
width: 20px;
height: 20px;
font-size: 20px;
}
}
&.@{steps-prefix-cls}-status-process {
.@{steps-prefix-cls}-head-inner > .@{steps-prefix-cls}-icon {
color: @primary-color;
}
}
}
}
&-item:last-child &-tail {
display: none;
}
.@{steps-prefix-cls}-head,
.@{steps-prefix-cls}-main {
position: relative;
display: inline-block;
vertical-align: top;
}
.@{steps-prefix-cls}-head-inner {
display: block;
width: 26px;
height: 26px;
margin-right: 8px;
font-size: 14px;
line-height: 24px;
text-align: center;
border: 1px solid @steps-wait-icon-color;
border-radius: 50%;
transition: background-color @transition-time @ease-in-out;
> .@{steps-prefix-cls}-icon {
position: relative;
line-height: 1;
&.ivu-icon {
font-size: 24px;
&-ios-checkmark-empty,
&-ios-close-empty {
font-weight: bold;
}
}
}
}
.@{steps-prefix-cls}-main {
display: inline;
margin-top: 2.5px;
}
.@{steps-prefix-cls}-custom .@{steps-prefix-cls}-title {
margin-top: 2.5px;
}
.@{steps-prefix-cls}-title {
display: inline-block;
padding-right: 10px;
margin-bottom: 4px;
font-size: 14px;
font-weight: bold;
color: #666;
> a:first-child:last-child {
color: #666;
}
}
.@{steps-prefix-cls}-item-last {
.@{steps-prefix-cls}-title {
width: 100%;
padding-right: 0;
}
}
.@{steps-prefix-cls}-content {
font-size: 12px;
color: #999;
}
.@{steps-prefix-cls}-tail {
position: absolute;
top: 13px;
left: 0;
width: 100%;
padding: 0 10px;
> i {
position: relative;
display: inline-block;
width: 100%;
height: 1px;
vertical-align: top;
background: @border-color-split;
border-radius: 1px;
&::after {
position: absolute;
top: 0;
width: 0;
height: 100%;
content: '';
background: @border-color-split;
opacity: 0;
}
}
}
&.@{steps-prefix-cls}-small {
.@{steps-prefix-cls}-head-inner {
width: 18px;
height: 18px;
margin-right: 10px;
font-size: 12px;
line-height: 16px;
text-align: center;
border-radius: 50%;
> .@{steps-prefix-cls}-icon.ivu-icon {
top: 0;
font-size: 16px;
}
}
.@{steps-prefix-cls}-main {
margin-top: 0;
}
.@{steps-prefix-cls}-title {
margin-top: 0;
margin-bottom: 4px;
font-size: 12px;
font-weight: bold;
color: #666;
}
.@{steps-prefix-cls}-content {
padding-left: 30px;
font-size: 12px;
color: #999;
}
.@{steps-prefix-cls}-tail {
top: 8px;
padding: 0 8px;
> i {
width: 100%;
height: 1px;
border-radius: 1px;
}
}
}
&.@{steps-prefix-cls}-small
.@{steps-prefix-cls}-item.@{steps-prefix-cls}-custom
.@{steps-prefix-cls}-head-inner,
.@{steps-prefix-cls}-item.@{steps-prefix-cls}-custom
.@{steps-prefix-cls}-head-inner {
width: inherit;
height: inherit;
line-height: inherit;
background: none;
border: 0;
border-radius: 0;
}
}
.@{steps-prefix-cls}-vertical {
.@{steps-prefix-cls}-item {
display: block;
}
.@{steps-prefix-cls}-tail {
position: absolute;
top: 0;
left: 13px;
width: 1px;
height: 100%;
padding: 30px 0 4px 0;
> i {
width: 1px;
height: 100%;
&::after {
width: 100%;
height: 0;
}
}
}
.@{steps-prefix-cls}-status-finish {
.@{steps-prefix-cls}-tail > i:after {
height: 100%;
}
}
.@{steps-prefix-cls}-head {
float: left;
&-inner {
margin-right: 16px;
}
}
.@{steps-prefix-cls}-main {
display: block;
min-height: 47px;
overflow: hidden;
.@{steps-prefix-cls}-title {
line-height: 26px;
}
.@{steps-prefix-cls}-content {
padding-bottom: 12px;
padding-left: 0;
}
}
.@{steps-prefix-cls}-custom .@{steps-prefix-cls}-icon {
left: 4px;
}
&.@{steps-prefix-cls}-small
.@{steps-prefix-cls}-custom
.@{steps-prefix-cls}-icon {
left: 0;
}
}
.@{steps-prefix-cls}-vertical.@{steps-prefix-cls}-small {
.@{steps-prefix-cls}-tail {
position: absolute;
top: 0;
left: 9px;
padding: 22px 0 4px 0;
> i {
height: 100%;
}
}
.@{steps-prefix-cls}-title {
line-height: 18px;
}
}
.@{steps-prefix-cls}-horizontal {
&.@{steps-prefix-cls}-hidden {
visibility: hidden;
}
.@{steps-prefix-cls}-tail {
display: none;
}
.@{steps-prefix-cls}-content {
//max-width: 100px;
padding-left: 45px;
}
.@{steps-prefix-cls}-item:not(:first-child) .@{steps-prefix-cls}-head {
padding-left: 10px;
}
.@{steps-prefix-cls}-item {
overflow: hidden;
&:last-child .@{steps-prefix-cls}-title:after {
display: none;
}
}
.@{steps-prefix-cls}-title {
position: relative;
&::after {
position: absolute;
top: 50%;
left: 100%;
width: 9999px;
height: 1px;
content: '';
background: @border-color-split;
}
}
.@{steps-prefix-cls}-status-finish {
.@{steps-prefix-cls}-title:after {
background: @primary-color;
opacity: 1;
transition: all @transition-time @ease-in-out;
}
}
}