center mermaid (#394)

This commit is contained in:
panoshu 2024-02-20 12:34:03 +08:00 committed by GitHub
parent 493a34b1fa
commit 53fddd24be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 44 additions and 53 deletions

View File

@ -1,18 +1,9 @@
pre.mermaid pre.mermaid
display: inline-block display: flex;
width: 100% align-items: center;
text-align: center justify-content: center;
font-family: $ff-body font-family: $ff-body
.mermaid svg
width: 100%
display: inline-block
.mermaid svg
width: 100%
display: inline-block
.mermaid span,text .mermaid span,text
font-family: $ff-body font-family: $ff-body