Skip to content

Commit 12a2ade

Browse files
committed
Create hoverxref-darkmode.css
1 parent bea02fa commit 12a2ade

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/* Overrides for sphinx-hoverxref since it does not support a native dark theme, see */
2+
/* https://github.com/readthedocs/sphinx-hoverxref/issues/231 */
3+
/* Inspired by https://github.com/pybamm-team/PyBaMM/pull/3083 */
4+
5+
/* These will ensure that the tooltip inherits the sphinx-pydata-theme colours */
6+
7+
.tooltipster-sidetip.tooltipster-shadow .tooltipster-box {
8+
background: var(--pst-color-background) !important;
9+
}
10+
11+
.tooltipster-sidetip.tooltipster-shadow .tooltipster-content {
12+
color: var(--pst-color-text-base) !important;
13+
}

0 commit comments

Comments
 (0)