Skip to content

Commit f658a66

Browse files
authored
Merge pull request #117 from pebblecode/pt/video-tweaks-touchdevices
Tweaks to video for touch devices
2 parents 6be26e5 + 43b587c commit f658a66

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
@@ -14,6 +14,12 @@
1414
height: 100%;
1515
}
1616

17+
.touch-device &.hero-block {
18+
background: url(../img/features/video-fallback.jpg);
19+
background-position: center;
20+
background-size: cover;
21+
}
22+
1723
.video {
1824
height: 100%;
1925
width: 100%;
@@ -25,6 +31,10 @@
2531
background-color: $pink;
2632
object-fit: cover;
2733
z-index: 0;
34+
35+
.touch-device & {
36+
display: none;
37+
}
2838
}
2939
}
3040

img/features/video-fallback.jpg

108 KB
Loading

0 commit comments

Comments
 (0)