From 2a4476a57746d30c844875202e2d260c3d0a0f9e Mon Sep 17 00:00:00 2001 From: Robert Chisholm Date: Wed, 18 Sep 2024 17:34:18 +0100 Subject: [PATCH] fixup --- source/stylesheets/dark.scss | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/source/stylesheets/dark.scss b/source/stylesheets/dark.scss index b96afa4d..e368fc6f 100644 --- a/source/stylesheets/dark.scss +++ b/source/stylesheets/dark.scss @@ -88,15 +88,6 @@ $color-mode-type: data; } } - // Invert images that request it during dark mode - .dark-invert { - filter: invert(100%); - } - // Hide the purple university of sheffield logo during dark mode - .light_only { - display: none; - } - svg .icon { stroke: var(--bs-body-color); } @@ -670,9 +661,17 @@ div.tab-content { } // A few light only rules -@include color-mode(light) { - // Hide the white university of sheffield logo during light mode - .dark-only { - display: none; - } +// Hide the white university of sheffield logo during light mode +[data-bs-theme=light] img.dark-only { + display: none; +} + + +// Invert images that request it during dark mode +[data-bs-theme=dark] img.dark-invert { + filter: invert(100%); } +// Hide the purple university of sheffield logo during dark mode +[data-bs-theme=dark] img.light_only { + display: none; +} \ No newline at end of file