Skip to content

Commit 98a3483

Browse files
committed
Tweak layout break to view PV in mobile device
1 parent cf7b07e commit 98a3483

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

app/assets/stylesheets/custom.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@
33

44
// Customized by YassLab
55

6+
.home-point-video {
7+
position: relative;
8+
margin-bottom: 30px;
9+
padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
10+
padding-top: 25px;
11+
}
12+
13+
.home-point-video iframe {
14+
position: absolute;
15+
top: 0;
16+
left: 3.5%;
17+
width: 95% !important;
18+
height: 100% !important;
19+
}
20+
21+
622
.cursor-default{
723
cursor: default !important;
824
}

app/views/custom_widget/show.html.erb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@
3030
<li><a href="http://berd.benesse.jp/special/manabi/manabi_10.php">「自由」というルールを共有し、プログラミングの学習機会を提供する</a> (まなびのかたち)</li>
3131
<li><a href="http://ict-enews.net/zoomin/17coderdojo/">子どものための無料プログラミング道場 CoderDojo をはじめてみませんか</a> (ICT教育ニュース)</li>
3232
</ul>
33-
34-
<iframe width="560" height="315" src="https://www.youtube.com/embed/gLDue2xb1j8?rel=0" frameborder="0" allowfullscreen></iframe>
33+
<div class="home-point-video">
34+
<iframe width="560" height="315" src="https://www.youtube.com/embed/gLDue2xb1j8?rel=0" frameborder="0" allowfullscreen></iframe>
35+
</div>
3536
<p><a href='http://www.coderdojo-kashiwa.com/'>CoderDojo Kashiwa</a> が制作した動画です。<br />道場の雰囲気が伝われば幸いです ;)</p>
3637

3738
<ol style="list-style: none; margin-top: 30px;">

0 commit comments

Comments
 (0)