[fix] video tag (#487)
This commit is contained in:
parent
acd0ab9998
commit
c38e8abfc8
|
@ -14,8 +14,7 @@ module.exports = ctx => function(args) {
|
||||||
args.width = '100%'
|
args.width = '100%'
|
||||||
}
|
}
|
||||||
if (args.bilibili) {
|
if (args.bilibili) {
|
||||||
return `
|
return `<div class="tag-plugin video" style="aspect-ratio:${args.ratio || 16 / 9};max-width:${args.width};">
|
||||||
<div class="tag-plugin video" style="aspect-ratio:${args.ratio || 16/9};max-width:${args.width};">
|
|
||||||
<iframe src="https://player.bilibili.com/player.html?bvid=${args.bilibili}&autoplay=${args.autoplay || 'false'}" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true">
|
<iframe src="https://player.bilibili.com/player.html?bvid=${args.bilibili}&autoplay=${args.autoplay || 'false'}" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true">
|
||||||
</iframe>
|
</iframe>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
.tag-plugin.video
|
.tag-plugin.video
|
||||||
line-height: 0
|
line-height: 0
|
||||||
text-align: center
|
margin: auto
|
||||||
video, iframe
|
video, iframe
|
||||||
border-radius: $border-card
|
border-radius: $border-card
|
||||||
box-shadow: $boxshadow-card-float
|
box-shadow: $boxshadow-card-float
|
||||||
|
|
Loading…
Reference in New Issue