summaryrefslogtreecommitdiffstats
path: root/web_src/less/_markdown.less
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-07-27 08:24:09 +0200
committerGitHub <noreply@github.com>2020-07-27 02:24:09 -0400
commit4315e313d12bbf0655710b6ab0aad121e0f7dba2 (patch)
treedfcc816a013288f5112f3be4f38ac183557220fb /web_src/less/_markdown.less
parent46ef562a161a2685d429ffd7dc594383de533c07 (diff)
downloadgitea-4315e313d12bbf0655710b6ab0aad121e0f7dba2.tar.gz
gitea-4315e313d12bbf0655710b6ab0aad121e0f7dba2.zip
Add mermaid JS renderer (#12334)
* Add mermaid JS renderer For feature parity with GitLab. Tested in files, issues, wiki, editor. arc-green only does an inversion because the renderer seems to like to render white backgrounds on boxes. Ref: https://github.com/go-gitea/gitea/issues/3340 Fixes: https://github.com/go-gitea/gitea/issues/12307 * add feature entry, switch to neutral theme, remove border * add bindFunctions support * remove unnecessary border-radius Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'web_src/less/_markdown.less')
-rw-r--r--web_src/less/_markdown.less8
1 files changed, 8 insertions, 0 deletions
diff --git a/web_src/less/_markdown.less b/web_src/less/_markdown.less
index e2ac664bec..0f57bc4449 100644
--- a/web_src/less/_markdown.less
+++ b/web_src/less/_markdown.less
@@ -494,3 +494,11 @@
user-select: none;
}
}
+
+.mermaid-chart {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ padding: 1rem;
+ margin: 1rem 0;
+}