From 075c62a3c5d09cd698808f21fb9342bda1127674 Mon Sep 17 00:00:00 2001 From: Chaoming Li Date: Mon, 18 Nov 2024 15:44:22 +1100 Subject: [PATCH] fix: make client logos roll out from section edge instead of screen edge --- layouts/shortcodes/client-logos.html | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/layouts/shortcodes/client-logos.html b/layouts/shortcodes/client-logos.html index 9cddf86..83cec94 100644 --- a/layouts/shortcodes/client-logos.html +++ b/layouts/shortcodes/client-logos.html @@ -1,16 +1,18 @@
-
-

{{ .Get "title" | default "Trusted by leading companies worldwide" }}

-
-
- {{ range .Page.Params.client_logos }} - {{ .name }} - {{ end }} - {{ if ne (.Get "animate" | default "true") "false" }} +
+
+

{{ .Get "title" | default "Trusted by leading companies worldwide" }}

+
+
{{ range .Page.Params.client_logos }} {{ .name }} {{ end }} - {{ end }} + {{ if ne (.Get "animate" | default "true") "false" }} + {{ range .Page.Params.client_logos }} + {{ .name }} + {{ end }} + {{ end }} +
@@ -61,7 +63,7 @@ transform: translateX(0); } to { - transform: translateX(-50%); + transform: translateX(calc(-100% / 2)); } }