From 40f93a906ddc232ea5180a069c564d7212f7c1d5 Mon Sep 17 00:00:00 2001
From: weru <fromweru@gmail.com>
Date: Mon, 22 May 2023 09:39:58 +0000
Subject: [PATCH] use mermaid api's dark styles

---
 assets/sass/_mermaid.sass |   18 +-----------------
 1 files changed, 1 insertions(+), 17 deletions(-)

diff --git a/assets/sass/_mermaid.sass b/assets/sass/_mermaid.sass
index 552302e..5950021 100644
--- a/assets/sass/_mermaid.sass
+++ b/assets/sass/_mermaid.sass
@@ -1,23 +1,7 @@
-.mermaid
+html[data-mode="dark"] .mermaid
   --theme: darkgoldenrod
   background-color: transparent !important
   margin-bottom: 2.5rem
   svg
     margin: 0 auto
     display: block
-  .actor, .labelBox, .classGroup rect, 
-    fill: var(--theme) !important
-    stroke: var(--theme) !important
-  .tspan, messageText, text, .taskText, .taskText2, .taskTextOutsideRight, doneCritText0, doneCritText1, doneCritText2
-    fill: var(--text) !important
-    stroke: var(--text) !important
-
-  .er.entityBox
-    fill: var(--theme) !important
-    stroke: #9370DB !important
-    stroke-width: 1px !important
-
-  .loopLine
-    stroke: var(--text) !important
-    stroke-width: 1px !important
-    

--
Gitblit v1.10.0