choerodon-ui
Version:
An enterprise-class UI design language and React-based implementation
86 lines (85 loc) • 2.17 kB
CSS
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors */
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
.c7n-timeline {
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
list-style: none;
}
.c7n-timeline-item {
position: relative;
margin: 0;
padding: 0 0 0.2rem;
font-size: 0.13rem;
list-style: none;
}
.c7n-timeline-item-tail {
position: absolute;
top: 0.75em;
left: 0.04rem;
height: 100%;
border-left: 0.02rem solid #e8e8e8;
}
.c7n-timeline-item-pending .c7n-timeline-item-head {
font-size: 0.12rem;
}
.c7n-timeline-item-pending .c7n-timeline-item-tail {
display: none;
}
.c7n-timeline-item-head {
position: absolute;
width: 0.1rem;
height: 0.1rem;
background-color: #fff;
border: 0.02rem solid transparent;
border-radius: 1rem;
}
.c7n-timeline-item-head-blue {
color: #3f51b5;
border-color: #3f51b5;
}
.c7n-timeline-item-head-red {
color: #d50000;
border-color: #d50000;
}
.c7n-timeline-item-head-green {
color: #00bf96;
border-color: #00bf96;
}
.c7n-timeline-item-head-custom {
position: absolute;
top: 0.05rem;
left: 0.05rem;
width: auto;
height: auto;
margin-top: 0;
padding: 0.03rem 0.01rem;
line-height: 1;
text-align: center;
border: 0;
border-radius: 0;
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
.c7n-timeline-item-content {
position: relative;
top: calc(-1 * ((0.13rem * 1.5 - 0.13rem) - 0.01rem));
padding: 0 0 0 0.18rem;
color: unset;
line-height: unset;
}
.c7n-timeline-item-last .c7n-timeline-item-tail {
display: none;
border-left: 0.02rem dotted #e8e8e8;
}
.c7n-timeline-item-last .c7n-timeline-item-content {
min-height: 0.48rem;
}
.c7n-timeline.c7n-timeline-pending .c7n-timeline-item-last .c7n-timeline-item-tail {
display: block;
}