mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-04 06:22:00 +08:00
Add pan and zoom support for mermaid diagrams
This commit is contained in:
1 parent
c771efa9bc
commit
dd2d051b3d
2 files changed
+202
No files matched your search
@@ -70,6 +70,13 @@ if hexo-config('mermaid.enable')
|
||||
|
||||
& > svg
|
||||
height: 100%
|
||||
max-width: 100%
|
||||
cursor: grab
|
||||
touch-action: none
|
||||
user-select: none
|
||||
|
||||
&:active
|
||||
cursor: grabbing
|
||||
|
||||
if hexo-config('mermaid.code_write')
|
||||
pre > code.mermaid
|
||||
|
||||
Reference in new issue
Block a user