Skip to content

Commit

Permalink
Merge pull request #81 from mulingyuer/Typecho-1.2
Browse files Browse the repository at this point in the history
🐛 fix: 调整iframe内嵌元素样式,支持普通、视频、code类型
  • Loading branch information
mulingyuer authored Apr 21, 2024
2 parents f0b7012 + dee9b2c commit a78910f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* @package JJ
* @author 木灵鱼儿
* @version 2.3.2
* @version 2.3.3
* @link https://www.mulingyuer.com
*/
?>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
"license": "bsd 3.0",
Expand Down
8 changes: 6 additions & 2 deletions static/css/markdown/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand All @@ -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;
}
Expand Down

0 comments on commit a78910f

Please sign in to comment.