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