Updated theme

This commit is contained in:
Unisko PENG, 2023-03-29 12:02:11 +08:00
parent 9e2ab10221
commit b0c520f733
3 changed files with 9 additions and 38 deletions

View File

@ -116,27 +116,12 @@
<h3 class="menu-title">Yet another Chinese rust-lang book.</h3> <h3 class="menu-title">Yet another Chinese rust-lang book.</h3>
<div class="right-buttons"> <div class="right-buttons">
<a href="https://java.xfoss.com" title="Head First Java 中文版" aria-label="Head First Java 中文版">
☕·Head First Java 中文
</a>
<a href="https://ccna60d.xfoss.com" title="CCNA in 60 days" aria-label="CCNA 60 天">
🖧·60 天通过 CCNA
</a>
<a href="https://snippets.xfoss.com" title="代码片段与技术笔记code snippets and tech notes"
aria-label="代码片段与技术笔记code snippets and tech notes">
✨·代码片段与技术笔记
</a>
<a href="https://ts.xfoss.com" title="TypeScript 教程" aria-label="TypeScript 教程">
📜·TypeScript 教程
</a>
<a href="https://books.xfoss.com" title="捐赠donation" aria-label="捐赠donation">
🎁·捐赠donation
</a>
<a href="print.html" title="Print this book" aria-label="Print this book"> <a href="print.html" title="Print this book" aria-label="Print this book">
<i id="print-button" class="fa fa-print"></i> <i id="print-button" class="fa fa-print"></i>
</a> </a>
| <a href="https://books.xfoss.com" title="捐赠donation" aria-label="捐赠donation">
🎁·打赏DONATION
</a>
</div> </div>
</div> </div>

View File

@ -140,23 +140,6 @@
<h3 class="menu-title">{{ book_title }}</h3> <h3 class="menu-title">{{ book_title }}</h3>
<div class="right-buttons"> <div class="right-buttons">
<a href="https://java.xfoss.com" title="Head First Java 中文版" aria-label="Head First Java 中文版">
☕·Head First Java 中文
</a>
<a href="https://ccna60d.xfoss.com" title="CCNA in 60 days" aria-label="CCNA 60 天">
🖧·60 天通过 CCNA
</a>
<a href="https://snippets.xfoss.com" title="代码片段与技术笔记code snippets and tech notes"
aria-label="代码片段与技术笔记code snippets and tech notes">
✨·代码片段与技术笔记
</a>
<a href="https://ts.xfoss.com" title="TypeScript 教程" aria-label="TypeScript 教程">
📜·TypeScript 教程
</a>
<a href="https://books.xfoss.com" title="捐赠donation" aria-label="捐赠donation">
🎁·捐赠donation
</a>
{{#if print_enable}} {{#if print_enable}}
<a href="{{ path_to_root }}print.html" title="Print this book" aria-label="Print this book"> <a href="{{ path_to_root }}print.html" title="Print this book" aria-label="Print this book">
<i id="print-button" class="fa fa-print"></i> <i id="print-button" class="fa fa-print"></i>
@ -172,7 +155,9 @@
<i id="git-edit-button" class="fa fa-edit"></i> <i id="git-edit-button" class="fa fa-edit"></i>
</a> </a>
{{/if}} {{/if}}
| <a href="https://books.xfoss.com" title="捐赠donation" aria-label="捐赠donation">
🎁·打赏DONATION
</a>
</div> </div>
</div> </div>

View File

@ -7,16 +7,17 @@
@media only screen and (min-width:1440px) { @media only screen and (min-width:1440px) {
main { main {
position: relative; position: relative;
margin-left: 80px !important;
} }
.sidetoc { .sidetoc {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
left: calc(100% + (var(--content-max-width))/4 - 140px); left: calc(100% + (var(--content-max-width))/4 - 160px);
position: absolute; position: absolute;
} }
.pagetoc { .pagetoc {
position: fixed; position: fixed;
width: 280px; width: 320px;
height: calc(100vh - var(--menu-bar-height) - 0.67em * 4); height: calc(100vh - var(--menu-bar-height) - 0.67em * 4);
overflow: auto; overflow: auto;
} }