Skip to content

Commit 79dac79

Browse files
Update custom.scss
1 parent f8a9722 commit 79dac79

1 file changed

Lines changed: 16 additions & 9 deletions

File tree

_sass/custom/custom.scss

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,46 +10,53 @@
1010
border: none; /* Clean edges */
1111
}
1212

13+
/* Title Container */
1314
.title-container {
1415
flex: 1; /* Ensures the text container takes up available space */
1516
padding: 15px; /* Adds spacing around the text */
1617
color: #ffffff; /* White text for contrast */
17-
background-image: url('/assets/images/slugs/pixel-bg.jpg'); /* Path to your background image */
18+
background-image: url('path-to-your-image.jpg'); /* Path to your background image */
1819
background-size: cover; /* Ensures the background image covers the container */
1920
background-repeat: no-repeat; /* Prevents tiling */
2021
background-position: center; /* Centers the image */
2122
height: 100%; /* Matches the height of the parent container */
2223
width: 100%; /* Spans the full width of its flex space */
2324
}
2425

26+
/* Page Title */
2527
.page-title {
2628
font-size: 1.8rem; /* Bold and large for emphasis */
2729
font-weight: bold;
2830
margin: 0;
2931
color: #ffffff; /* White for the title */
3032
}
3133

34+
/* Page Subtitle */
3235
.page-subtitle {
3336
font-size: 1rem; /* Smaller subtitle text */
3437
margin-top: 5px;
3538
color: #ffffff; /* White for the subtitle */
3639
}
3740

41+
/* Image Container */
3842
.image-container {
39-
width: 100%; /* Full width for smaller screens */
40-
height: auto; /* Adjust height dynamically */
41-
margin: 0; /* Removes unwanted gaps */
42-
padding: 0; /* Ensures no extra space inside the container */
43-
overflow: hidden; /* Ensures no visual overflow */
43+
flex-shrink: 0; /* Prevents the image container from shrinking */
44+
width: 290px; /* Fixed width for consistency */
45+
height: 160px; /* Fixed height to match the `.slug` */
46+
overflow: hidden; /* Clips any overflowing content */
47+
margin: 0; /* Ensures no gaps */
4448
}
4549

50+
/* Image Styling */
4651
.image-container img {
47-
display: block; /* Fixes inline spacing issues */
48-
width: 100%; /* Scales the image to fit the container width */
49-
height: auto; /* Maintains the aspect ratio of the image */
52+
display: block; /* Eliminates inline-block spacing quirks */
53+
width: 100%; /* Ensures the image fills the container width */
54+
height: 100%; /* Matches the parent container height */
55+
object-fit: cover; /* Ensures the image fills the container neatly */
5056
margin: 0; /* Removes default margins */
5157
}
5258

59+
/* Responsive Design */
5360
@media (max-width: 768px) {
5461
.slug {
5562
flex-direction: column; /* Stacks items vertically on smaller screens */

0 commit comments

Comments
 (0)