重写目录样式;适配新域名
This commit is contained in:
@@ -77,7 +77,7 @@
|
||||
|
||||
<style th:if="${not #strings.isEmpty(theme.config.custom.code_css)}" th:utext="${theme.config.custom.code_css}"></style>
|
||||
<style>:root { --toc-color: [(${theme.config.post.tocColor})]; } .wp-block-button__link { color: #fff; background-color: #32373c; border-radius: 9999px; text-decoration: none; padding: .6em 1.3em; } .wp-block-file__button { background: #32373c; color: #fff; text-decoration: none; }</style>
|
||||
<style th:if="${!theme.config.post.toc.mobile_open}">@media screen and (max-width: 768px) { .listree-box { display: none !important; } }</style>
|
||||
<style th:if="${!theme.config.post.toc.mobile_open}">@media screen and (max-width: 768px) { .listree-box, .toc_nav { display: none !important; } }</style>
|
||||
<style th:if="${not #strings.isEmpty(theme.config.base_set.custom_fonts)}">@font-face { font-family: "HarmonyOS_M"; src: url("[(${theme.config.base_set.custom_fonts})]") format("truetype"); font-display: swap; }</style>
|
||||
|
||||
<th:block th:replace="~{modules/variables/cst-script-parameter}" />
|
||||
|
||||
@@ -102,7 +102,7 @@ function setBanner(lunarInfo) {
|
||||
// 初始化逻辑(优化版)
|
||||
// --------------------------
|
||||
(function() {
|
||||
const apiUrl = 'https://api.anian.cc/lunar/api';
|
||||
const apiUrl = 'https://api.anian.net/lunar/api';
|
||||
const cookieName = 'anian_lunar_info';
|
||||
|
||||
// 1. 优先尝试从 Cookie 读取
|
||||
|
||||
@@ -22,6 +22,12 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="toc_nav top_tool icon_color" aria-hidden="true">
|
||||
<a class="listree-btn" title="展开目录" aria-label="展开目录" aria-expanded="false">
|
||||
<i class="ri-menu-line"></i>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<!-- <div class="m_top_nav top_tool is_mobile">
|
||||
<a class="top_nav_btn" uk-toggle="target: #m_offcanvas"><i class="ri-menu-2-line"></i></a>
|
||||
<div id="m_offcanvas" class="m_offcanvas uk-animation-fast"
|
||||
@@ -94,8 +100,8 @@
|
||||
</div>
|
||||
|
||||
<!-- 回到顶部 -->
|
||||
<div class="is_mobile">
|
||||
<div class="is_mobile top_tool">
|
||||
<a class="tool_top" href="#page" uk-scroll="" data-pjax-state="">
|
||||
<i class="ri-skip-up-line"></i></a>
|
||||
<i class="ri-skip-up-line tool_top_icon"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -32,8 +32,7 @@
|
||||
|
||||
</div>
|
||||
|
||||
<div class="listree-box" style="display: none;">
|
||||
<h3 class="listree-titles"></h3>
|
||||
<div class="listree-box" aria-hidden="true">
|
||||
<ul id="listree-ol" style="display:none;">
|
||||
</ul>
|
||||
</div>
|
||||
@@ -68,4 +67,4 @@
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user