diff options
author | Alexandros <onedrawingperday@users.noreply.github.com> | 2018-05-23 22:22:25 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-05-23 21:22:25 +0200 |
commit | 6d69dac9da5dfb7cd8a850602629f8a7b7becd82 (patch) | |
tree | 602e6233446885e7ef35d123017ac9903f5aaaad /tpl | |
parent | 9ad46a20357a7e28b405feef5c8f7d4501186da6 (diff) |
Fix youtube_simple thumb scaling
Fixes #4761
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/tplimpl/embedded/templates/shortcodes/__h_simple_assets.html | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tpl/tplimpl/embedded/templates/shortcodes/__h_simple_assets.html b/tpl/tplimpl/embedded/templates/shortcodes/__h_simple_assets.html index dddefd9ae..1884f7ea2 100644 --- a/tpl/tplimpl/embedded/templates/shortcodes/__h_simple_assets.html +++ b/tpl/tplimpl/embedded/templates/shortcodes/__h_simple_assets.html @@ -5,15 +5,17 @@ {{ .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%; - height:auto; + max-width: 100%; + height: auto; color: #000; } .__h_youtube .play { |