Fix youtube_simple thumb scaling

Fixes #4761
This commit is contained in:
Alexandros 2018-05-23 22:22:25 +03:00 committed by Bjørn Erik Pedersen
parent 9ad46a2035
commit 6d69dac9da

View file

@ -5,14 +5,16 @@
{{ .Page.Scratch.Set "__h_simple_css" true }}
<style>
.__h_youtube {
position: relative;padding-bottom: 56.23%;height: 0;
position: relative;
padding-bottom: 56.23%;
height: 0;
overflow: hidden;
max-width: 100%;
background: #000;
margin: 5px;
}
.__h_youtube img {
min-width:100%;
max-width: 100%;
height: auto;
color: #000;
}