1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-04 10:34:51 +02:00

fix: text-track-display position with no ui (#7682)

Fixes #7681
This commit is contained in:
Wayne-Morgan 2022-03-21 14:00:41 +00:00 committed by GitHub
parent eeff79c5e8
commit 337ff2fed3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
@ -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));
}