Skip to content

Commit 2fd1dae

Browse files
authored
Update custom-lab-style.css
1 parent b0c548d commit 2fd1dae

1 file changed

Lines changed: 46 additions & 19 deletions

File tree

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

Lines changed: 46 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,62 @@
1-
/* --- Ghibli Cloud Dynamic Background (Dark Mode) --- */
1+
/* --- Ghibli Cloud Dynamic Background (Dark Mode with Computational Elements) --- */
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; }
6+
100% { background-position: 100% 0; } /* Shifts the background one full image width */
77
}
88

99
/* 2. Apply the style to the main page body */
1010
body {
11-
/* **NEW: Use a dark color for the sky/background** */
12-
background-color: #121212; /* A dark, almost black color (common dark mode background) */
11+
/* Use a very dark, deep color for the background that shows around the clouds */
12+
background-color: #0d0d0d; /* A deep charcoal/near-black */
1313

14-
/* Ensure the cloud image is a PNG with transparency, or the image itself is dark */
15-
background-image: url("images/clouds_lab.png");
14+
/* **IMPORTANT**: Update this URL path to where you saved your new image */
15+
background-image: url("/images/clouds_lab.png");
1616

17-
background-repeat: repeat-x;
18-
background-size: auto 100vh;
17+
/* Crucial for seamless drift: it tiles the image horizontally */
18+
background-repeat: repeat-x;
1919

20-
/* Apply the animation */
20+
/* Ensures the image fills the space vertically without distortion */
21+
background-size: auto 100vh; /* Adjust 'auto' if the image needs to be larger/smaller */
22+
23+
/* Apply the animation for a slow, continuous loop */
2124
animation: cloud-drift 120s linear infinite;
2225

23-
/* IMPORTANT for Dark Background: Make text readable */
24-
color: #f0f0f0; /* Set default text color to a light gray/off-white */
26+
/* Set default text color to a light gray/off-white for readability */
27+
color: #e0e0e0;
28+
29+
/* Smooth transitions for any hover effects if needed */
30+
transition: background-color 0.3s ease;
31+
}
32+
33+
/* 3. Ensure Readability for your Lab Page Content (Container Box) */
34+
/* These classes target typical content wrappers in Jekyll themes. You might need to
35+
inspect your page to find the exact class that wraps your lab.md content. */
36+
.markdown-body, .page__content, .page, .wrap, #main {
37+
background-color: rgba(25, 25, 25, 0.85); /* Slightly darker, semi-transparent box */
38+
padding: 30px; /* More padding for better aesthetics */
39+
border-radius: 10px; /* Slightly more rounded corners */
40+
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6); /* Deeper shadow for pop-out effect */
41+
margin: 40px auto; /* Center the content box with vertical margins */
42+
max-width: 900px; /* Max width for readability */
43+
line-height: 1.6; /* Better line spacing for dark backgrounds */
44+
color: #e0e0e0; /* Ensure text inside the box is also light */
2545
}
2646

27-
/* 3. Ensure Readability for your Lab Page Content */
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);
32-
padding: 20px;
33-
border-radius: 8px;
34-
box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); /* Stronger shadow to pop against dark background */
47+
/* Specific adjustments for headings if needed for dark mode */
48+
h1, h2, h3, h4, h5, h6 {
49+
color: #ffffff; /* Make headings pure white for contrast */
50+
text-shadow: 1px 1px 3px rgba(0,0,0,0.4); /* Subtle shadow for headings */
51+
}
52+
53+
/* Link colors for dark theme */
54+
a {
55+
color: #87ceeb; /* A light sky blue for links */
56+
text-decoration: none;
57+
transition: color 0.2s ease;
58+
}
59+
a:hover {
60+
color: #b0e0e6; /* Lighter blue on hover */
61+
text-decoration: underline;
3562
}

0 commit comments

Comments
 (0)