ref: 6d69dac9da5dfb7cd8a850602629f8a7b7becd82
parent: 9ad46a20357a7e28b405feef5c8f7d4501186da6
author: Alexandros <[email protected]>
date: Wed May 23 18:22:25 EDT 2018
Fix youtube_simple thumb scaling Fixes #4761
--- a/tpl/tplimpl/embedded/templates/shortcodes/__h_simple_assets.html
+++ b/tpl/tplimpl/embedded/templates/shortcodes/__h_simple_assets.html
@@ -5,7 +5,9 @@
{{ .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;
@@ -12,8 +14,8 @@
margin: 5px;
}
.__h_youtube img {
- min-width:100%;
- height:auto;
+ max-width: 100%;
+ height: auto;
color: #000;
}
.__h_youtube .play {