mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-12 22:17:06 +08:00
feat: 本地搜索,點擊文章內容也會跳轉到相應頁面 feat: 添加 docsearch feat: 標籤頁支持配置 orderby 和 order 參數 feat: card_tags 可配置 orderby 和 order 參數 fix: 修復本地搜索,輸入 ?d 報錯的 bug closed #1192 fix: 修復 waline 在 pjax 模式下 css 沒有加載的 bug fix: 修復 artalk 最新評論無法加載 closed #1191 fix: 修復 card_author 和 card_announcement 設為 false 後,aside 卡片沒有間距的 bug closed #1174 improvement: getCSS 重構
94 lines
1.8 KiB
Stylus
94 lines
1.8 KiB
Stylus
#algolia-search
|
|
.search-dialog
|
|
.ais-SearchBox
|
|
input
|
|
padding: 5px 14px
|
|
width: 100%
|
|
outline: none
|
|
border: 2px solid $search-color
|
|
border-radius: 40px
|
|
background: var(--search-bg)
|
|
color: var(--search-input-color)
|
|
|
|
.ais-Hits-list
|
|
margin: 0
|
|
padding: 0
|
|
@extend .list-beauty
|
|
|
|
a
|
|
color: var(--search-a-color)
|
|
|
|
&:hover
|
|
color: $search-color
|
|
|
|
mark
|
|
background: transparent
|
|
color: $search-keyword-highlight
|
|
font-weight: bold
|
|
|
|
.algolia-hit-item-content
|
|
margin: 0 0 8px
|
|
word-break: break-word
|
|
|
|
.ais-Pagination
|
|
margin: 20px 0 0
|
|
padding: 0
|
|
text-align: center
|
|
|
|
.ais-Pagination-list
|
|
margin: 0
|
|
padding: 0
|
|
list-style: none
|
|
|
|
.ais-Pagination-item
|
|
display: inline
|
|
margin: 0 4px
|
|
padding: 0
|
|
|
|
.ais-Pagination-link
|
|
display: inline-block
|
|
min-width: 24px
|
|
height: 24px
|
|
text-align: center
|
|
line-height: 24px
|
|
|
|
.ais-Pagination-item--selected
|
|
a
|
|
background: $theme-paginator-color
|
|
color: #eee
|
|
cursor: default
|
|
|
|
.ais-Pagination-item--disabled
|
|
visibility: hidden
|
|
|
|
.algolia-logo
|
|
padding-top: 2px
|
|
width: 80px
|
|
height: 30px
|
|
|
|
#algolia-hits
|
|
> div
|
|
overflow-y: scroll
|
|
margin: 0 -20px
|
|
padding: 0 22px
|
|
|
|
+minWidth768()
|
|
max-height: calc(80vh - 240px)
|
|
|
|
+maxWidth768()
|
|
height: calc(100vh - 260px)
|
|
|
|
#algolia-info
|
|
div
|
|
display: inline
|
|
|
|
.algolia-poweredBy
|
|
float: right
|
|
|
|
.apple
|
|
#algolia-search
|
|
#algolia-hits
|
|
> div
|
|
+maxWidth768()
|
|
height: calc(90vh - 260px)
|