Skip to content

Commit 53dadfe

Browse files
committed
Improve the dark mode support
This reverts commit 8741e81 to add a better dark mode support using CSS. Signed-off-by: Fujimoto Seiji <fujimoto@ceptord.net>
1 parent 8b9e560 commit 53dadfe

3 files changed

Lines changed: 13 additions & 4 deletions

File tree

source/_static/custom.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,15 @@ table.table-of-contents td p {
2121
color: #343434;
2222
margin-bottom: 0.3em;
2323
}
24+
25+
html[data-theme="dark"] .logo img {
26+
filter: invert(100%) sepia(98%) saturate(0%) hue-rotate(307deg) brightness(104%) contrast(104%);
27+
}
28+
29+
html[data-theme="dark"] h1,
30+
html[data-theme="dark"] h2,
31+
html[data-theme="dark"] h3,
32+
html[data-theme="dark"] h4,
33+
html[data-theme="dark"] h5 {
34+
color: #aaa;
35+
}

source/_static/logo-dark.png

-9.87 KB
Binary file not shown.

source/conf.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
#
5454
html_theme = 'pydata_sphinx_theme'
5555
html_title = 'FlexConfirmMail'
56+
html_logo = '_static/logo.svg'
5657
html_baseurl = 'https://www.flexconfirmmail.com/'
5758
html_css_files = ['custom.css']
5859
html_show_copyright = False
@@ -78,10 +79,6 @@
7879
"use_edit_page_button": True,
7980
"navigation_with_keys": False,
8081
"show_prev_next": False,
81-
"logo": {
82-
"image_light": "logo.svg",
83-
"image_dark": "logo-dark.png",
84-
}
8582
}
8683

8784

0 commit comments

Comments
 (0)