Skip to content

Commit 628f8f6

Browse files
committed
iOS video fallback
1 parent 1e4d654 commit 628f8f6

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

_sass/critical/_video.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
width: 100%;
1414
height: 100%;
1515
}
16+
17+
.touch-device &.hero-block {
18+
background: url(../img/features/video-fallback.jpg);
19+
background-position: center;
20+
background-size: cover;
21+
}
1622
}
1723

1824
.video {
@@ -26,6 +32,10 @@
2632
background-color: $pink;
2733
object-fit: cover;
2834
z-index: 0;
35+
36+
.touch-device & {
37+
display: none;
38+
}
2939
}
3040

3141
.video-play-btn {

img/features/video-fallback.jpg

108 KB
Loading

0 commit comments

Comments
 (0)