From 509efd2ce0b55e5be6ea053f1cd1c7c7b0c4aed3 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Tue, 1 Aug 2023 17:36:43 +0700 Subject: [PATCH] Use `--main-width` for transform calculation ... instead of hard-coding. Make it easier on the eyes for forks with `--main-width` modified :P --- src/app.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.css b/src/app.css index 6854a53c..1635b883 100644 --- a/src/app.css +++ b/src/app.css @@ -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)); } }