Skip to content

Commit

Permalink
Move captions above controls when user is active (#665)
Browse files Browse the repository at this point in the history
* Move captions above controls when user is active

* Keep captions above controls when player is paused
  • Loading branch information
Dananji authored Oct 21, 2024
1 parent 5d15ca7 commit 1be99f6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,13 @@
border-bottom: 0.35rem ridge $primaryGreen !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: 18.75em 0 !important;
transform: translateY(-100%);
}

/** End - Overrides for VideoJS related styling **/

// Webkit override for scroll bars for always-on display in Chrome and Safari
Expand Down

0 comments on commit 1be99f6

Please sign in to comment.