mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 05:05:48 +08:00
fix: timeline_left/alternate tail&content
This commit is contained in:
parent
f0d6c0515d
commit
a09022c952
@ -112,18 +112,16 @@
|
||||
|
||||
&-left {
|
||||
.@{timeline-prefix-cls}-item-content {
|
||||
left: 50%;
|
||||
width: 50%;
|
||||
left: calc(50% - 4px);
|
||||
width: calc(50% - 14px);
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
&-right {
|
||||
.@{timeline-prefix-cls}-item-content {
|
||||
right: 50%;
|
||||
left: -30px;
|
||||
width: 50%;
|
||||
margin-right: 18px;
|
||||
width: calc(50% - 14px);
|
||||
margin: 0;
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
@ -135,12 +133,10 @@
|
||||
.@{timeline-prefix-cls}-item-tail,
|
||||
.@{timeline-prefix-cls}-item-head,
|
||||
.@{timeline-prefix-cls}-item-head-custom {
|
||||
left: 100%;
|
||||
left: calc(100% - 4px - @timeline-width);
|
||||
}
|
||||
.@{timeline-prefix-cls}-item-content {
|
||||
right: 0;
|
||||
left: -30px;
|
||||
width: 100%;
|
||||
width: calc(100% - 18px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user