feat: 本地搜索增加preload,cdn 配置 closed #859

feat: 搜索內容顯示區域變大
feat: algolia 搜索增加文章內容顯示和高亮
feat: 搜索內容增加 ... 縮略辨識
fix: algolia 第一次進入時會自動搜索
fix: mathjax 顯示不完全的 bug
This commit is contained in:
Jerry
2022-04-14 00:32:25 +08:00
Unverified
parent 3cb2120630
commit a33602e023
10 changed files with 256 additions and 168 deletions

View File

@@ -89,6 +89,7 @@ mjx-container[display],
.has-jax
overflow-x: auto
overflow-y: hidden
line-height: normal !important
.aplayer
color: $font-black

View File

@@ -11,7 +11,8 @@
color: var(--search-input-color)
.ais-Hits-list
padding-left: 24px
margin: 0
padding: 0
@extend .list-beauty
a
@@ -25,12 +26,17 @@
color: $search-keyword-highlight
font-weight: bold
.algolia-hit-item-content
margin: 0 0 8px
word-break: break-all
.ais-Pagination
margin: 16px 0 0
margin: 20px 0 0
padding: 0
text-align: center
.ais-Pagination-list
margin: 0
padding: 0
list-style: none
@@ -52,7 +58,27 @@
color: #eee
cursor: default
.ais-Pagination-item--disabled
visibility: hidden
.algolia-logo
padding-top: 2px
width: 80px
height: 30px
height: 30px
#algolia-hits
> div
overflow-y: scroll
+minWidth768()
max-height: calc(80vh - 240px)
+maxWidth768()
height: calc(100vh - 260px)
.apple
#algolia-search
#algolia-hits
> div
+maxWidth768()
height: calc(90vh - 260px)

View File

@@ -1,6 +1,6 @@
.search-dialog
position: fixed
top: 100px
top: 10%
left: 50%
z-index: 1001
display: none

View File

@@ -60,7 +60,7 @@
.search-result-list
overflow-y: auto
max-height: 210px
max-height: calc(80vh - 130px)
+maxWidth768()
padding-bottom: 40px