diff options
author | silverwind <me@silverwind.io> | 2020-08-04 21:56:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-04 20:56:37 +0100 |
commit | e61c09ed7331e6ea72e4d9f08c0490713598942d (patch) | |
tree | febdc85a173312afbf293304a3c46dfe498c7725 /web_src/less/_markdown.less | |
parent | 5e5c893555411bcbeedc4a3f0d853731b63f05c4 (diff) | |
download | gitea-e61c09ed7331e6ea72e4d9f08c0490713598942d.tar.gz gitea-e61c09ed7331e6ea72e4d9f08c0490713598942d.zip |
Add loading spinners and mermaid error handling (#12358)
- Add loading spinners on editor and mermaid renderers
- Add error handling and inline error box for mermaid
- Fix Mermaid rendering by using the .init api
Diffstat (limited to 'web_src/less/_markdown.less')
-rw-r--r-- | web_src/less/_markdown.less | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/web_src/less/_markdown.less b/web_src/less/_markdown.less index 0f57bc4449..1b9c412f6b 100644 --- a/web_src/less/_markdown.less +++ b/web_src/less/_markdown.less @@ -495,10 +495,20 @@ } } -.mermaid-chart { - display: flex; - justify-content: center; - align-items: center; - padding: 1rem; - margin: 1rem 0; +.markdown-block-error { + margin-bottom: 0 !important; + border-bottom-left-radius: 0 !important; + border-bottom-right-radius: 0 !important; + box-shadow: none !important; + font-size: 85% !important; + white-space: pre !important; + padding: .5rem 1rem !important; + text-align: left !important; +} + +.markdown-block-error + pre { + border-top: none !important; + margin-top: 0 !important; + border-top-left-radius: 0 !important; + border-top-right-radius: 0 !important; } |