Skip to content

Commit

Permalink
Keep captions above controls when player is paused
Browse files Browse the repository at this point in the history
  • Loading branch information
Dananji committed Oct 18, 2024
1 parent 9ff6209 commit 68716a0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,10 @@
border-bottom: 0.35rem ridge $primaryGreen !important;
}

/* display text track cues above the controls when they are visible */
.video-js.vjs-user-active .vjs-text-track-display .vjs-text-track-cue {
inset: 18.75em 0 !important;
/* display text track cues above the controls when controls are visible */
.video-js.vjs-user-active .vjs-text-track-display .vjs-text-track-cue,
.video-js.vjs-user-inactive.vjs-has-started.vjs-paused .vjs-text-track-display .vjs-text-track-cue {
inset: 19.25em 0 !important;
transform: translateY(-100%);
}

Expand Down

0 comments on commit 68716a0

Please sign in to comment.