Skip to content

Commit

Permalink
feat(ModalHeroLayout): image responsiveness (only medium size currently)
Browse files Browse the repository at this point in the history
  • Loading branch information
YossiSaadi committed Oct 14, 2024
1 parent 88edc35 commit d6c86e3
Showing 1 changed file with 19 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,33 @@
flex-grow: 1;
overflow: hidden;

.header {
border: 1px dashed #c74646;
.media {
width: 100%;
height: var(--modal-hero-height, 240px);
flex-shrink: 0;

@media (min-width: 1280px) {
--modal-hero-height: 260px;
}

@media (min-width: 1440px) {
--modal-hero-height: 260px;
}

@media (min-width: 1720px) {
--modal-hero-height: 320px;
}
}

.header {
width: 100%;
margin-block: var(--spacing-large) var(--spacing-small);
text-align: center;
}

.content {
flex: 1;
width: 100%;
flex: 1;
align-self: flex-start;
}

.media {
height: 260px;
flex-shrink: 0;
}
}

0 comments on commit d6c86e3

Please sign in to comment.