mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-23 00:56:23 +01:00
Better style for jagged timeline items
This commit is contained in:
parent
059fed4b84
commit
f4ce2e8367
1 changed files with 18 additions and 1 deletions
19
src/app.css
19
src/app.css
|
@ -2226,15 +2226,32 @@ ul.link-list li a .icon {
|
|||
transition: var(--back-transition);
|
||||
transform: translate3d(-2.5vw, 0, 0);
|
||||
}
|
||||
.timeline:not(.flat)
|
||||
> li.timeline-item-container:has(.status-link.is-active) {
|
||||
border-top-left-radius: var(--item-radius);
|
||||
border-bottom-left-radius: var(--item-radius);
|
||||
}
|
||||
.timeline:not(.flat)
|
||||
> li:not(:has(.status-carousel)):has(+ li .status-link.is-active),
|
||||
.timeline:not(.flat) > li.timeline-item-container:has(.status-link.is-active),
|
||||
.timeline:not(.flat)
|
||||
> li:not(:has(.status-carousel)):has(.status-link.is-active)
|
||||
+ li {
|
||||
transition: var(--back-transition);
|
||||
transform: translate3d(-1.25vw, 0, 0);
|
||||
}
|
||||
.timeline:not(.flat)
|
||||
> li.timeline-item-container:not(:has(.status-carousel)):has(
|
||||
+ li .status-link.is-active
|
||||
) {
|
||||
border-top-left-radius: var(--item-radius);
|
||||
}
|
||||
.timeline:not(.flat)
|
||||
> li.timeline-item-container:not(:has(.status-carousel)):has(
|
||||
.status-link.is-active
|
||||
)
|
||||
+ li.timeline-item-container {
|
||||
border-bottom-left-radius: var(--item-radius);
|
||||
}
|
||||
.box {
|
||||
padding: 32px;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue