Skip to content

Commit

Permalink
Try to use darker hoverxref colours on dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Jun 30, 2023
1 parent 8bb450a commit 0509019
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@
hoverxref_tooltip_maxwidth = 750
hoverxref_tooltip_animation = "swing"
hoverxref_tooltip_content = "Loading information..."
hoverxref_tooltip_theme = ["tooltipster-shadow", "tooltipster-punk"]
hoverxref_tooltip_theme = ["tooltipster-shadow", "tooltipster-shadow-custom"]


# -- Jinja templating --------------------------------------------------------
Expand Down
11 changes: 11 additions & 0 deletions docs/source/_static/pybamm.css
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,14 @@ html[data-theme="dark"] h1 {
html[data-theme="dark"] h3 {
color: #0a6774;
}

/* Overrides for sphinx-hoverxref since it does not support a native dark theme, see */
/* https://github.com/readthedocs/sphinx-hoverxref/issues/231 */

html[data-theme="dark"] .tooltipster-sidetip.tooltipster-shadow .tooltipster-box
.tooltipster-arrow .tooltipster-right .tooltipster-left .tooltipster-arrow-border {
border: none;
border-radius: 5px;
background-color: var(--pst-color-background);
box-shadow: 0 0 10px 6px rgba(0,0,0,.1);
}

0 comments on commit 0509019

Please sign in to comment.