From 8b30e0fed599ced106a8f0b50a312a00d6fc0820 Mon Sep 17 00:00:00 2001 From: cxykevin Date: Sat, 10 Aug 2024 20:47:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=95=8C=E9=9D=A2=E5=B8=83?= =?UTF-8?q?=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- theme/css/page.css | 56 +++++++++++++++++++++++++++++++++++++++------- theme/index.hbs | 33 ++++++++++++++++++--------- 2 files changed, 70 insertions(+), 19 deletions(-) diff --git a/theme/css/page.css b/theme/css/page.css index 9782d02..e99d7d5 100644 --- a/theme/css/page.css +++ b/theme/css/page.css @@ -32,17 +32,13 @@ a:hover:after { } h1 { - margin-top: 0px; - margin-bottom: 20px; + margin-top: 0px !important; + margin-bottom: 20px !important; } h2 { - margin-top: 0px; - margin-bottom: 15px; -} - -.preset { - min-height: 1rem !important; + margin-top: 30px !important; + margin-bottom: 15px !important; } .container { @@ -65,4 +61,48 @@ h2 { .menu-link:hover:after { width: calc(100% - 20px); left: 20px; +} + +.topbar { + position: fixed !important; + top: 0px; + right: 0px; + left: 0px; +} + +.mdui-prose { + margin-left: 50px; + margin-right: 50px; + max-width: 78%; + margin: auto; + left: 0; + right: 0; +} + +.toc-drawer { + position: fixed !important; + margin-left: 0px !important; + margin-right: 0px !important; +} + +.bottombar { + height: 10em !important; + margin-top: 2em !important; + margin-left: 2em !important; + margin-right: 2em !important; + display: flex !important; +} + +.prevpage { + display: flex !important; + font-size: 1.2em !important; + margin-top: 10px !important; + margin-left: 4px !important; +} + +.nextpage { + display: flex !important; + font-size: 1.2em !important; + margin-top: 10px !important; + margin-right: 4px !important; } \ No newline at end of file diff --git a/theme/index.hbs b/theme/index.hbs index c8fa9c7..a003436 100755 --- a/theme/index.hbs +++ b/theme/index.hbs @@ -56,13 +56,19 @@ - - - + + + 实验环境 {{ book_title }}
+ {{#previous}} + 上一章 + {{/previous}} + {{#next}} + 下一章 + {{/next}} {{#if git_repository_url}} {{/if}} @@ -73,9 +79,14 @@ {{/if}}
- + + + + {{#if is_print }} + {{#toc}}{{/toc}} + {{/if}}