darkmode added. fixes #91
This commit is contained in:
parent
aa75de3602
commit
ebfd1f08c8
2 changed files with 13 additions and 0 deletions
|
|
@ -50,6 +50,12 @@ messagesInputStyle .textContent = `
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
}
|
}
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
#messageInputField {
|
||||||
|
background-color: #303030;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
messageInputTemplate.content.appendChild(messagesInputStyle);
|
messageInputTemplate.content.appendChild(messagesInputStyle);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,3 +40,10 @@ p {
|
||||||
margin: 0 0 10px 0;
|
margin: 0 0 10px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Dark mode styles */
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
body {
|
||||||
|
background-color: #000000;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue