mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 19:30:54 +08:00
feat: 為文章單獨設置 TOC simple_style 顯示 closed #631 feat: page 頁頂部圖增加黑色遮罩 closed #671 feat: 首頁 pagination 更新 UI fix: 修復使用本地搜索時,搜索插件配置為不搜索文章內容會無法使用搜索 的 bug fix: 修復開啟 photofigcaption 後,導致inlineImg標籤外掛顯示錯亂的 bug fix: 修復 字體過大/過小而導致 部分 ui 偏移的 bug improvement: 主題 css 使用的 rem 改為 em 或 px improvement: 修改没有顶部图下,文章页的标题大小 closed #669 improvement: 代碼優化
75 lines
1.5 KiB
Stylus
75 lines
1.5 KiB
Stylus
#algolia-search
|
|
.search-dialog
|
|
.ais-search-box
|
|
margin: 0 auto
|
|
max-width: 100%
|
|
width: 100%
|
|
|
|
input
|
|
padding: 5px 14px
|
|
outline: none
|
|
border: 2px solid $search-color
|
|
border-radius: 40px
|
|
background: var(--search-bg)
|
|
color: var(--search-input-color)
|
|
|
|
.ais-hits--item.algolia-hit-item
|
|
position: relative
|
|
padding-left: 24px
|
|
|
|
&:hover
|
|
&:before
|
|
border-color: $pseudo-hover
|
|
|
|
&:before
|
|
$w = .5em
|
|
position: absolute
|
|
top: .53em
|
|
left: 0
|
|
width: w = $w
|
|
height: h = w
|
|
border: 3px solid $search-color
|
|
border-radius: w
|
|
background: transparent
|
|
content: ''
|
|
line-height: h
|
|
transition: all .2s ease-in-out
|
|
|
|
a
|
|
display: block
|
|
color: var(--search-result-title)
|
|
cursor: pointer
|
|
|
|
&:hover
|
|
color: $search-color
|
|
|
|
em
|
|
color: $search-keyword-highlight
|
|
font-weight: bold
|
|
|
|
.ais-pagination.pagination
|
|
margin: 16px 0 0
|
|
padding: 0
|
|
text-align: center
|
|
|
|
.ais-pagination--item
|
|
margin: 0 4px
|
|
padding: 0
|
|
|
|
a
|
|
display: inline-block
|
|
min-width: 24px
|
|
height: 24px
|
|
text-align: center
|
|
line-height: 24px
|
|
|
|
.ais-pagination--item.current
|
|
a
|
|
background: $theme-paginator-color
|
|
color: #eee
|
|
cursor: default
|
|
|
|
.algolia-logo
|
|
padding-top: 2px
|
|
width: 80px
|
|
height: 30px |