Skip to content

Commit d35aa97

Browse files
committed
Fix for narrow screens.
On narrow windows, even when it is not positioned, let the video (#video1) keep its z-index, so that it is on top of the negative margin of the scaled-down slides, which otherwise blocks any clicks on the video.
1 parent 0880a93 commit d35aa97

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

presentation-viewer.css

+6-2
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,14 @@
119119
#sync:checked ~ #player .slide a {transition: none}
120120

121121

122-
/* If the body is narrow, leave the video above the slides instead */
122+
/* If the body is narrow, leave the video above the slides
123+
instead. Use 'relative' instead of 'static', so that
124+
'z-index' continues to apply and the video is on top of the
125+
negative margin of the following slides. */
123126
@media (max-width: 68em) {
124127
#sync:checked ~ #player #slidenr, #slidenr,
125-
#sync:checked ~ #player #video1, #video1 {position: static;
128+
#sync:checked ~ #player #video1, #video1 {position: relative;
129+
top: auto; left: auto;
126130
margin: 1em 0}
127131
}
128132

0 commit comments

Comments
 (0)