From 45ae430209cbaafb87cf9dc4ea8ccb6b22a44d37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Harper?= Date: Tue, 14 Mar 2023 18:12:39 -0400 Subject: [PATCH] style: add a way to use different images on dark & light themes --- src/css/custom.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/css/custom.css b/src/css/custom.css index 3824dae8..6efa0b9d 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -150,3 +150,8 @@ padding: var(--ifm-global-spacing); transition: border-color var(--ifm-transition-fast) var(--ifm-transition-timing-default); } + +[data-theme='light'] img[src$='#dark-mode'], +[data-theme='dark'] img[src$='#light-mode'] { + display: none; +}