From dee9b2c17ae27bd0532c0f615c3a005d3ee5b6cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=A0=C3=A7mulingyuer?= <你的1321968423@qq.com> Date: Sun, 21 Apr 2024 23:55:33 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20fix:=20=E8=B0=83=E6=95=B4iframe?= =?UTF-8?q?=E5=86=85=E5=B5=8C=E5=85=83=E7=B4=A0=E6=A0=B7=E5=BC=8F=EF=BC=8C?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=99=AE=E9=80=9A=E3=80=81=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E3=80=81code=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.php | 2 +- package.json | 2 +- static/css/markdown/base.css | 8 ++++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index 9dd0f21..5faed40 100644 --- a/index.php +++ b/index.php @@ -6,7 +6,7 @@ * * @package JJ * @author 木灵鱼儿 - * @version 2.3.2 + * @version 2.3.3 * @link https://www.mulingyuer.com */ ?> diff --git a/package.json b/package.json index 06a194c..a2ee162 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "webpack-multiple-entry", - "version": "2.3.2", + "version": "2.3.3", "repository": "https://github.com/mulingyuer/Typecho_Theme_JJ.git", "author": "mulingyuer <1321968423@qq.com>", "license": "bsd 3.0", diff --git a/static/css/markdown/base.css b/static/css/markdown/base.css index 88ee840..a68a305 100644 --- a/static/css/markdown/base.css +++ b/static/css/markdown/base.css @@ -107,10 +107,13 @@ pre > code.code-block-extension-code-show-num { .markdown-body iframe { display: block; width: 100%; + margin: 15px 0; +} +.markdown-body iframe[data-type="video"], +.markdown-body iframe[data-type="code"] { height: 430px; border-radius: 8px; border: 0.5px solid rgba(128, 128, 128, 0.4); - margin: 15px 0; } .markdown-body input[type="radio"], .markdown-body input[type="checkbox"], @@ -119,7 +122,8 @@ pre > code.code-block-extension-code-show-num { vertical-align: baseline; } @media screen and (max-width: 600px) { - .markdown-body iframe { + .markdown-body iframe[data-type="video"], + .markdown-body iframe[data-type="code"] { height: 110vw; min-height: 390px; }