From e89c08d84dcaff8673aa0e309bab2a1a0a82d7a6 Mon Sep 17 00:00:00 2001 From: muhammad-ammar Date: Fri, 26 May 2017 18:37:14 +0500 Subject: [PATCH] show play button overley EDUCATOR-211 --- .../xmodule/xmodule/css/video/display.scss | 36 +++++++---- .../xmodule/xmodule/js/fixtures/video.html | 2 +- .../xmodule/js/fixtures/video_all.html | 4 +- .../xmodule/js/fixtures/video_hls.html | 2 +- .../xmodule/js/fixtures/video_html5.html | 2 +- .../js/fixtures/video_no_captions.html | 2 +- .../js/fixtures/video_with_bumper.html | 2 +- .../js/fixtures/video_yt_multiple.html | 2 +- .../js/spec/video/video_player_spec.js | 62 ++++++++++++++++--- .../xmodule/js/src/video/02_html5_video.js | 15 ++++- lms/templates/video.html | 2 +- 11 files changed, 99 insertions(+), 32 deletions(-) diff --git a/common/lib/xmodule/xmodule/css/video/display.scss b/common/lib/xmodule/xmodule/css/video/display.scss index ec0352401e..8f0c205160 100644 --- a/common/lib/xmodule/xmodule/css/video/display.scss +++ b/common/lib/xmodule/xmodule/css/video/display.scss @@ -149,6 +149,16 @@ $cool-dark: rgb(79, 89, 93); // UXPL cool dark background-color: black; position: relative; + &:hover { + .btn-play { + color: $uxpl-blue-base; + } + + .btn-play:after { + background: $white; + } + } + .video-player-pre, .video-player-post { height: 50px; @@ -182,21 +192,23 @@ $cool-dark: rgb(79, 89, 93); // UXPL cool dark @include transform(translate(-50%, -50%)); position: absolute; z-index: 1; - background: rgba(0, 0, 0, 0.7); - top: 50%; + top: 46%; left: 50%; - padding: 30px; - border-radius: 25%; + font-size: 4em; + cursor: pointer; - &:after{ + &:after { + background: $white; + position: absolute; + width: 50%; + height: 50%; content: ''; - display: block; - width: 0px; - height: 0px; - border-style: solid; - border-width: 30px 0 30px 50px; - border-color: transparent transparent transparent $white; - position: relative; + left: 0; + top: 0; + bottom: 0; + right: 0; + margin: auto; + z-index: -1; } } diff --git a/common/lib/xmodule/xmodule/js/fixtures/video.html b/common/lib/xmodule/xmodule/js/fixtures/video.html index fa9de67d6a..562aa82a3e 100644 --- a/common/lib/xmodule/xmodule/js/fixtures/video.html +++ b/common/lib/xmodule/xmodule/js/fixtures/video.html @@ -11,7 +11,7 @@
- +
diff --git a/common/lib/xmodule/xmodule/js/fixtures/video_all.html b/common/lib/xmodule/xmodule/js/fixtures/video_all.html index d5d50b5709..eec92febe9 100644 --- a/common/lib/xmodule/xmodule/js/fixtures/video_all.html +++ b/common/lib/xmodule/xmodule/js/fixtures/video_all.html @@ -11,7 +11,7 @@
- +
@@ -29,7 +29,7 @@
- +

Downloads and transcripts

diff --git a/common/lib/xmodule/xmodule/js/fixtures/video_hls.html b/common/lib/xmodule/xmodule/js/fixtures/video_hls.html index e50a49a608..f0742ca8ee 100644 --- a/common/lib/xmodule/xmodule/js/fixtures/video_hls.html +++ b/common/lib/xmodule/xmodule/js/fixtures/video_hls.html @@ -11,7 +11,7 @@
- +