Hi,
I would like to reduce the height of my hero collection images, by 100px (which I know how to do) but when I do so, I want the image to reduce in size to fit within that (i.e. not chop off their heads). How do I do that?
Here’s the code. URL is www.ellennyswim.com/collections/womens.
/================ Module | Collection images at top of templates ================/
$collectionHeroLarge: 420px;
$collectionHeroSmall: 250px;
.collection-hero {
position: relative;
width: 100%;
height: $collectionHeroSmall;
overflow: hidden;
background: $colorLargeImageBg;
@include media-query($medium-up) {
height: $collectionHeroLarge;
}
}
.collection-hero__content {
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 100%;
display: -ms-flexbox;
display: flex;
-ms-flex-align: end;
align-items: flex-end;
padding: ($gutter / 2) 0;
z-index: 1;
@include media-query($medium-up) {
padding: $gutter 0;
}
@IF ($type_header_text_center) {
-ms-flex-align: center;
align-items: center;
}
// Account for overlayed header/toolbar
.overlaid-header & {
padding-top: 70px;
@include media-query($medium-up) {
padding-top: 100px;
}
}
.page-width {
width: 100%;
}
&:before {
@include overlay();
@include heroScrim();
display: block;
}
.section-header {
opacity: 0;
animation: fade-in 0.5s forwards 1s;
}
}