diff --git a/scripts/tags/lib/video.js b/scripts/tags/lib/video.js index 9be6d7f..ef2e045 100644 --- a/scripts/tags/lib/video.js +++ b/scripts/tags/lib/video.js @@ -8,14 +8,13 @@ 'use strict'; -module.exports = ctx => function(args) { +module.exports = ctx => function (args) { args = ctx.args.map(args, ['type', 'bilibili', 'ratio', 'width', 'autoplay'], ['src']) if (args.width == null) { args.width = '100%' } if (args.bilibili) { - return ` -
+ return `
diff --git a/source/css/_components/tag-plugins/media.styl b/source/css/_components/tag-plugins/media.styl index d6acae8..d363036 100644 --- a/source/css/_components/tag-plugins/media.styl +++ b/source/css/_components/tag-plugins/media.styl @@ -1,6 +1,6 @@ .tag-plugin.video line-height: 0 - text-align: center + margin: auto video, iframe border-radius: $border-card box-shadow: $boxshadow-card-float