mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-08 12:07:06 +08:00
Add pan and zoom support for mermaid diagrams
This commit is contained in:
@@ -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