mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-11 14:54:17 +00:00
[android] Add support of dark mode for how to edit oh html file
Signed-off-by: Jean-Baptiste <jeanbaptiste.charron@outlook.fr>
This commit is contained in:
@@ -11,6 +11,31 @@
|
||||
.example {
|
||||
font-weight: bold;
|
||||
font-family: monospace;
|
||||
|
||||
/* Dark mode support. */
|
||||
:root {
|
||||
color-scheme: light dark;
|
||||
--primary-color: black;
|
||||
--secondary-color: #555555;
|
||||
--link-color: #37653F;
|
||||
--background-color: white;
|
||||
--separator-color: #0e0e0e;
|
||||
}
|
||||
|
||||
@media screen and (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--primary-color: #b5b5b5;
|
||||
--secondary-color: #858585;
|
||||
--link-color: #659464;
|
||||
--background-color: black;
|
||||
--separator-color: #0a0a0a;
|
||||
}
|
||||
}
|
||||
|
||||
html {
|
||||
color: var(--secondary-color);
|
||||
background-color: var(--background-color);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user