Skip to content

Commit

Permalink
Enable dark/light mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Huite committed Sep 13, 2024
1 parent ccd5e89 commit b51efda
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion docs/_static/deltares.svg

This file was deleted.

7 changes: 7 additions & 0 deletions docs/_static/theme-deltares.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
/* enlarge deltares & github icon size; only works with local/url svg files; not with fa icons */
img.icon-link-image {
height: 2.5em !important;
}

[data-theme="dark"] img.icon-link-image[src*="deltares-blue.svg"] {
filter: brightness(0) saturate(100%) invert(100%);
}
[data-theme="dark"] img.icon-link-image[src*="Octicons-mark-github.svg"] {
filter: brightness(0) saturate(100%) invert(100%);
}
1 change: 0 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@
"image_light": "pandamesh-logo.svg",
"image_dark": "pandamesh-logo.svg",
},
"navbar_end": ["navbar-icon-links"], # remove dark mode switch
}

# -- Extension configuration -------------------------------------------------
Expand Down

0 comments on commit b51efda

Please sign in to comment.