Skip to content

Commit 5826863

Browse files
authored
feat: Support dark mode for zoom-image plugin (#2524)
1 parent c18df4c commit 5826863

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/plugins/zoom-image.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,17 @@ function install(hook) {
1010
),
1111
);
1212

13+
Docsify.dom.style(
14+
`.medium-zoom-image--opened,.medium-zoom-overlay{z-index:999}`,
15+
);
16+
1317
elms = elms.filter(elm => !elm.matches('a img'));
1418

1519
if (zoom) {
1620
zoom.detach();
1721
}
1822

19-
zoom = mediumZoom(elms);
23+
zoom = mediumZoom(elms, { background: 'var(--color-bg)' });
2024
});
2125
}
2226

0 commit comments

Comments
 (0)