Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions mkdocs_drawio/css/drawio-darkmode.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,11 @@
[data-bs-theme="dark"] {
color-scheme: dark;
}

/* Override drawio's color-scheme
to just inherit from what was set
for the page in the code above */
.mxgraph,
.geDiagramContainer {
color-scheme: inherit !important;
Comment thread
tuunit marked this conversation as resolved.
}
16 changes: 0 additions & 16 deletions mkdocs_drawio/js/drawio-darkmode.js

This file was deleted.

1 change: 0 additions & 1 deletion mkdocs_drawio/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ def on_config(self, config: base.Config):

if self.config.darkmode:
self.css.append("css/drawio-darkmode.css")
self.js.append("js/drawio-darkmode.js")

for path in self.css:
config.extra_css.append(str(path))
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "mkdocs-drawio"
version = "1.12.1"
version = "1.12.2"
description = "MkDocs plugin for embedding Drawio files"
authors = [
"Jan Larwig <jan@larwig.com>",
Expand Down