mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Set background-color depending on dark/light mode
This commit is contained in:
parent
effb351d09
commit
dea2eb54af
|
@ -310,3 +310,4 @@ texinfo_documents = [
|
|||
def setup(app):
|
||||
app.add_js_file("js/script.js")
|
||||
app.add_css_file("css/dark.css")
|
||||
app.add_css_file("css/light.css")
|
||||
|
|
|
@ -1196,6 +1196,10 @@
|
|||
color: rgb(166, 158, 146);
|
||||
}
|
||||
|
||||
.wy-menu-vertical li.toctree-l3.current a {
|
||||
background-color: #363636;
|
||||
}
|
||||
|
||||
.wy-menu-vertical li ul li a {
|
||||
color: rgb(208, 204, 198);
|
||||
}
|
||||
|
|
7
docs/resources/css/light.css
Normal file
7
docs/resources/css/light.css
Normal file
|
@ -0,0 +1,7 @@
|
|||
@media (prefers-color-scheme: light) {
|
||||
|
||||
.wy-menu-vertical li.toctree-l3.current a {
|
||||
background-color: #c9c9c9;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user