Skip to content

Commit

Permalink
MDL-66982 media_videojs: Fix RTL display issues (progress bar)
Browse files Browse the repository at this point in the history
  • Loading branch information
nadavkav committed Oct 22, 2019
1 parent aaff669 commit 96964ed
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions media/player/videojs/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -1694,28 +1694,32 @@ video::-webkit-media-text-track-display {
/* MDL-61020: VideoJS timeline progress bar should not be flipped in RTL mode. */

/* Prevent the progress bar from being flipped in RTL. */
/*rtl:ignore*/
.video-js .vjs-progress-holder .vjs-play-progress,
.video-js .vjs-progress-holder .vjs-load-progress,
.video-js .vjs-progress-holder .vjs-load-progress div {
/*rtl:begin:ignore*/
left: 0;
right: auto;
/*rtl:end:ignore*/
}
/* Keep the video scrubber button at the end of the progress bar in RTL. */
/*rtl:ignore*/
.video-js .vjs-play-progress:before {
/*rtl:begin:ignore*/
left: auto;
right: -0.5em;
/*rtl:end:ignore*/
}
/* Prevent the volume slider from being flipped in RTL. */
/*rtl:ignore*/
.video-js .vjs-volume-level {
/*rtl:begin:ignore*/
left: 0;
right: auto;
/*rtl:end:ignore*/
}
/* Keep the volume slider handle at the end of the volume slider in RTL. */
/*rtl:ignore*/
.vjs-slider-horizontal .vjs-volume-level:before {
/*rtl:begin:ignore*/
left: auto;
right: -0.5em;
/*rtl:end:ignore*/
}

0 comments on commit 96964ed

Please sign in to comment.