From 21447f8035de183dcf423a1a22b6fea0053f3789 Mon Sep 17 00:00:00 2001 From: limichange Date: Sat, 18 Sep 2021 15:52:53 +0800 Subject: [PATCH 1/2] 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; } From 7a6d8e46e7432132da7661afc943a811ea4074aa Mon Sep 17 00:00:00 2001 From: limichange Date: Tue, 21 Sep 2021 09:18:03 +0800 Subject: [PATCH 2/2] fix: expected a trailing semicolon --- assets/scss/common/_dark.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/scss/common/_dark.scss b/assets/scss/common/_dark.scss index 8095b7d..81f30c0 100644 --- a/assets/scss/common/_dark.scss +++ b/assets/scss/common/_dark.scss @@ -233,7 +233,7 @@ $navbar-dark-active-color: $link-color-dark; } [data-dark-mode] body .content img[src^="https://latex.codecogs.com/svg.latex"] { - filter: invert(1) + filter: invert(1); } [data-dark-mode] body .navbar .btn-link:hover {