refactor(article): add default padding (#166)

* refactor(article): add default padding

closes https://github.com/CaiJimmy/hugo-theme-stack/issues/165

* fix(article): video iframe margin

* fix: remove youtube iframe border
This commit is contained in:
Jimmy Cai
2021-03-07 12:51:47 +01:00
committed by GitHub
parent 38eb9c4eaf
commit d5268a41e0
4 changed files with 46 additions and 22 deletions
+3 -3
View File
@@ -1,10 +1,10 @@
{{ $vid := .Get 0 }}
<div style="position: relative; width: 100%; height: 0; padding-bottom: 56.25%;">
<div class="video-wrapper">
<iframe src="http://v.qq.com/txp/iframe/player.html?vid={{ $vid }}&auto=0"
scrolling="no"
frameborder="no"
framespacing="0"
allowfullscreen="true"
style="position: absolute; width: 100%; height: 100%;">
allowfullscreen="true"
>
</iframe>
</div>