Maintain aspect ratio even when JS is disabled

このコミットが含まれているのは:
Omar Roth 2018-09-15 12:15:39 -05:00
コミット c74cc1123f
2個のファイルの変更14行の追加1行の削除

ファイルの表示

@ -201,3 +201,16 @@ div {
background-size: cover; background-size: cover;
object-fit: cover; object-fit: cover;
} }
#player {
position: absolute;
left: 0;
top: 0;
height: 100%;
}
#player-container {
position: relative;
padding-bottom: 56.25%;
height: 0;
}

ファイルの表示

@ -26,7 +26,7 @@
<title><%= HTML.escape(video.title) %> - Invidious</title> <title><%= HTML.escape(video.title) %> - Invidious</title>
<% end %> <% end %>
<div class="h-box"> <div id="player-container" class="h-box">
<%= rendered "components/player" %> <%= rendered "components/player" %>
</div> </div>