Skip to content

Commit

Permalink
fix(FEC-8603): native captions are overlapped by toolbar (#284)
Browse files Browse the repository at this point in the history
handle overlapping in safari using `max-height` and in other browsers using `padding`
  • Loading branch information
yairans committed Oct 28, 2018
1 parent bed117c commit 0c0133e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/styles/_captions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ $hovering-offset: 50px;
}
&.state-paused video::-webkit-media-text-track-container,
&.hover video::-webkit-media-text-track-container {
padding: 0 0 $hovering-offset 0;
}
&.state-paused.Safari video::-webkit-media-text-track-container,
&.hover.Safari video::-webkit-media-text-track-container {
padding: initial;
max-height: calc(100% - #{$hovering-offset});
}
&.fullscreen.iOS {
Expand Down

0 comments on commit 0c0133e

Please sign in to comment.