Skip to content

Commit d6fe915

Browse files
adapt header image for phone/smaller screens
1 parent 152cb3e commit d6fe915

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

_layouts/default_about.liquid

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,25 @@
2727
"></div>
2828
</div>
2929

30+
<style>
31+
@media (max-width: 768px) { /* Tablet and smaller screens */
32+
.header-background .img {
33+
height: 10em; /* Reduce height for smaller screens */
34+
}
35+
}
36+
37+
@media (max-width: 480px) { /* Phones */
38+
.header-background .img {
39+
height: 8em; /* Further reduce height for phones */
40+
background-size: cover; /* Ensure the image covers the container */
41+
}
42+
.header-background .text {
43+
margin-right: 1em; /* Adjust text position if needed */
44+
}
45+
}
46+
</style>
47+
48+
3049
</head>
3150

3251

0 commit comments

Comments
 (0)