Commit f4e11e5f authored by Eric Bremner's avatar Eric Bremner

Updating remote video

parent 925595fc
......@@ -4664,22 +4664,21 @@ fieldset,
.readmore-link__icon path {
fill: #4e4e4e; }
.uw-remote-video__wrapper {
margin-left: auto;
margin-right: auto;
text-align: center; }
.uw-remote-video .uw-field__item {
height: 0;
padding-bottom: 56.25%;
/* 16:9 */
position: relative; }
.uw-remote-video .uw-field__item .media-oembed-content {
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 100%; }
.uw-remote-video {
width: 100%; }
.uw-remote-video__video {
text-align: center; }
.uw-remote-video__video iframe {
margin-left: auto;
margin-right: auto; }
.uw-remote-video__view {
margin-left: auto;
margin-right: auto;
text-align: center; }
.uw-remote-video__view a {
text-decoration: underline; }
.uw-remote-video__view a:hover {
text-decoration: none; }
picture {
width: 100%; }
......
.uw-remote-video {
&__wrapper {
width: 100%;
&__video {
text-align: center;
iframe {
margin-left: auto;
margin-right: auto;
}
}
&__view {
margin-left: auto;
margin-right: auto;
text-align: center;
}
.uw-field__item {
height: 0;
padding-bottom: 56.25%; /* 16:9 */
position: relative;
a {
text-decoration: underline;
.media-oembed-content {
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 100%;
&:hover {
text-decoration: none;
}
}
}
}
<div class="uw-remote-video">
<div class="uw-remote-video__wrapper {{ width }}">
{% block content %}
{% endblock %}
<div class="uw-remote-video__video">
{{ remote_video.video }}
</div>
<div class="uw-remote-video__view">
{% if remote_video.view.type == 'Generic' %}
<a href="{{ remote_video.view.url }}">View video at {{ remote_video.view.url }}</a>
{% else %}
<a href="{{ remote_video.view.url }}">View on {{ remote_video.view.type }}</a>
{% endif %}
</div>
</div>
remote_video:
video: '<iframe width="560" height="315" src="https://www.youtube.com/embed/ZZQXj7K-_1M" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'
view:
type: YouTube
url: https://www.youtube.com/watch?v=ZZQXj7K-_1M&pp=QAA%3D
\ No newline at end of file
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