Fix issue with timeline list items
This commit is contained in:
parent
c745c49080
commit
2ae2354750
|
|
@ -14,20 +14,20 @@
|
|||
position: absolute;
|
||||
inset: 1.5rem 0 0 1.5rem;
|
||||
}
|
||||
.timeline li {
|
||||
.timeline > li {
|
||||
--size: 3rem;
|
||||
padding: 0 0 0 calc(var(--size) + 0.8rem);
|
||||
margin: 1.4rem 0;
|
||||
position: relative;
|
||||
list-style: none;
|
||||
}
|
||||
.timeline li:last-child {
|
||||
.timeline > li:last-child {
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
.timeline li:first-child {
|
||||
.timeline > li:first-child {
|
||||
margin-top: -20px;
|
||||
}
|
||||
.timeline li:before {
|
||||
.timeline > li:before {
|
||||
content: "";
|
||||
aspect-ratio: 1;
|
||||
inline-size: var(--size);
|
||||
|
|
@ -41,6 +41,6 @@
|
|||
inset-inline-start: 0;
|
||||
transform: translateY(50%);
|
||||
}
|
||||
.timeline li:hover:before {
|
||||
.timeline > li:hover:before {
|
||||
border-color: var(--color-secondary-600);
|
||||
}
|
||||
Loading…
Reference in a new issue