forked from BrianZasuwik/gitcollab-practical
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainStyle.css
More file actions
25 lines (21 loc) · 787 Bytes
/
mainStyle.css
File metadata and controls
25 lines (21 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
.navbar{
box-shadow: 0 2px 4px rgba(0,0,0,0.5);
padding: 0.5rem 1rem;
};
/* Keep images responsive but prevent them from shrinking too far vertically.
Wrap images in a .img-wrapper to apply the min-height while preserving aspect ratio. */
.img-wrapper {
min-height: 200px; /* minimum displayed image height; adjust as needed */
display: block;
width: 100%;
}
.img-wrapper img {
width: 100%; /* shrink horizontally with the column */
height: 100%; /* match wrapper height (will be >= min-height) */
object-fit: contain; /* preserve aspect ratio and letterbox if needed */
display: block;
}
@media (min-width: 768px) {
/* on larger screens allow images to grow naturally but keep min-height */
.img-wrapper { min-height: 180px; }
}