Skip to content

Commit

Permalink
Add dark mode styling for recipes
Browse files Browse the repository at this point in the history
Exactly what it says on the tin.
  • Loading branch information
MineRobber9000 authored Aug 14, 2023
1 parent 84a761d commit 39779d7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion projects/web/src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}

Expand Down

0 comments on commit 39779d7

Please sign in to comment.