Skip to content

Commit d8f423c

Browse files
committed
Override pydata-sphinx-theme primary CSS colours
instead of setting the `a` CSS directly.
1 parent 2854892 commit d8f423c

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

mpl_sphinx_theme/static/css/style.css

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
1-
a {
2-
color: #11557C;
3-
text-decoration: none;
4-
}
5-
6-
a:hover {
7-
color: #CA7900;
1+
html[data-theme="light"], html[data-theme="dark"] {
2+
--pst-color-primary: rgb(19, 6, 84);
3+
--pst-color-link: rgb(17, 85, 124);
4+
--pst-color-link-hover: rgb(0, 60, 99);
85
}
96

107
html[data-theme="light"] {
11-
--pst-color-primary: rgb(19, 6, 84);
128
--pst-color-text-base: rgb(51, 51, 51);
139
}
1410

1511
html[data-theme="dark"] {
16-
--pst-color-primary: rgb(19, 6, 84);
1712
--pst-color-text-base: rgb(240, 240, 240);
1813
}
1914

0 commit comments

Comments
 (0)