Use --main-width for transform calculation

... instead of hard-coding. Make it easier on the eyes for forks with `--main-width` modified :P
This commit is contained in:
Natsu Kagami 2023-08-01 17:36:43 +07:00
parent 72ff229dfb
commit 509efd2ce0
No known key found for this signature in database
GPG key ID: 55A032EB38B49ADB

View file

@ -2181,6 +2181,6 @@ ul.link-list li a .icon {
li.timeline-item-carousel {
width: 95vw;
max-width: calc(320px * 3.3);
transform: translateX(calc(-50% + 20em));
transform: translateX(calc(-50% + var(--main-width)/2));
}
}