Skip to content

Commit

Permalink
Enabled dark/light mode. Add a white border around xugrid logo.
Browse files Browse the repository at this point in the history
  • Loading branch information
Huite committed Sep 13, 2024
1 parent a62217d commit 027ef48
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
File renamed without changes
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%);
}
18 changes: 9 additions & 9 deletions docs/_static/xugrid-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
{
"name": "Deltares",
"url": "https://deltares.nl/en/",
"icon": "_static/deltares-white.svg",
"icon": "_static/deltares-blue.svg",
"type": "local",
},
],
Expand All @@ -126,7 +126,6 @@
"image_light": "xugrid-logo.svg",
"image_dark": "xugrid-logo.svg",
},
"navbar_end": ["theme-switcher", "navbar-icon-links"],
}

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

0 comments on commit 027ef48

Please sign in to comment.