Skip to content

Commit

Permalink
Revert CSS changes for mobile captions
Browse files Browse the repository at this point in the history
In testing the Video.js 8.10.0, it looks like they fixed the root cause
of the issues we were seeing with oversized captions in mobile devices.
As such, the override that we had put in place was causing the captions
to display incorrectly.
  • Loading branch information
masaball committed Mar 15, 2024
1 parent ad7dd91 commit 9b1d8c8
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions src/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -135,35 +135,6 @@ video/poster area the controls are displayed correctly. */
border-bottom: 0.45rem ridge $primaryGreen;
}

/* captions font for android and tablet fullscreen */
@media screen and (orientation:portrait) {
.vjs-fullscreen.android {
// Force text track to bottom of screen but not overlapping control bar
.vjs-text-track-cue {
inset: auto 0px 20px !important;
height: auto !important;
font: 0px sans-serif !important;
}

.vjs-text-track-cue > div {
font: 22px sans-serif;
}
}

.vjs-fullscreen.tablet {
// Force text track to bottom of screen but not overlapping control bar
.vjs-text-track-cue {
inset: auto 0px 20px !important;
height: auto !important;
font: 0px sans-serif !important;
}

.vjs-text-track-cue > div {
font: 32px sans-serif;
}
}
}

/** 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 9b1d8c8

Please sign in to comment.