搜索页面样式

This commit is contained in:
mjsoftware 2024-10-15 18:01:47 +08:00
parent 180942f0cb
commit 005440d2fe
4 changed files with 7 additions and 8 deletions

View File

@ -5239,8 +5239,7 @@ button.swiper-pagination-bullet {
} }
/* 搜索界面 */ /* 搜索界面 */
.search { .search-page {
margin-top: 1.4rem !important;
.search-form-inner { .search-form-inner {
width: 100%; width: 100%;

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
th:with="isJournals = true, enableShare = false, baseEnableComment = false" th:with="isJournals = true, enableShare = false, baseEnableComment = false"
xmlns:th="https://www.thymeleaf.org"> xmlns:th="https://www.thymeleaf.org">
<th:block th:fragment="content"> <th:block th:fragment="content">
<div class="card card-content search"> <div class="card card-content search-page">
<div class="card-tab"> <div class="card-tab">
<div>[[${#strings.replace(title, ' - ' + site.title, '')}]]</div> <div>[[${#strings.replace(title, ' - ' + site.title, '')}]]</div>
</div> </div>
@ -70,7 +70,7 @@
var title = removeHTMLTags(hit.title) var title = removeHTMLTags(hit.title)
var description = hit.content ? removeHTMLTags(hit.content) : '' var description = hit.content ? removeHTMLTags(hit.content) : ''
searchResult.append('<div class="widget card search">\n' + searchResult.append('<div class="widget card search-page">\n' +
'<div class="card-content main">\n' + '<div class="card-content main">\n' +
'<a href="' + hit.permalink + '" ' + ' target="' + target + '">\n' + '<a href="' + hit.permalink + '" ' + ' target="' + target + '">\n' +
'<h2 class="title">' + title + '</h2>\n' + '<h2 class="title">' + title + '</h2>\n' +
@ -136,7 +136,7 @@
</div> </div>
<div id="dream-search-result"> <div id="dream-search-result">
</div> </div>
<div id="dream-search-result-empty" class="widget card search"> <div id="dream-search-result-empty" class="widget card search-page">
<div class="result-empty"> <div class="result-empty">
<div class="result-empty-tips" th:utext="${theme.config.page_config.search.search_empty_tips}"></div> <div class="result-empty-tips" th:utext="${theme.config.page_config.search.search_empty_tips}"></div>
</div> </div>

View File

@ -30,9 +30,9 @@ spec:
settingName: theme-dream2-plus-setting settingName: theme-dream2-plus-setting
configMapName: theme-dream2-plus-configMap configMapName: theme-dream2-plus-configMap
# 版本号 # 版本号
version: 1.3.1.beta1 version: 1.3.1.beta1.002
# 最低支持的 Halo 版本 # 最低支持的 Halo 版本
require: ">=2.19.0" require: ">=2.20.0"
# 许可 # 许可
license: license:
- name: "MIT" - name: "MIT"