2016-09-22 17:10:01 +08:00
|
|
|
@timeline-prefix-cls: ~"@{css-prefix}timeline";
|
|
|
|
@timeline-color: @border-color-split;
|
|
|
|
|
|
|
|
.@{timeline-prefix-cls} {
|
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
&-item {
|
2016-09-22 18:28:19 +08:00
|
|
|
margin: 0 !important;
|
2016-09-22 17:10:01 +08:00
|
|
|
padding: 0 0 12px 0;
|
|
|
|
list-style: none;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&-tail {
|
|
|
|
height: 100%;
|
2016-11-16 15:26:51 +08:00
|
|
|
border-left: 1px solid @timeline-color;
|
2016-09-22 17:10:01 +08:00
|
|
|
position: absolute;
|
2016-11-16 15:26:51 +08:00
|
|
|
left: 6px;
|
2016-09-22 17:10:01 +08:00
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-pending &-tail {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-head {
|
2016-11-16 15:26:51 +08:00
|
|
|
width: 13px;
|
|
|
|
height: 13px;
|
2016-09-22 17:10:01 +08:00
|
|
|
background-color: #fff;
|
2016-11-16 15:26:51 +08:00
|
|
|
border-radius: 50%;
|
|
|
|
border: 1px solid transparent;
|
2016-09-22 17:10:01 +08:00
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
&-blue {
|
|
|
|
border-color: @primary-color;
|
|
|
|
color: @primary-color;
|
|
|
|
}
|
|
|
|
&-red {
|
|
|
|
border-color: @error-color;
|
|
|
|
color: @error-color;
|
|
|
|
}
|
|
|
|
&-green {
|
|
|
|
border-color: @success-color;
|
|
|
|
color: @success-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-head-custom {
|
|
|
|
width: 40px;
|
|
|
|
height: auto;
|
|
|
|
margin-top: 6px;
|
|
|
|
padding: 3px 0;
|
|
|
|
text-align: center;
|
|
|
|
line-height: 1;
|
|
|
|
border: 0;
|
|
|
|
border-radius: 0;
|
2016-11-09 17:36:40 +08:00
|
|
|
font-size: @font-size-base;
|
2016-09-22 17:10:01 +08:00
|
|
|
position: absolute;
|
2016-11-16 15:26:51 +08:00
|
|
|
left: -13px;
|
2016-09-22 17:10:01 +08:00
|
|
|
.transform(translateY(-50%));
|
|
|
|
}
|
|
|
|
|
|
|
|
&-content {
|
2016-09-22 18:28:19 +08:00
|
|
|
padding: 1px 1px 10px 24px;
|
2016-11-09 17:36:40 +08:00
|
|
|
font-size: @font-size-small;
|
2016-09-22 17:10:01 +08:00
|
|
|
position: relative;
|
2016-11-16 16:04:08 +08:00
|
|
|
top: -3px;
|
2016-09-22 17:10:01 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
.@{timeline-prefix-cls}-item-tail {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&&-pending &-item:nth-last-of-type(2) {
|
|
|
|
|
|
|
|
.@{timeline-prefix-cls}-item-tail {
|
2016-11-16 15:26:51 +08:00
|
|
|
border-left: 1px dotted @timeline-color;
|
2016-09-22 17:10:01 +08:00
|
|
|
}
|
|
|
|
.@{timeline-prefix-cls}-item-content {
|
|
|
|
min-height: 48px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|