Align schedule photos to right half of card

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Vincent Mahnke 2026-11-14 04:25:06 +01:00
commit b926169619
Signed by: ViMaSter
GPG key ID: 6D787326BA7D6469
2 changed files with 8 additions and 6 deletions

View file

@ -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. - `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" }`. - `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. - `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. For the events managed with Hackertours-Admin, the data file is generated by its website sync; don't edit it by hand.

View file

@ -135,6 +135,8 @@
} }
.schedule--picker .schedule__card--photo { .schedule--picker .schedule__card--photo {
--schedule-photo-fade: color-mix(in srgb, var(--color-text) 4%, var(--color-body-bg));
isolation: isolate; isolation: isolate;
overflow: hidden; overflow: hidden;
min-height: 7rem; min-height: 7rem;
@ -154,7 +156,7 @@
.schedule__photo { .schedule__photo {
display: none; display: none;
position: absolute; position: absolute;
inset: 0; inset: 0 0 0 50%;
z-index: -1; z-index: -1;
margin: 0; margin: 0;
pointer-events: none; pointer-events: none;
@ -171,10 +173,10 @@
position: absolute; position: absolute;
inset: 0; inset: 0;
background: linear-gradient(90deg, background: linear-gradient(90deg,
var(--color-body-bg) 0%, var(--schedule-photo-fade) 0%,
color-mix(in srgb, var(--color-body-bg) 97%, transparent) 35%, color-mix(in srgb, var(--schedule-photo-fade) 97%, transparent) 10%,
color-mix(in srgb, var(--color-body-bg) 90%, transparent) 65%, color-mix(in srgb, var(--schedule-photo-fade) 90%, transparent) 40%,
color-mix(in srgb, var(--color-body-bg) 20%, transparent) 100%); color-mix(in srgb, var(--schedule-photo-fade) 20%, transparent) 100%);
} }
} }