From db7aca8538a0ddf00a8209e2bf93d22d3a55e5c7 Mon Sep 17 00:00:00 2001 From: Vincent Mahnke Date: Sat, 14 Nov 2026 04:27:55 +0100 Subject: [PATCH] Blend schedule photos into card background Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- themes/hackertours/assets/css/_schedule.css | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/themes/hackertours/assets/css/_schedule.css b/themes/hackertours/assets/css/_schedule.css index 707d9e3..f21564f 100644 --- a/themes/hackertours/assets/css/_schedule.css +++ b/themes/hackertours/assets/css/_schedule.css @@ -135,8 +135,6 @@ } .schedule--picker .schedule__card--photo { - --schedule-photo-fade: color-mix(in srgb, var(--color-text) 4%, var(--color-body-bg)); - isolation: isolate; overflow: hidden; min-height: 7rem; @@ -166,17 +164,11 @@ width: 100%; height: 100%; object-fit: cover; - } - - &::after { - content: ""; - position: absolute; - inset: 0; - background: linear-gradient(90deg, - var(--schedule-photo-fade) 0%, - color-mix(in srgb, var(--schedule-photo-fade) 97%, transparent) 10%, - color-mix(in srgb, var(--schedule-photo-fade) 90%, transparent) 40%, - color-mix(in srgb, var(--schedule-photo-fade) 20%, transparent) 100%); + mask-image: linear-gradient(90deg, + transparent 0%, + rgb(0 0 0 / 3%) 10%, + rgb(0 0 0 / 10%) 40%, + rgb(0 0 0 / 80%) 100%); } }