Commit f9582721 by Chris Rodriguez

Updating video bumper play button

parent 7e1de6ef
...@@ -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;
}
} }
} }
} }
......
...@@ -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('')),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment