From 522db3ef81cf5f72e03e6ec9e4fbf8f7ff7911ab Mon Sep 17 00:00:00 2001 From: Guido Rota Date: Fri, 25 Oct 2024 21:35:44 +1100 Subject: [PATCH] Fix image caption text contrast This commit changes the colour of caption text to Base Light to provide more contrast with the dark background. --- src/assets/css/global/blocks/prose.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/assets/css/global/blocks/prose.css b/src/assets/css/global/blocks/prose.css index 0fcb702..8cb0df5 100644 --- a/src/assets/css/global/blocks/prose.css +++ b/src/assets/css/global/blocks/prose.css @@ -17,6 +17,11 @@ 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); }