Skip to content

Commit 8aac8a9

Browse files
committed
Improve the legibility on dark mode
I found that it is hard to read the subtitles in the index page with dark mode enabled. Add more dark-mode styles to fix it. Signed-off-by: Fujimoto Seiji <fujimoto@ceptord.net>
1 parent 7c53cd2 commit 8aac8a9

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

source/_static/custom.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,15 @@ table.table-of-contents td {
1717
padding-bottom: 0.5em;
1818
}
1919

20-
table.table-of-contents td p {
20+
table.table-of-contents td p {
2121
color: #343434;
2222
margin-bottom: 0.3em;
2323
}
2424

25+
html[data-theme="dark"] table.table-of-contents td p {
26+
color: #fafafa;
27+
}
28+
2529
html[data-theme="dark"] .logo img {
2630
filter: invert(100%) sepia(98%) saturate(0%) hue-rotate(307deg) brightness(104%) contrast(104%);
2731
}

0 commit comments

Comments
 (0)