Skip to content

Commit

Permalink
css: update background photo on homepage to not be fixed on mobile, a…
Browse files Browse the repository at this point in the history
…dd background color on videos
  • Loading branch information
poojagunturu96 committed Oct 13, 2023
1 parent 781f7d7 commit d0c5d2f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/scss/components/_campaign-section.scss
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@
}

&.video {
position: fixed;
background: $navy no-repeat 50% 50% / cover;
background-image: url(https://via.placeholder.com/425x756);

@include breakpoint(sm) {
position: fixed;
background-image: initial;
}

Expand Down
1 change: 1 addition & 0 deletions src/scss/components/_portrait-video.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
.portrait-video__content {
position: relative;
padding-bottom: percentage(16 / 9);
background-color: #000;

img,
iframe {
Expand Down
1 change: 1 addition & 0 deletions src/scss/components/_video.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
padding-top: percentage(9 / 16);
height: 0;
overflow: hidden;
background-color: #000;

iframe,
img {
Expand Down

0 comments on commit d0c5d2f

Please sign in to comment.