Skip to content

Commit

Permalink
fix: text-track-display position with no ui (#7682)
Browse files Browse the repository at this point in the history
Fixes #7681
  • Loading branch information
Wayne-Morgan authored Mar 21, 2022
1 parent eeff79c commit 337ff2f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/css/components/_text-track.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
}

// Move captions down when controls aren't being shown
.video-js.vjs-controls-disabled .vjs-text-track-display,
.video-js.vjs-user-inactive.vjs-playing .vjs-text-track-display {
bottom: 1em;
}
Expand All @@ -30,6 +31,7 @@ video::-webkit-media-text-track-display {
}

// Move captions down when controls aren't being shown
.video-js.vjs-controls-disabled video::-webkit-media-text-track-display,
.video-js.vjs-user-inactive.vjs-playing video::-webkit-media-text-track-display {
@include transform(translateY(-1.5em));
}

0 comments on commit 337ff2f

Please sign in to comment.