summaryrefslogtreecommitdiffstats
path: root/web_src/less/markdown
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/less/markdown')
-rw-r--r--web_src/less/markdown/mermaid.less12
1 files changed, 12 insertions, 0 deletions
diff --git a/web_src/less/markdown/mermaid.less b/web_src/less/markdown/mermaid.less
new file mode 100644
index 0000000000..2b7951eec9
--- /dev/null
+++ b/web_src/less/markdown/mermaid.less
@@ -0,0 +1,12 @@
+.mermaid-chart {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ padding: 1rem;
+ margin: 1rem 0;
+}
+
+/* mermaid's errorRenderer seems to unavoidably spew stuff into <body>, hide it */
+body > div[id*="mermaid-"] {
+ display: none !important;
+}