Skip to content

Commit b0c548d

Browse files
authored
Update styles for dark mode background
1 parent 656d8fa commit b0c548d

1 file changed

Lines changed: 16 additions & 17 deletions

File tree

‎assets/css/custom-lab-style.css‎

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,35 @@
1-
/* --- Ghibli Cloud Dynamic Background --- */
1+
/* --- Ghibli Cloud Dynamic Background (Dark Mode) --- */
22

33
/* 1. Define the subtle movement (cloud-drift) */
44
@keyframes cloud-drift {
55
0% { background-position: 0 0; }
6-
100% { background-position: 100% 0; } /* Shifts the background one full image width */
6+
100% { background-position: 100% 0; }
77
}
88

99
/* 2. Apply the style to the main page body */
1010
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) */
1313

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");
1616

17-
/* Ensures the image fills the space vertically */
18-
background-size: auto 100vh;
17+
background-repeat: repeat-x;
18+
background-size: auto 100vh;
1919

20-
/* Apply the animation: 120s duration for a very slow, seamless loop */
20+
/* Apply the animation */
2121
animation: cloud-drift 120s linear infinite;
2222

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 */
2525
}
2626

2727
/* 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);
3332
padding: 20px;
3433
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 */
3635
}

0 commit comments

Comments
 (0)