feat(hero-banner): add conditional class for media presence and adjust styles

This commit is contained in:
2026-09-03 13:39:23 -03:00
parent 4bd74d95cb
commit 9a6ec3d1f2
3 changed files with 40 additions and 12 deletions

View File

@@ -7,23 +7,23 @@
min-height: 400px;
display: flex;
flex-direction: column;
&--with-media {
min-height: 0;
}
}
.hero-media {
position: absolute;
inset: 0;
position: relative;
display: block;
width: 100%;
overflow: hidden;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
border-radius: inherit;
img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
height: auto;
}
&::after {
@@ -52,6 +52,11 @@
flex-grow: 1;
}
.hero-banner--with-media .hero-content {
position: absolute;
inset: 0;
}
::ng-deep .hero-title,
.hero-title {
color: #666666;
@@ -179,24 +184,29 @@
inset: auto;
flex: 0 0 auto;
width: 100%;
height: clamp(8.75rem, 44vw, 211px);
background-position: center center;
background-size: 140% auto;
overflow: visible;
border-radius: 0;
}
.hero-media::after {
top: auto;
height: 48%;
bottom: -2px;
height: calc(48% + 2px);
background: linear-gradient(
to bottom,
rgba(245, 245, 245, 0) 0%,
rgba(245, 245, 245, 0.78) 55%,
#f5f5f5 96%,
#f5f5f5 100%
);
border-radius: 0;
}
.hero-banner--with-media .hero-content {
position: relative;
inset: auto;
}
.hero-content {
justify-content: center !important;
height: auto !important;