From 21447f8035de183dcf423a1a22b6fea0053f3789 Mon Sep 17 00:00:00 2001 From: limichange Date: Sat, 18 Sep 2021 15:52:53 +0800 Subject: [PATCH] feat: adjust latex svg image to dark theme --- assets/scss/common/_dark.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/scss/common/_dark.scss b/assets/scss/common/_dark.scss index 9763e2b..8095b7d 100644 --- a/assets/scss/common/_dark.scss +++ b/assets/scss/common/_dark.scss @@ -232,6 +232,10 @@ $navbar-dark-active-color: $link-color-dark; color: $link-color-dark; } +[data-dark-mode] body .content img[src^="https://latex.codecogs.com/svg.latex"] { + filter: invert(1) +} + [data-dark-mode] body .navbar .btn-link:hover { color: $navbar-dark-hover-color; }