diff --git a/README.md b/README.md index e297ace..6a9755c 100644 --- a/README.md +++ b/README.md @@ -114,7 +114,7 @@ days: - `time` is `HH:MM` with a leading zero (`09:30`). Tours are sorted by time, so their order in the file doesn't matter. - `title` (optional) replaces the page's title on the card, with one entry per language: `title: { de: "Hafen am Abend", en: "Harbour by Night" }`. - `status` (optional): `soldout` marks the tour as fully booked. Other values are ignored. -- With the day picker, the first local photo in the tour page fills its card behind a fade when it has alt text; its gallery credit remains visible. +- With the day picker, the first local photo in the tour page fills the right half of its card behind a fade when it has alt text; its gallery credit remains visible. For the events managed with Hackertours-Admin, the data file is generated by its website sync; don't edit it by hand. diff --git a/themes/hackertours/assets/css/_schedule.css b/themes/hackertours/assets/css/_schedule.css index 0707657..707d9e3 100644 --- a/themes/hackertours/assets/css/_schedule.css +++ b/themes/hackertours/assets/css/_schedule.css @@ -135,6 +135,8 @@ } .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; @@ -154,7 +156,7 @@ .schedule__photo { display: none; position: absolute; - inset: 0; + inset: 0 0 0 50%; z-index: -1; margin: 0; pointer-events: none; @@ -171,10 +173,10 @@ position: absolute; inset: 0; background: linear-gradient(90deg, - var(--color-body-bg) 0%, - color-mix(in srgb, var(--color-body-bg) 97%, transparent) 35%, - color-mix(in srgb, var(--color-body-bg) 90%, transparent) 65%, - color-mix(in srgb, var(--color-body-bg) 20%, transparent) 100%); + 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%); } }