Adjust comment lines a little

This commit is contained in:
Lim Chee Aun 2023-04-23 23:37:58 +08:00
parent 338b556e34
commit 7f6df049ba

View file

@ -239,7 +239,7 @@ a[href^='http'][rel*='nofollow']:visited:not(:has(div)) {
transition: opacity 0.3s ease-in-out; transition: opacity 0.3s ease-in-out;
} }
.timeline.contextual > li:first-child { .timeline.contextual > li:first-child {
background-position: 0 16px; background-position: 0 calc(16px + var(--avatar-size));
} }
.timeline.contextual > li:last-child { .timeline.contextual > li:last-child {
background-size: 100% 20px; background-size: 100% 20px;
@ -595,6 +595,7 @@ a[href^='http'][rel*='nofollow']:visited:not(:has(div)) {
} }
.timeline:not(.flat) > li.timeline-item-container { .timeline:not(.flat) > li.timeline-item-container {
--avatar-size: 50px;
--line-start: 40px; --line-start: 40px;
--line-width: 3px; --line-width: 3px;
--line-end: calc(var(--line-start) + var(--line-width)); --line-end: calc(var(--line-start) + var(--line-width));
@ -614,7 +615,7 @@ a[href^='http'][rel*='nofollow']:visited:not(:has(div)) {
border-bottom-left-radius: 0; border-bottom-left-radius: 0;
border-bottom-right-radius: 0; border-bottom-right-radius: 0;
border-bottom: 0; border-bottom: 0;
background-position: 0 16px; background-position: 0 calc(16px + var(--avatar-size));
} }
.timeline:not(.flat) > li.timeline-item-container-middle { .timeline:not(.flat) > li.timeline-item-container-middle {
margin-top: 0; margin-top: 0;
@ -628,7 +629,7 @@ a[href^='http'][rel*='nofollow']:visited:not(:has(div)) {
border-top-left-radius: 0; border-top-left-radius: 0;
border-top-right-radius: 0; border-top-right-radius: 0;
border-top: 0; border-top: 0;
background-size: 100% 20px; background-size: 100% 16px;
} }
.timeline:not(.flat) .timeline:not(.flat)
> li:is(.timeline-item-container-middle, .timeline-item-container-end) > li:is(.timeline-item-container-middle, .timeline-item-container-end)