mirror of
				https://github.com/SquidDev-CC/CC-Tweaked
				synced 2025-10-31 13:42:59 +00:00 
			
		
		
		
	Add dark mode styling for recipes (#1558)
Exactly what it says on the tin.
This commit is contained in:
		| @@ -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; | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 MineRobber___T
					MineRobber___T