Updated theme

This commit is contained in:
Unisko PENG, 2023-03-29 13:36:32 +08:00
parent 92f8cea650
commit ef961d21ce
3 changed files with 11 additions and 44 deletions

View File

@ -113,32 +113,15 @@
</button>
</div>
<h1 class="menu-title">Yet another Chinese TypeScript tutorial.</h1>
<h3 class="menu-title">Yet another Chinese TypeScript tutorial.</h3>
<div class="right-buttons">
<a href="https://rust-lang.xfoss.com" title="Yet another Chinese rust-lang book"
aria-label="Yet another Chinese rust-lang book">
·Rust 官方书中文
</a>
<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://books.xfoss.com" title="捐赠donation" aria-label="捐赠donation">
🎁·捐赠donation
</a>
<a href="print.html" title="Print this book" aria-label="Print this book">
<i id="print-button" class="fa fa-print"></i>
</a>
| <a href="https://books.xfoss.com" title="捐赠donation" aria-label="捐赠donation">
🎁·打赏DONATION
</a>
</div>
</div>

View File

@ -137,28 +137,9 @@
{{/if}}
</div>
<h1 class="menu-title">{{ book_title }}</h1>
<h3 class="menu-title">{{ book_title }}</h3>
<div class="right-buttons">
<a href="https://rust-lang.xfoss.com" title="Yet another Chinese rust-lang book"
aria-label="Yet another Chinese rust-lang book">
·Rust 官方书中文
</a>
<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://books.xfoss.com" title="捐赠donation" aria-label="捐赠donation">
🎁·捐赠donation
</a>
{{#if print_enable}}
<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>
@ -174,7 +155,9 @@
<i id="git-edit-button" class="fa fa-edit"></i>
</a>
{{/if}}
| <a href="https://books.xfoss.com" title="捐赠donation" aria-label="捐赠donation">
🎁·打赏DONATION
</a>
</div>
</div>

View File

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