Skip to content

Commit becdd78

Browse files
renzonrenzon
authored andcommitted
Modified video CSS to small devices
Related to #182
1 parent df57653 commit becdd78

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

pythonpro/core/static/css/default.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,7 @@
5151

5252
.rights {
5353
background-color: #82b641;
54-
}
54+
}
55+
56+
.embed-container { position: relative; padding-bottom: 56.25%; overflow: hidden; max-width: 100%; height: auto; }
57+
.embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

pythonpro/core/templates/core/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<nav class="navbar navbar-dark bg-dark justify-content-between">
1616
<a class="navbar-brand" href="/">Python Pro</a>
1717
<form class="form-inline">
18-
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Entrar</button>
18+
<button class="btn btn-outline-light my-2 my-sm-0" type="submit">Entrar</button>
1919
</form>
2020
</nav>
2121
{% block body %}

pythonpro/core/templates/core/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ <h5 class="card-title text-center">Renzo Nuccitelli</h5>
111111
<div class="row">
112112
<div class="col">
113113
<h1 class="text-center mt-4 mb-3">Opinião de ex-aluno</h1>
114-
<div style="margin: auto auto 0 0; text-align: center">
114+
<div class="embed-container">
115115
<iframe width="560" height="315" src="https://www.youtube.com/embed/3g0g4atd858" frameborder="0"
116116
allowfullscreen></iframe>
117117
</div>

pythonpro/promos/templates/promos/video_detail.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
<div class="row">
77
<div class="col text-center">
88
<h1>{{ video.title }}</h1>
9-
<iframe src="https://player.vimeo.com/video/{{ video.vimeo_id }}" width="640" height="360" frameborder="0"
10-
webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
9+
<div class="embed-container">
10+
<iframe src="https://player.vimeo.com/video/{{ video.vimeo_id }}" width="640" height="360" frameborder="0"
11+
webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
12+
</div>
1113
</div>
1214
</div>
1315
{% include 'core/leads_form.html' only %}

0 commit comments

Comments
 (0)