Add dark mode styling for recipes

Exactly what it says on the tin.
This commit is contained in:
MineRobber___T 2023-08-14 01:19:04 -04:00 committed by GitHub
parent 84a761ddd5
commit 39779d7532
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -131,6 +131,14 @@ div.lua-example {
--recipe-size: 32px;
}
@media (prefers-color-scheme: dark) {
:root {
--recipe-bg: #222;
--recipe-fg: #444;
--recipe-hover: #888;
}
}
.recipe-container {
display: flex;
justify-content: center;
@ -151,7 +159,7 @@ div.lua-example {
}
.recipe-title {
color: #222; /* Same as --foreground in light theme. Ugly, but too lazy to style in dark for now. */
color: var(--foreground);
grid-column-start: span 3;
}