feat: add custom CSS for MinerU demo page layout and iframe styling

This commit is contained in:
myhloli
2026-06-05 00:34:19 +08:00
parent 430b230ceb
commit 02203f6fab
4 changed files with 48 additions and 2 deletions
+8 -1
View File
@@ -1 +1,8 @@
<iframe src="https://opendatalab-mineru.ms.show" style="min-height: calc(-40px + 100vh); width: 100%; flex-grow: 1; border: medium; overflow: auto; height: 1746px;"></iframe>
---
hide:
- toc
---
<div class="mineru-demo-page">
<iframe class="mineru-demo-iframe" src="https://opendatalab-mineru.ms.show" title="MinerU online demo"></iframe>
</div>
+29
View File
@@ -0,0 +1,29 @@
/* demo 页面嵌入 Gradio,需要隐藏右侧目录列并释放主内容宽度。 */
.md-main__inner:has(.mineru-demo-page) {
max-width: 100%;
}
.md-main__inner:has(.mineru-demo-page) .md-sidebar--secondary {
display: none;
}
.md-main__inner:has(.mineru-demo-page) .md-content {
max-width: none;
}
.md-main__inner:has(.mineru-demo-page) .md-content__inner {
margin-right: 0;
}
.mineru-demo-page {
width: 100%;
}
.mineru-demo-iframe {
display: block;
width: 100%;
min-height: calc(-40px + 100vh);
height: 1746px;
border: 0;
overflow: auto;
}
+8 -1
View File
@@ -1 +1,8 @@
<iframe src="https://opendatalab-mineru.ms.show" style="min-height: calc(-40px + 100vh); width: 100%; flex-grow: 1; border: medium; overflow: auto; height: 1746px;"></iframe>
---
hide:
- toc
---
<div class="mineru-demo-page">
<iframe class="mineru-demo-iframe" src="https://opendatalab-mineru.ms.show" title="MinerU 在线演示"></iframe>
</div>
+3
View File
@@ -71,6 +71,9 @@ extra:
copyright: © 2024 - 2025 MinerU. All Rights Reserved.
extra_css:
- stylesheets/extra.css
nav:
- Home:
- "MinerU": index.md