Hide schedule photos at mobile menu breakpoint
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
db7aca8538
commit
4c26cda7b4
2 changed files with 23 additions and 21 deletions
|
|
@ -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 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.
|
For the events managed with Hackertours-Admin, the data file is generated by its website sync; don't edit it by hand.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -134,23 +134,6 @@
|
||||||
gap: 0 0.5rem;
|
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 {
|
.schedule__photo {
|
||||||
display: none;
|
display: none;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
@ -180,9 +163,28 @@
|
||||||
color: var(--color-text-meta);
|
color: var(--color-text-meta);
|
||||||
}
|
}
|
||||||
|
|
||||||
.schedule--picker .schedule__photo,
|
@media (width >= 667px) {
|
||||||
.schedule--picker .schedule__photo-credit {
|
.schedule--picker .schedule__card--photo {
|
||||||
display: block;
|
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 {
|
.schedule__status {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue