Skip to content

Commit 1ae3c0b

Browse files
authored
Fixing docs card font color for dark mode (#255)
* Overriding card font color for dark mode * Overriding border color for dark mode
1 parent 0306911 commit 1ae3c0b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/src/index.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
.. automodule:: skmatter
22

3+
.. raw:: html
4+
5+
<style>
6+
/* Overriding bootstrap font color so that text appears white
7+
in dark theme */
8+
html[data-theme="dark"] .card-text {
9+
color: var(--pst-color-text-base);
10+
}
11+
12+
/* Overriding bootstrap border color so that border appears white
13+
in dark theme */
14+
html[data-theme="dark"] .card {
15+
--bs-card-border-color: var(--pst-color-border);
16+
}
17+
</style>
18+
319
.. raw:: html
420

521
<div class="container">

0 commit comments

Comments
 (0)