set figcaption for gallery

This commit is contained in:
madrilene 2024-10-28 11:22:09 +01:00
parent e86447e051
commit 3499d907d2
2 changed files with 5 additions and 5 deletions

View file

@ -20,6 +20,11 @@ is-land:not(:defined) .gallery dialog + button {
}
.gallery dialog img {
aspect-ratio: auto;
max-block-size: 70vh;
inline-size: auto;
}
.gallery dialog figcaption {
color: currentColor;
}

View file

@ -17,11 +17,6 @@
border-bottom: 1px solid var(--color-bg-accent);
}
/* light text colour for captions shown against the dark gallery backdrop */
.prose .gallery dialog.flow figcaption {
color: var(--color-base-light);
}
:where(.prose :is(h2, h3, h4)) {
--flow-space: var(--space-xl);
}