mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 21:19:37 +08:00
220 lines
5.2 KiB
Plaintext
220 lines
5.2 KiB
Plaintext
@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: #bcbcbc;
|
|
@wait-icon-color: #bcbcbc;
|
|
@wait-title-color: #999;
|
|
@wait-description-color: @wait-title-color;
|
|
@wait-tail-color: @wait-icon-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;
|
|
|
|
|
|
.transition(@transition) {
|
|
transition: @transition;
|
|
-webkit-transition: @transition;
|
|
-moz-transition: @transition;
|
|
}
|
|
|
|
.@{stepsPrefixClass} {
|
|
font-size: 0;
|
|
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;
|
|
background-color: #fff;
|
|
> .@{stepsPrefixClass}-icon {
|
|
color: @wait-icon-color;
|
|
}
|
|
}
|
|
.@{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 {
|
|
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;
|
|
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;
|
|
}
|
|
}
|
|
|
|
&.@{stepsPrefixClass}-custom {
|
|
.@{stepsPrefixClass}-head-inner {
|
|
background: none;
|
|
border: 0;
|
|
font-size: 20px;
|
|
width: auto;
|
|
height: auto;
|
|
> .@{stepsPrefixClass}-icon {
|
|
top: -4px;
|
|
}
|
|
}
|
|
&.@{stepsPrefixClass}-status-process {
|
|
.@{stepsPrefixClass}-head-inner > .@{stepsPrefixClass}-icon {
|
|
color: @process-icon-color;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
.@{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.1s ease);
|
|
.transition(border-color 0.1s ease);
|
|
|
|
> .@{stepsPrefixClass}-icon {
|
|
line-height: 1;
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
top: -2px;
|
|
color: @primary-color;
|
|
position: relative;
|
|
}
|
|
}
|
|
.@{stepsPrefixClass}-main {
|
|
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%;
|
|
top: 12px;
|
|
padding:0 10px;
|
|
> i {
|
|
display: inline-block;
|
|
background: @wait-tail-color;
|
|
height: 2px;
|
|
border-radius: 1px;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
&.@{stepsPrefixClass}-small {
|
|
.@{stepsPrefixClass}-head-inner {
|
|
border:1px solid @wait-icon-color;
|
|
width: 18px;
|
|
height: 18px;
|
|
line-height: 18px;
|
|
text-align: center;
|
|
border-radius: 18px;
|
|
font-size: 12px;
|
|
margin-right: 10px;
|
|
}
|
|
.@{stepsPrefixClass}-main {
|
|
margin-top: 0;
|
|
}
|
|
.@{stepsPrefixClass}-title {
|
|
font-size: 12px;
|
|
margin-bottom: 4px;
|
|
color: #666;
|
|
font-weight: bold;
|
|
}
|
|
.@{stepsPrefixClass}-description {
|
|
font-size: 10px;
|
|
color: #999;
|
|
}
|
|
.@{stepsPrefixClass}-tail {
|
|
top: 8px;
|
|
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 {
|
|
width: inherit;
|
|
height: inherit;
|
|
line-height: inherit;
|
|
border-radius: 0;
|
|
border: 0;
|
|
background: none;
|
|
}
|
|
}
|