List view for tours with images on desktop #73
2 changed files with 15 additions and 6 deletions
Keep photo credits readable in schedule cards
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
commit
d508e041a8
|
|
@ -109,6 +109,7 @@
|
|||
grid-template-columns: 1fr auto;
|
||||
gap: 0.15rem 0.5rem;
|
||||
margin: 0;
|
||||
max-width: none;
|
||||
padding: 0.5rem 0.75rem 0.6rem;
|
||||
border: 1px solid var(--schedule-line);
|
||||
border-inline-start: 3px solid var(--schedule-accent);
|
||||
|
|
@ -135,6 +136,8 @@
|
|||
|
||||
.schedule--picker .schedule__card--photo {
|
||||
grid-template-columns: minmax(0, 1fr) auto minmax(0, 6rem);
|
||||
grid-template-rows: min-content min-content 1fr;
|
||||
align-items: start;
|
||||
|
||||
.schedule__title {
|
||||
grid-column: 1 / 3;
|
||||
|
|
@ -144,11 +147,8 @@
|
|||
.schedule__photo {
|
||||
display: none;
|
||||
grid-column: 3;
|
||||
grid-row: 1 / 3;
|
||||
grid-row: 1 / 4;
|
||||
margin: 0;
|
||||
font-size: var(--fs-xs);
|
||||
color: var(--color-text-meta);
|
||||
overflow-wrap: anywhere;
|
||||
|
||||
img {
|
||||
display: block;
|
||||
|
|
@ -157,7 +157,16 @@
|
|||
}
|
||||
}
|
||||
|
||||
.schedule--picker .schedule__photo {
|
||||
.schedule__photo-credit {
|
||||
display: none;
|
||||
grid-column: 1 / 3;
|
||||
grid-row: 3;
|
||||
font-size: var(--fs-xs);
|
||||
color: var(--color-text-meta);
|
||||
}
|
||||
|
||||
.schedule--picker .schedule__photo,
|
||||
.schedule--picker .schedule__photo-credit {
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -116,8 +116,8 @@ so an hour without tours still gets a row.
|
|||
{{- with $photo }}
|
||||
<figure class="schedule__photo">
|
||||
<img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}" alt="{{ $photoAlt }}" loading="lazy" decoding="async">
|
||||
{{- with $photoCredit }}<figcaption>{{ . }}</figcaption>{{ end }}
|
||||
</figure>
|
||||
{{- with $photoCredit }}<span class="schedule__photo-credit">{{ . }}</span>{{ end }}
|
||||
{{- end }}
|
||||
</li>
|
||||
{{- end }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue