Hide schedule photos at mobile menu breakpoint
Some checks failed
/ build (pull_request) Successful in 2m21s
/ accessibility (pull_request) Failing after 4m18s

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Vincent Mahnke 2026-11-14 04:29:12 +01:00
commit 4c26cda7b4
Signed by: ViMaSter
GPG key ID: 6D787326BA7D6469
2 changed files with 23 additions and 21 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.
- `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 the right half of its card behind a fade when it has alt text; its gallery credit remains visible.
- With the day picker on screens wider than the mobile-menu breakpoint (666px), 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.

View file

@ -134,23 +134,6 @@
gap: 0 0.5rem;
}
.schedule--picker .schedule__card--photo {
isolation: isolate;
overflow: hidden;
min-height: 7rem;
align-items: start;
.schedule__title,
.schedule__photo-credit {
max-width: 70%;
overflow-wrap: anywhere;
}
.schedule__lang {
background: var(--color-body-bg);
}
}
.schedule__photo {
display: none;
position: absolute;
@ -180,9 +163,28 @@
color: var(--color-text-meta);
}
.schedule--picker .schedule__photo,
.schedule--picker .schedule__photo-credit {
display: block;
@media (width >= 667px) {
.schedule--picker .schedule__card--photo {
isolation: isolate;
overflow: hidden;
min-height: 7rem;
align-items: start;
.schedule__title,
.schedule__photo-credit {
max-width: 70%;
overflow-wrap: anywhere;
}
.schedule__lang {
background: var(--color-body-bg);
}
}
.schedule--picker .schedule__photo,
.schedule--picker .schedule__photo-credit {
display: block;
}
}
.schedule__status {