From 11fc8158cc6768e7ee3cce77cde9b1f0a92088e3 Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 7 Dec 2021 08:24:50 +0530 Subject: [PATCH] compromize on styles for entity relationship and pie diagrams for better readability in dark mode --- customize.dist/src/less2/include/markdown.less | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/customize.dist/src/less2/include/markdown.less b/customize.dist/src/less2/include/markdown.less index 43732187a..966f3d6e7 100644 --- a/customize.dist/src/less2/include/markdown.less +++ b/customize.dist/src/less2/include/markdown.less @@ -132,6 +132,18 @@ g.legend text, text.pieTitleText { fill: @cp_markdown-block-fg; } + g.legend rect { + stroke: black !important; + stroke-width: 1px; + } + } + &[mermaid-source^="erDiagram"] { + rect.er:not(.relationshipLabelBox) { + fill: #ECECFF; + } + g text.er { + fill: #333; + } } } pre.markmap {