fix(theme): 修复部分交互与样式问题
这个提交包含在:
@@ -49,6 +49,7 @@
|
|||||||
z-index: 99;
|
z-index: 99;
|
||||||
top: 35px;
|
top: 35px;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
display: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
@@ -66,6 +67,17 @@
|
|||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.open {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.button {
|
||||||
|
background-color: transparent;
|
||||||
|
color: var(--foreground);
|
||||||
|
margin: 0 0 0 .5rem;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -258,21 +258,4 @@ hr {
|
|||||||
border: none;
|
border: none;
|
||||||
background: var(--foreground);
|
background: var(--foreground);
|
||||||
height: 1px;
|
height: 1px;
|
||||||
}
|
|
||||||
|
|
||||||
.hidden {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#theme-toggle {
|
|
||||||
background-color: transparent;
|
|
||||||
color: var(--foreground);
|
|
||||||
margin: 0 0 0 .5rem;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
#search-button {
|
|
||||||
background-color: transparent;
|
|
||||||
color: var(--foreground);
|
|
||||||
margin: 0 0 0 .5rem;
|
|
||||||
padding: 0;
|
|
||||||
}
|
}
|
||||||
@@ -165,4 +165,9 @@
|
|||||||
.post-tag {
|
.post-tag {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.comment-wrap {
|
||||||
|
position: relative;
|
||||||
|
z-index: 2;
|
||||||
}
|
}
|
||||||
@@ -7,8 +7,8 @@
|
|||||||
</a>
|
</a>
|
||||||
<div class="dividing"></div>
|
<div class="dividing"></div>
|
||||||
<button
|
<button
|
||||||
id="search-button"
|
|
||||||
type="button"
|
type="button"
|
||||||
|
class="button"
|
||||||
th:if="${pluginFinder.available('PluginSearchWidget')}"
|
th:if="${pluginFinder.available('PluginSearchWidget')}"
|
||||||
onclick="SearchWidget.open()"
|
onclick="SearchWidget.open()"
|
||||||
>
|
>
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" width="1.5rem" height="1.5rem" viewBox="0 0 24 24"><path fill="currentColor" d="M6 2h8v2H6zM4 6V4h2v2zm0 8H2V6h2zm2 2H4v-2h2zm8 0v2H6v-2zm2-2h-2v2h2v2h2v2h2v2h2v-2h-2v-2h-2v-2h-2zm0-8h2v8h-2zm0 0V4h-2v2z"/></svg>
|
<svg xmlns="http://www.w3.org/2000/svg" width="1.5rem" height="1.5rem" viewBox="0 0 24 24"><path fill="currentColor" d="M6 2h8v2H6zM4 6V4h2v2zm0 8H2V6h2zm2 2H4v-2h2zm8 0v2H6v-2zm2-2h-2v2h2v2h2v2h2v2h2v-2h-2v-2h-2v-2h-2zm0-8h2v8h-2zm0 0V4h-2v2z"/></svg>
|
||||||
</th:block>
|
</th:block>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" x-data="themeMode()" @click="handleToggleThemeMode()">
|
<button type="button" class="button" x-data="themeMode()" @click="handleToggleThemeMode()">
|
||||||
<th:block th:unless="${theme.config.basic.pixel_style}">
|
<th:block th:unless="${theme.config.basic.pixel_style}">
|
||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
<ul
|
<ul
|
||||||
th:if="${not #lists.isEmpty(menuItem.children)}"
|
th:if="${not #lists.isEmpty(menuItem.children)}"
|
||||||
class="menu__sub-inner"
|
class="menu__sub-inner"
|
||||||
:class="{'hidden': !isOpen}"
|
:class="{'open': isOpen}"
|
||||||
>
|
>
|
||||||
<li th:each="childMenuItem : ${menuItem.children}">
|
<li th:each="childMenuItem : ${menuItem.children}">
|
||||||
<a
|
<a
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
th:replace="~{modules/layout :: html(header = null, content = ~{::content}, footer = null)}"
|
th:replace="~{modules/layout :: html(header = null, content = ~{::content}, footer = null)}"
|
||||||
>
|
>
|
||||||
<th:block th:fragment="content">
|
<th:block th:fragment="content">
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/glightbox/dist/css/glightbox.min.css" />
|
<link rel="stylesheet" href="https://gcore.jsdelivr.net/npm/glightbox/dist/css/glightbox.min.css" />
|
||||||
<script src="https://cdn.jsdelivr.net/gh/mcstudios/glightbox/dist/js/glightbox.min.js"></script>
|
<script src="https://gcore.jsdelivr.net/gh/mcstudios/glightbox/dist/js/glightbox.min.js"></script>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="moments" x-data="upvote('moment','moment.halo.run','moments')">
|
<div class="moments" x-data="upvote('moment','moment.halo.run','moments')">
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
<div th:utext="${post.content.content}">Post Content</div>
|
<div th:utext="${post.content.content}">Post Content</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div th:if="${haloCommentEnabled}">
|
<div class="comment-wrap" th:if="${haloCommentEnabled}">
|
||||||
<h2>评论</h2>
|
<h2>评论</h2>
|
||||||
<halo:comment
|
<halo:comment
|
||||||
group="content.halo.run"
|
group="content.halo.run"
|
||||||
|
|||||||
在新议题中引用
屏蔽一个用户