Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
98bd1d39
Commit
98bd1d39
authored
Aug 11, 2015
by
clrux
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9152 from edx/clrux/ux-2233-video-bumper
Updating the video bumper play button
parents
344ff8c1
f9582721
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
5 deletions
+24
-5
common/lib/xmodule/xmodule/css/video/display.scss
+20
-4
common/lib/xmodule/xmodule/js/src/video/09_poster.js
+4
-1
lms/static/images/play.png
+0
-0
No files found.
common/lib/xmodule/xmodule/css/video/display.scss
View file @
98bd1d39
...
@@ -839,12 +839,28 @@ div.video {
...
@@ -839,12 +839,28 @@ div.video {
background-size
:
15%
;
background-size
:
15%
;
}
}
.btn-play
{
.btn-play.btn-pre-roll
{
text-indent
:
-999px
;
padding
:
$baseline
;
overflow
:
hidden
;
border
:
none
;
border
:
none
;
border-radius
:
$baseline
;
background
:
$black-t2
;
box-shadow
:
none
;
box-shadow
:
none
;
line-height
:
0
;
&
:after
{
// the button class, ties to functionality, also uses an icon font
// we're overriding it here so we can use our image instead
display
:
none
;
}
img
{
height
:
(
$baseline
*
4
);
width
:
(
$baseline
*
4
);
}
&
:hover
,
&
:focus
{
background
:
$blue
;
}
}
}
}
}
}
}
...
...
common/lib/xmodule/xmodule/js/src/video/09_poster.js
View file @
98bd1d39
...
@@ -25,7 +25,10 @@ define('video/09_poster.js', [], function () {
...
@@ -25,7 +25,10 @@ define('video/09_poster.js', [], function () {
template
:
_
.
template
([
template
:
_
.
template
([
'<div class="video-pre-roll is-<%= type %> poster" '
,
'<div class="video-pre-roll is-<%= type %> poster" '
,
'style="background-image: url(<%= url %>)">'
,
'style="background-image: url(<%= url %>)">'
,
'<button class="btn-play">'
,
gettext
(
'Play video'
),
'</button>'
,
'<button class="btn-play btn-pre-roll">'
,
'<img src="/static/images/play.png" alt="">'
,
'<span class="sr">'
,
gettext
(
'Play video'
),
'</span>'
,
'</button>'
,
'</div>'
'</div>'
].
join
(
''
)),
].
join
(
''
)),
...
...
lms/static/images/play.png
0 → 100644
View file @
98bd1d39
2.9 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment