|
1 | | -/* --- Ghibli Cloud Dynamic Background --- */ |
| 1 | +/* --- Ghibli Cloud Dynamic Background (Dark Mode) --- */ |
2 | 2 |
|
3 | 3 | /* 1. Define the subtle movement (cloud-drift) */ |
4 | 4 | @keyframes cloud-drift { |
5 | 5 | 0% { background-position: 0 0; } |
6 | | - 100% { background-position: 100% 0; } /* Shifts the background one full image width */ |
| 6 | + 100% { background-position: 100% 0; } |
7 | 7 | } |
8 | 8 |
|
9 | 9 | /* 2. Apply the style to the main page body */ |
10 | 10 | body { |
11 | | - /* **IMPORTANT**: Update this URL path to your image location */ |
12 | | - background-image: url("/images/clouds_lab.png"); |
| 11 | + /* **NEW: Use a dark color for the sky/background** */ |
| 12 | + background-color: #121212; /* A dark, almost black color (common dark mode background) */ |
13 | 13 |
|
14 | | - /* Crucial for the drift animation: it makes the image tile horizontally */ |
15 | | - background-repeat: repeat-x; |
| 14 | + /* Ensure the cloud image is a PNG with transparency, or the image itself is dark */ |
| 15 | + background-image: url("images/clouds_lab.png"); |
16 | 16 |
|
17 | | - /* Ensures the image fills the space vertically */ |
18 | | - background-size: auto 100vh; |
| 17 | + background-repeat: repeat-x; |
| 18 | + background-size: auto 100vh; |
19 | 19 |
|
20 | | - /* Apply the animation: 120s duration for a very slow, seamless loop */ |
| 20 | + /* Apply the animation */ |
21 | 21 | animation: cloud-drift 120s linear infinite; |
22 | 22 |
|
23 | | - /* Fallback background color in case the image fails to load */ |
24 | | - background-color: #f0f8ff; /* A light, airy sky color */ |
| 23 | + /* IMPORTANT for Dark Background: Make text readable */ |
| 24 | + color: #f0f0f0; /* Set default text color to a light gray/off-white */ |
25 | 25 | } |
26 | 26 |
|
27 | 27 | /* 3. Ensure Readability for your Lab Page Content */ |
28 | | -/* This targets the main wrapper where your lab.md content is rendered */ |
29 | | -/* This class might be different (e.g., .content, .page-wrapper), |
30 | | - but .markdown-body is a good general guess. */ |
31 | | -.markdown-body { |
32 | | - background-color: rgba(255, 255, 255, 0.85); /* Semi-transparent white box for text */ |
| 28 | +/* This wrapper ensures your main content blocks stand out */ |
| 29 | +.markdown-body, .page, .content-wrapper { |
| 30 | + /* Use a slightly darker, semi-transparent box for content */ |
| 31 | + background-color: rgba(30, 30, 30, 0.85); |
33 | 32 | padding: 20px; |
34 | 33 | border-radius: 8px; |
35 | | - box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); |
| 34 | + box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); /* Stronger shadow to pop against dark background */ |
36 | 35 | } |
0 commit comments