mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
feat: Support dark mode for zoom-image plugin (#2524)
This commit is contained in:
parent
c18df4c46b
commit
58268632c8
@ -10,13 +10,17 @@ function install(hook) {
|
||||
),
|
||||
);
|
||||
|
||||
Docsify.dom.style(
|
||||
`.medium-zoom-image--opened,.medium-zoom-overlay{z-index:999}`,
|
||||
);
|
||||
|
||||
elms = elms.filter(elm => !elm.matches('a img'));
|
||||
|
||||
if (zoom) {
|
||||
zoom.detach();
|
||||
}
|
||||
|
||||
zoom = mediumZoom(elms);
|
||||
zoom = mediumZoom(elms, { background: 'var(--color-bg)' });
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user