2015-06-26 10:43:01 +08:00
|
|
|
@import "../mixins/index";
|
|
|
|
@stepsPrefixClass: ~"@{css-prefix}steps";
|
|
|
|
|
2015-06-24 20:35:43 +08:00
|
|
|
@active-color: #3fc7fa;
|
|
|
|
@wait-color: #e9e9e9;
|
2015-06-24 14:52:49 +08:00
|
|
|
|
2015-06-25 16:01:04 +08:00
|
|
|
.transition(@transition) {
|
|
|
|
transition: @transition;
|
|
|
|
}
|
|
|
|
|
2015-06-26 10:43:01 +08:00
|
|
|
.@{stepsPrefixClass} {
|
2015-06-24 20:35:43 +08:00
|
|
|
font-size: 0;
|
2015-06-25 16:01:04 +08:00
|
|
|
width: 100%;
|
|
|
|
line-height: 1.5;
|
2015-06-24 14:52:49 +08:00
|
|
|
|
2015-06-26 10:43:01 +08:00
|
|
|
.@{stepsPrefixClass}-item {
|
2015-06-24 14:52:49 +08:00
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
2015-06-24 20:35:43 +08:00
|
|
|
|
2015-06-26 10:43:01 +08:00
|
|
|
&.@{stepsPrefixClass}-status-wait {
|
2015-07-07 19:36:42 +08:00
|
|
|
.@{stepsPrefixClass}-head-inner {
|
2015-06-24 20:35:43 +08:00
|
|
|
border-color: @wait-color;
|
2015-06-25 16:01:04 +08:00
|
|
|
background-color: #fff;
|
2015-06-25 18:12:42 +08:00
|
|
|
|
2015-06-26 10:43:01 +08:00
|
|
|
> .@{stepsPrefixClass}-icon {
|
2015-06-25 16:01:04 +08:00
|
|
|
color: @wait-color;
|
|
|
|
}
|
2015-06-24 20:35:43 +08:00
|
|
|
}
|
|
|
|
}
|
2015-06-26 10:43:01 +08:00
|
|
|
&.@{stepsPrefixClass}-status-process {
|
2015-07-07 19:36:42 +08:00
|
|
|
.@{stepsPrefixClass}-head-inner {
|
2015-06-24 20:35:43 +08:00
|
|
|
border-color: @active-color;
|
2015-06-25 16:01:04 +08:00
|
|
|
background-color: @active-color;
|
2015-06-25 18:12:42 +08:00
|
|
|
|
2015-06-26 10:43:01 +08:00
|
|
|
> .@{stepsPrefixClass}-icon {
|
2015-06-25 16:01:04 +08:00
|
|
|
color: #fff;
|
|
|
|
}
|
2015-06-24 20:35:43 +08:00
|
|
|
}
|
|
|
|
}
|
2015-06-26 10:43:01 +08:00
|
|
|
&.@{stepsPrefixClass}-status-finish {
|
2015-07-07 19:36:42 +08:00
|
|
|
.@{stepsPrefixClass}-head-inner {
|
2015-06-24 20:35:43 +08:00
|
|
|
border-color: @active-color;
|
2015-06-25 16:01:04 +08:00
|
|
|
background-color: #fff;
|
2015-06-26 10:43:01 +08:00
|
|
|
> .@{stepsPrefixClass}-icon {
|
2015-06-24 20:35:43 +08:00
|
|
|
color: @active-color;
|
|
|
|
}
|
|
|
|
}
|
2015-07-07 19:36:42 +08:00
|
|
|
.@{stepsPrefixClass}-tail > i {
|
|
|
|
background-color: @active-color;
|
|
|
|
}
|
2015-06-25 18:12:42 +08:00
|
|
|
}
|
|
|
|
|
2015-06-26 10:43:01 +08:00
|
|
|
&.@{stepsPrefixClass}-custom {
|
2015-07-07 19:36:42 +08:00
|
|
|
.@{stepsPrefixClass}-head-inner {
|
2015-06-25 18:12:42 +08:00
|
|
|
background: none;
|
|
|
|
border: 0;
|
|
|
|
}
|
2015-06-26 10:43:01 +08:00
|
|
|
&.@{stepsPrefixClass}-status-process {
|
|
|
|
.@{stepsPrefixClass}-title {
|
2015-06-25 18:12:42 +08:00
|
|
|
color: @active-color;
|
|
|
|
}
|
|
|
|
}
|
2015-06-24 20:35:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2015-07-07 19:36:42 +08:00
|
|
|
.@{stepsPrefixClass}-head, .@{stepsPrefixClass}-main {
|
|
|
|
position: relative;
|
2015-06-24 20:35:43 +08:00
|
|
|
display: inline-block;
|
|
|
|
vertical-align: top;
|
2015-06-24 14:52:49 +08:00
|
|
|
}
|
2015-06-26 10:43:01 +08:00
|
|
|
.@{stepsPrefixClass}-head {
|
2015-07-07 19:36:42 +08:00
|
|
|
background: #fff;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{stepsPrefixClass}-head-inner {
|
|
|
|
display: block;
|
2015-06-24 20:35:43 +08:00
|
|
|
border:2px solid @wait-color;
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
2015-07-07 19:36:42 +08:00
|
|
|
line-height: 22px;
|
2015-06-24 20:35:43 +08:00
|
|
|
text-align: center;
|
|
|
|
border-radius: 24px;
|
2015-07-07 19:36:42 +08:00
|
|
|
font-size: 14px;
|
2015-06-24 20:35:43 +08:00
|
|
|
margin-right: 12px;
|
2015-06-25 16:01:04 +08:00
|
|
|
.transition(background-color 0.1s ease);
|
|
|
|
.transition(border-color 0.1s ease);
|
|
|
|
|
2015-06-26 10:43:01 +08:00
|
|
|
> .@{stepsPrefixClass}-icon {
|
2015-06-25 18:12:42 +08:00
|
|
|
line-height: 1;
|
2015-06-25 16:01:04 +08:00
|
|
|
display: inline-block;
|
2015-06-25 18:12:42 +08:00
|
|
|
vertical-align: text-top;
|
2015-06-24 20:35:43 +08:00
|
|
|
color: #3fc7fa;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
}
|
2015-06-26 10:43:01 +08:00
|
|
|
.@{stepsPrefixClass}-main {
|
2015-06-25 16:01:04 +08:00
|
|
|
margin-top: 3px;
|
2015-06-24 14:52:49 +08:00
|
|
|
}
|
2015-06-26 10:43:01 +08:00
|
|
|
.@{stepsPrefixClass}-title {
|
2015-06-24 20:35:43 +08:00
|
|
|
font-size: 14px;
|
|
|
|
margin-bottom: 4px;
|
|
|
|
color: #666;
|
|
|
|
font-weight: bold;
|
2015-07-07 19:36:42 +08:00
|
|
|
background: #fff;
|
|
|
|
display: inline-block;
|
|
|
|
padding-right: 10px;
|
|
|
|
}
|
|
|
|
.@{stepsPrefixClass}-item-last {
|
|
|
|
.@{stepsPrefixClass}-title {
|
|
|
|
padding-right: 0;
|
|
|
|
}
|
2015-06-24 20:35:43 +08:00
|
|
|
}
|
2015-06-26 10:43:01 +08:00
|
|
|
.@{stepsPrefixClass}-description {
|
2015-06-24 20:35:43 +08:00
|
|
|
font-size: 12px;
|
|
|
|
color: #999;
|
|
|
|
}
|
2015-06-26 10:43:01 +08:00
|
|
|
.@{stepsPrefixClass}-tail {
|
2015-07-07 19:36:42 +08:00
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
2015-06-25 18:12:42 +08:00
|
|
|
top: 12px;
|
2015-06-24 20:35:43 +08:00
|
|
|
padding:0 10px;
|
|
|
|
> i {
|
|
|
|
display: inline-block;
|
2015-06-25 16:01:04 +08:00
|
|
|
background: @wait-color;
|
2015-06-24 20:35:43 +08:00
|
|
|
height: 2px;
|
|
|
|
border-radius: 1px;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-06-26 10:43:01 +08:00
|
|
|
&.@{stepsPrefixClass}-small {
|
2015-07-07 19:36:42 +08:00
|
|
|
.@{stepsPrefixClass}-head-inner {
|
2015-06-25 16:01:04 +08:00
|
|
|
border:1px solid @wait-color;
|
|
|
|
width: 18px;
|
|
|
|
height: 18px;
|
|
|
|
line-height: 18px;
|
|
|
|
text-align: center;
|
|
|
|
border-radius: 18px;
|
2015-07-07 19:36:42 +08:00
|
|
|
font-size: 12px;
|
2015-06-25 16:01:04 +08:00
|
|
|
margin-right: 10px;
|
|
|
|
}
|
2015-06-26 10:43:01 +08:00
|
|
|
.@{stepsPrefixClass}-main {
|
2015-06-25 16:01:04 +08:00
|
|
|
margin-top: 0;
|
|
|
|
}
|
2015-06-26 10:43:01 +08:00
|
|
|
.@{stepsPrefixClass}-title {
|
2015-06-25 16:01:04 +08:00
|
|
|
font-size: 12px;
|
|
|
|
margin-bottom: 4px;
|
|
|
|
color: #666;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2015-06-26 10:43:01 +08:00
|
|
|
.@{stepsPrefixClass}-description {
|
2015-06-25 16:01:04 +08:00
|
|
|
font-size: 10px;
|
|
|
|
color: #999;
|
|
|
|
}
|
2015-06-26 10:43:01 +08:00
|
|
|
.@{stepsPrefixClass}-tail {
|
2015-06-25 18:12:42 +08:00
|
|
|
top: 8px;
|
2015-06-25 16:01:04 +08:00
|
|
|
padding:0 8px;
|
|
|
|
> i {
|
|
|
|
height: 1px;
|
|
|
|
border-radius: 1px;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-07-07 19:36:42 +08:00
|
|
|
&.@{stepsPrefixClass}-small .@{stepsPrefixClass}-item.@{stepsPrefixClass}-custom .@{stepsPrefixClass}-head-inner, .@{stepsPrefixClass}-item.@{stepsPrefixClass}-custom .@{stepsPrefixClass}-head-inner {
|
2015-06-25 16:01:04 +08:00
|
|
|
width: inherit;
|
|
|
|
height: inherit;
|
|
|
|
line-height: inherit;
|
|
|
|
border-radius: 0;
|
|
|
|
border: 0;
|
|
|
|
background: none;
|
|
|
|
}
|
2015-06-24 14:52:49 +08:00
|
|
|
}
|