Skip to content

Commit 0509019

Browse files
Try to use darker hoverxref colours on dark mode
1 parent 8bb450a commit 0509019

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@
323323
hoverxref_tooltip_maxwidth = 750
324324
hoverxref_tooltip_animation = "swing"
325325
hoverxref_tooltip_content = "Loading information..."
326-
hoverxref_tooltip_theme = ["tooltipster-shadow", "tooltipster-punk"]
326+
hoverxref_tooltip_theme = ["tooltipster-shadow", "tooltipster-shadow-custom"]
327327

328328

329329
# -- Jinja templating --------------------------------------------------------

docs/source/_static/pybamm.css

+11
Original file line numberDiff line numberDiff line change
@@ -144,3 +144,14 @@ html[data-theme="dark"] h1 {
144144
html[data-theme="dark"] h3 {
145145
color: #0a6774;
146146
}
147+
148+
/* Overrides for sphinx-hoverxref since it does not support a native dark theme, see */
149+
/* https://github.com/readthedocs/sphinx-hoverxref/issues/231 */
150+
151+
html[data-theme="dark"] .tooltipster-sidetip.tooltipster-shadow .tooltipster-box
152+
.tooltipster-arrow .tooltipster-right .tooltipster-left .tooltipster-arrow-border {
153+
border: none;
154+
border-radius: 5px;
155+
background-color: var(--pst-color-background);
156+
box-shadow: 0 0 10px 6px rgba(0,0,0,.1);
157+
}

0 commit comments

Comments
 (0)