mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 19:49:59 +08:00
Merge pull request #18093 from xrkffgg/fix-timeline-tail
fix: timeline_left/alternate tail&content
This commit is contained in:
commit
4cd5cac29f
@ -113,18 +113,16 @@
|
|||||||
|
|
||||||
&-left {
|
&-left {
|
||||||
.@{timeline-prefix-cls}-item-content {
|
.@{timeline-prefix-cls}-item-content {
|
||||||
left: 50%;
|
left: calc(50% - 4px);
|
||||||
width: 50%;
|
width: calc(50% - 14px);
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&-right {
|
&-right {
|
||||||
.@{timeline-prefix-cls}-item-content {
|
.@{timeline-prefix-cls}-item-content {
|
||||||
right: 50%;
|
width: calc(50% - 14px);
|
||||||
left: -30px;
|
margin: 0;
|
||||||
width: 50%;
|
|
||||||
margin-right: 18px;
|
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -136,12 +134,10 @@
|
|||||||
.@{timeline-prefix-cls}-item-tail,
|
.@{timeline-prefix-cls}-item-tail,
|
||||||
.@{timeline-prefix-cls}-item-head,
|
.@{timeline-prefix-cls}-item-head,
|
||||||
.@{timeline-prefix-cls}-item-head-custom {
|
.@{timeline-prefix-cls}-item-head-custom {
|
||||||
left: 100%;
|
left: calc(100% - 4px - @timeline-width);
|
||||||
}
|
}
|
||||||
.@{timeline-prefix-cls}-item-content {
|
.@{timeline-prefix-cls}-item-content {
|
||||||
right: 0;
|
width: calc(100% - 18px);
|
||||||
left: -30px;
|
|
||||||
width: 100%;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user