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