ant-design/style/components/timeline.less

57 lines
1.0 KiB
Plaintext
Raw Normal View History

2015-09-01 21:15:31 +08:00
@import "../mixins/index";
@timeline-prefix-cls: ~"@{css-prefix}timeline";
2015-09-01 21:39:29 +08:00
@timeline-color: #e9e9e9;
2015-09-01 21:15:31 +08:00
.@{timeline-prefix-cls} {
&-item {
position: relative;
2015-09-02 12:12:11 +08:00
padding-bottom: 12px;
2015-09-01 21:15:31 +08:00
&-tail {
position: absolute;
left: 5px;
2015-09-02 12:12:11 +08:00
top: 0;
2015-09-01 21:15:31 +08:00
height: 100%;
2015-09-01 21:39:29 +08:00
border-left: 2px solid @timeline-color;
2015-09-01 21:15:31 +08:00
}
&-head {
2015-09-01 21:39:29 +08:00
position: absolute;
2015-09-01 21:15:31 +08:00
width: 12px;
height: 12px;
background-color: #fff;
border-radius: 6px;
&-blue {
border: 2px solid @primary-color;
}
&-red {
border: 2px solid @error-color;
}
&-green {
border: 2px solid @success-color;
}
2015-09-02 12:12:11 +08:00
&-end {
2015-09-01 21:39:29 +08:00
border: 2px solid @timeline-color;
2015-09-01 21:15:31 +08:00
}
}
&-content {
2015-09-07 11:31:37 +08:00
padding: 0 0 10px 24px;
font-size: 12px;
2015-09-02 12:12:11 +08:00
position: relative;
top: -2px;
}
&-last {
.@{timeline-prefix-cls}-item-tail {
border-left: 2px dotted @timeline-color;
}
.@{timeline-prefix-cls}-item-content {
2015-09-07 11:31:37 +08:00
min-height: 48px;
2015-09-02 12:12:11 +08:00
}
2015-09-01 21:15:31 +08:00
}
}
}