LIL-634 Маленький размер фрейма Вимео

remotes/origin/hotfix/LIL-661
gzbender 8 years ago
parent da1966a111
commit ceea053465
  1. 4
      apps/content/templates/content/blocks/video.html
  2. 8
      web/src/sass/_common.sass

@ -3,13 +3,13 @@
<div class="content-block title">
{{ content.title }}
</div>
<div class="iframe__container">
<div class="content-block__video iframe__container">
{% if 'youtube.com' in content.url or 'youtu.be' in content.url %}
<iframe src="https://www.youtube.com/embed/{{ content.video_index }}" frameborder="0" allow="autoplay; encrypted-media"
allowfullscreen></iframe>
{% elif 'vimeo.com' in content.url %}
<iframe src="https://player.vimeo.com/video/{{ content.video_index }}" frameborder="0" webkitallowfullscreen
mozallowfullscreen allowfullscreen>
mozallowfullscreen allowfullscree>
</iframe>
{% endif %}
</div>

@ -4097,6 +4097,12 @@ a
&.pic
position: relative
width: 100%
&__video iframe
height: 360px;
width: 640px;
max-width: 100%;
max-height: 60%;
.banner
height: 140px
@ -4167,3 +4173,5 @@ a
border-left: 3px solid transparent
border-radius: 50%
animation: loading .6s infinite linear
.iframe__container

Loading…
Cancel
Save