Skip to content
This repository was archived by the owner on May 18, 2023. It is now read-only.

Commit 23819e3

Browse files
committed
Make video responsive, close #21
1 parent 0e08a7a commit 23819e3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

_posts/2015-03-19-checkers-thought-0.markdown

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ __Прежде чем что-то сказать подумайте, сколь
4141

4242

4343
Лаконичное выражение очень схожей мысли, [9 минута повествования](https://www.youtube.com/watch?v=W5f61PfELo0&feature=youtu.be&t=9m11s):
44-
<iframe width="560" height="315" src="https://www.youtube.com/embed/W5f61PfELo0" frameborder="0" allowfullscreen></iframe>
44+
45+
<div class='embed-container'><iframe src='https://player.vimeo.com/video/149978261' frameborder='0' webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe></div>
4546

4647
Надеюсь у меня получилось донести до вас свою мысль.
4748
![ezhik]({{ site.url }}/downloads/ezhik.jpg)

_sass/_base.scss

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ ul, ol, dl, figure,
3434
margin-bottom: $spacing-unit / 2;
3535
}
3636

37+
.embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
38+
3739
.tag-list {
3840
display: block;
3941
padding-bottom: 30px;

0 commit comments

Comments
 (0)