List view for tours with images on desktop #73
2 changed files with 8 additions and 6 deletions
Align schedule photos to right half of card
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
commit
b926169619
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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%);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue