darkmode
This commit is contained in:
parent
4142f8bbc9
commit
2468802869
9
h2i.html
9
h2i.html
@ -88,6 +88,13 @@
|
|||||||
a:hover {
|
a:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* darkmode */
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
:root {
|
||||||
|
--bg: #000000;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
@ -126,7 +133,7 @@
|
|||||||
//if darkmode
|
//if darkmode
|
||||||
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
||||||
tcolor.value = '#ffffff';
|
tcolor.value = '#ffffff';
|
||||||
bcolor.value = '#000000';
|
// bcolor.value = '#000000';
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user