Skip to content

Commit 2a82e3c

Browse files
committed
Keep captions clear of the two-row control bar on narrow players
On a Default-skin player 480px wide or less the control bar is two rows, the progress bar above the buttons, and 6em tall, while the captions sat 4em from the bottom, so their box ran over the progress bar whenever the controls showed (in the lightbox and inline). They now sit 6em up there. Wider players are unchanged.
1 parent 3b57861 commit 2a82e3c

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎assets/src/css/godam-player.scss‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1908,6 +1908,15 @@ body.godam-share-modal-open {
19081908
bottom: 4em !important;
19091909
}
19101910

1911+
// On a narrow Default-skin player the control bar is two rows (the progress
1912+
// bar above the buttons) and 6em tall, so lift the captions clear of it.
1913+
@container godam-player-default-skin (max-width: 480px) {
1914+
1915+
.vjs-text-track-display {
1916+
bottom: 6em !important;
1917+
}
1918+
}
1919+
19111920
// Share and transcript buttons share the same on-video circular UI. The
19121921
// transcript button is a custom Video.js Button (like GodamShareButton), so
19131922
// it reuses these styles for consistency and stacks directly below share.

0 commit comments

Comments
 (0)