Skip to content

Commit

Permalink
Fix image object fit (#66)
Browse files Browse the repository at this point in the history
* Fix image object fit

* Display with aspect ratio instead of object-fit
  • Loading branch information
nkarhoff authored Sep 23, 2024
1 parent 23f92d1 commit 3384a03
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions assets/scss/custom/_hero.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
.hero-image {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
aspect-ratio: 16 / 9;
position: unset !important;

@include media-breakpoint-down(lg) {
position: relative !important;
Expand Down Expand Up @@ -127,11 +127,12 @@
.page-header {
@include media-breakpoint-up(lg) {
min-height: 55vh;
overflow: hidden;
}

&.video {
@include media-breakpoint-up(lg) {
aspect-ratio: 16 / 9;

}

video {
Expand All @@ -144,11 +145,11 @@
.hero-image-page {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
aspect-ratio: 16 / 9;
z-index: 0 !important;
position: unset !important;

@include media-breakpoint-down(lg) {
position: relative !important;
Expand Down

0 comments on commit 3384a03

Please sign in to comment.