First steps at adding default dark mode depending on the browser settings
This commit is contained in:
parent
5171290b93
commit
12cc6e178a
@ -84,3 +84,6 @@ summaryLength = 30
|
||||
[params.logo]
|
||||
standard = "/pics/logo.png"
|
||||
mobile = "/pics/logo.png"
|
||||
|
||||
[markup.goldmark.renderer]
|
||||
unsafe = true
|
||||
|
@ -5,7 +5,7 @@ draft: false
|
||||
weight: 100
|
||||
---
|
||||
|
||||
#  YAMS has an official Matrix chat!
|
||||
# <img class="element-img" src="/pics/element.png"/> YAMS has an official Matrix chat!
|
||||
|
||||
You can join us here: [https://matrix.to/#/#yams:chat.rogs.me](https://matrix.to/#/#yams:chat.rogs.me).
|
||||
|
||||
|
@ -85,3 +85,26 @@ body {
|
||||
content: url("/pics/element-small.png") ;
|
||||
margin-right: 5px;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
html {
|
||||
filter: invert(95%);
|
||||
}
|
||||
a {
|
||||
filter: invert(100%);
|
||||
}
|
||||
.docs-menu a {
|
||||
filter: invert(10%);
|
||||
}
|
||||
.docs-menu a:hover {
|
||||
filter: invert(100%);
|
||||
}
|
||||
li.active {
|
||||
filter: invert(100%);
|
||||
}
|
||||
.zerostatic {
|
||||
filter: invert(100%);
|
||||
}
|
||||
.element-img {
|
||||
filter: invert(100%);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user