Skip to content
Snippets Groups Projects
Commit 6beae822 authored by Kevin Paxman's avatar Kevin Paxman
Browse files

Merge branch 'feature/ISTWCMS-7251-kpaxman-video_titles' into '1.1.x'

istwcms-7251 add video titles

See merge request !256
parents c1b323d4 1f60879a
No related branches found
No related tags found
1 merge request!256istwcms-7251 add video titles
@use '../../01-core' as *;
.uw-remote-video {
height: 0;
margin-bottom: var(--size-4);
padding-bottom: 56.25%; /* 16:9 */
padding-top: var(--size-3);
position: relative;
width: 100%;
.uw-video-wrapper & {
height: inherit;
margin-bottom: inherit;
//padding-bottom: inherit;
padding-top: inherit;
}
&__video {
height: 100%;
left: 0;
position: absolute;
top: 0;
.uw-field__item {
width: 100%;
.media-oembed-content {
height: 100%;
left: 0;
position: absolute;
top: 0;
aspect-ratio: 16 / 9;
iframe {
width: 100%;
height: 100%;
}
}
&__video--tall .uw-field__item {
aspect-ratio: 9 / 16;
}
&__view {
position: absolute;
padding-top: 0.25rem;
text-align: center;
top: 100%;
width: 100%;
a {
font-family: var(--font-systemmedium);
......
<div class="uw-remote-video">
<div class="uw-remote-video__video">
<div class="uw-remote-video__video{% if remote_video.view.type == 'YouTube short' %} uw-remote-video__video--tall{% endif %}">
{{ 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'|t }} {{ remote_video.view.url }}</a>
<a href="{{ remote_video.view.url }}">{{ 'View video "@title"'|t({'@title': remote_video.view.title}) }}</a>
{% elseif remote_video.view.type == 'YouTube playlist' %}
<a href="{{ remote_video.view.url }}">{{ 'View playlist on YouTube'|t }}</a>
<a href="{{ remote_video.view.url }}">{{ 'View playlist "@title" on YouTube'|t({'@title': remote_video.view.title}) }}</a>
{% elseif remote_video.view.type == 'YouTube short' %}
<a href="{{ remote_video.view.url }}">{{ 'View short "@title" on YouTube'|t({'@title': remote_video.view.title}) }}</a>
{% else %}
<a href="{{ remote_video.view.url }}">{{ 'View on'|t }} {{ remote_video.view.type }}</a>
<a href="{{ remote_video.view.url }}">{{ 'View "@title" on'|t({'@title': remote_video.view.title}) }} {{ remote_video.view.type }}</a>
{% endif %}
</div>
</div>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment