mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-25 09:30:30 +00:00
Add dark mode styling for recipes (#1558)
Exactly what it says on the tin.
This commit is contained in:
parent
84a761ddd5
commit
b9edd7c7f6
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user