mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-17 04:40:53 +08:00
feat: gallery 標簽外掛增加圖片懶加載,增加 lazyload rowHeight 和 limit 屬性配置 feat: 可設置固定導航欄 closed #1150 fix: 修復開啟懶加載後,再使用 flink_url 的方式引入友鏈數據,友鏈頭像有可能不顯示的 bug closed #1146 fix: 修復閲讀模式下,代碼塊的背景顏色仍顯示彩色背景的 bug (自定義代碼塊) closed #1139 improvement: 搜索結果換行時不會拆分單詞顯示 improvement: 優化搜索結果顯示滾動條位置 improvement: css/js 優化
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-result-title)
|
|
|
|
&: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)
|