You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

231 lines
5.5 KiB

@import "../mixins/index";
@stepsPrefixClass: ~"@{css-prefix}steps";
@process-icon-color: @primary-color;
@process-title-color: #666;
@process-description-color: @process-title-color;
@process-tail-color: #e9e9e9;
@wait-icon-color: #ccc;
@wait-title-color: #999;
@wait-description-color: @wait-title-color;
@wait-tail-color: @process-tail-color;
@finish-icon-color: @process-icon-color;
@finish-title-color: @wait-title-color;
@finish-description-color: @finish-title-color;
@finish-tail-color: @process-icon-color;
10 years ago
.transition(@transition) {
transition: @transition;
-webkit-transition: @transition;
-moz-transition: @transition;
10 years ago
}
.@{stepsPrefixClass} {
font-size: 0;
10 years ago
width: 100%;
line-height: 1.5;
.@{stepsPrefixClass}-item {
position: relative;
display: inline-block;
vertical-align: top;
&.@{stepsPrefixClass}-status-wait {
.@{stepsPrefixClass}-head-inner {
border-color: @wait-icon-color;
10 years ago
background-color: #fff;
> .@{stepsPrefixClass}-icon {
color: @wait-icon-color;
10 years ago
}
}
.@{stepsPrefixClass}-title {
color: @wait-title-color;
}
.@{stepsPrefixClass}-description {
color: @wait-description-color;
}
.@{stepsPrefixClass}-tail > i {
background-color: @wait-tail-color;
}
}
&.@{stepsPrefixClass}-status-process {
.@{stepsPrefixClass}-head-inner {
border-color: @process-icon-color;
background-color: @process-icon-color;
> .@{stepsPrefixClass}-icon {
10 years ago
color: #fff;
}
}
.@{stepsPrefixClass}-title {
color: @process-title-color;
}
.@{stepsPrefixClass}-description {
color: @process-description-color;
}
.@{stepsPrefixClass}-tail > i {
background-color: @process-tail-color;
}
}
&.@{stepsPrefixClass}-status-finish {
.@{stepsPrefixClass}-head-inner {
border-color: @finish-icon-color;
10 years ago
background-color: #fff;
> .@{stepsPrefixClass}-icon {
color: @finish-icon-color;
}
}
.@{stepsPrefixClass}-tail > i {
background-color: @finish-tail-color;
}
.@{stepsPrefixClass}-title {
color: @finish-title-color;
}
.@{stepsPrefixClass}-description {
color: @finish-description-color;
}
10 years ago
}
&.@{stepsPrefixClass}-custom {
.@{stepsPrefixClass}-head-inner {
10 years ago
background: none;
border: 0;
width: auto;
height: auto;
> .@{stepsPrefixClass}-icon {
10 years ago
font-size: 20px;
top: 2px;
width: 20px;
height: 20px;
}
10 years ago
}
&.@{stepsPrefixClass}-status-process {
.@{stepsPrefixClass}-head-inner > .@{stepsPrefixClass}-icon {
color: @process-icon-color;
10 years ago
}
}
}
}
.@{stepsPrefixClass}-head, .@{stepsPrefixClass}-main {
position: relative;
display: inline-block;
vertical-align: top;
}
.@{stepsPrefixClass}-head {
background: #fff;
}
.@{stepsPrefixClass}-head-inner {
display: block;
border:1px solid @wait-icon-color;
width: 26px;
height: 26px;
line-height: 26px;
text-align: center;
border-radius: 26px;
font-size: 14px;
margin-right: 8px;
.transition(background-color 0.3s ease);
.transition(border-color 0.3s ease);
10 years ago
> .@{stepsPrefixClass}-icon {
10 years ago
line-height: 1;
10 years ago
top: -1px;
10 years ago
color: @primary-color;
position: relative;
10 years ago
&.anticon {
font-size: 12px;
position: relative;
top: -2px;
10 years ago
}
}
}
.@{stepsPrefixClass}-main {
10 years ago
margin-top: 3px;
}
.@{stepsPrefixClass}-title {
font-size: 14px;
margin-bottom: 4px;
color: #666;
font-weight: bold;
background: #fff;
display: inline-block;
padding-right: 10px;
}
.@{stepsPrefixClass}-item-last {
.@{stepsPrefixClass}-title {
padding-right: 0;
}
}
.@{stepsPrefixClass}-description {
font-size: 12px;
color: #999;
}
.@{stepsPrefixClass}-tail {
position: absolute;
left: 0;
width: 100%;
10 years ago
top: 12px;
padding:0 10px;
> i {
display: inline-block;
background: @wait-tail-color;
height: 1px;
border-radius: 1px;
width: 100%;
.transition(background 0.3s ease);
}
}
&.@{stepsPrefixClass}-small {
.@{stepsPrefixClass}-head-inner {
border:1px solid @wait-icon-color;
10 years ago
width: 18px;
height: 18px;
line-height: 18px;
text-align: center;
border-radius: 18px;
font-size: 12px;
10 years ago
margin-right: 10px;
10 years ago
> .@{stepsPrefixClass}-icon.anticon {
font-size: 12px;
font-size: ~"9px \9"; // ie8-9
.scale(0.75);
top: -1px;
10 years ago
}
10 years ago
}
.@{stepsPrefixClass}-main {
10 years ago
margin-top: 0;
}
.@{stepsPrefixClass}-title {
10 years ago
font-size: 12px;
margin-bottom: 4px;
color: #666;
font-weight: bold;
}
.@{stepsPrefixClass}-description {
10 years ago
font-size: 10px;
color: #999;
}
.@{stepsPrefixClass}-tail {
10 years ago
top: 8px;
10 years ago
padding:0 8px;
> i {
height: 1px;
border-radius: 1px;
width: 100%;
}
}
}
&.@{stepsPrefixClass}-small .@{stepsPrefixClass}-item.@{stepsPrefixClass}-custom .@{stepsPrefixClass}-head-inner, .@{stepsPrefixClass}-item.@{stepsPrefixClass}-custom .@{stepsPrefixClass}-head-inner {
10 years ago
width: inherit;
height: inherit;
line-height: inherit;
border-radius: 0;
border: 0;
background: none;
}
10 years ago
}