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