Merge pull request #202 from natsukagami/transform-by-main-width

Use `--main-width` for transform calculation
This commit is contained in:
Chee Aun 2023-08-01 18:56:57 +08:00 committed by GitHub
commit e7f624c33c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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