mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-08 12:07:06 +08:00
- 新增本地搜索分頁配置 (enablePagination, hitsPerPage) - 重構 Algolia 搜索邏輯,支援多索引和更好的錯誤處理 - 優化搜索 UI 樣式,包括分頁按鈕和響應式設計 - 改進搜索結果顯示,新增編號和更好的高亮處理 📦 依賴項更新: - 更新 plugins.yml 中的多個插件版本 (abcjs, algolia, aplayer 等) - 更新 package.json 版本號為 5.5.0 🎨 UI/UX 優化: - 改進側邊欄和目錄的動畫效果 - 優化樣式佈局,調整寬度百分比 - 新增說說頁面的分頁導航組件 - 改進右側邊欄按鈕樣式 🐛 錯誤處理和代碼優化: - 修復 Umami Analytics 的錯誤處理和數據驗證 - 改進懶加載圖片的正則表達式,避免匹配腳本標籤 - 移除未使用的變數和改進代碼結構 - 新增說說內容的 Markdown 渲染支援 🔧 其他改進: - 更新翻譯功能,移除箭頭函數語法以提升相容性
61 lines
1.0 KiB
Stylus
61 lines
1.0 KiB
Stylus
#body-wrap
|
|
display: flex
|
|
flex-direction: column
|
|
min-height: 100vh
|
|
|
|
.layout
|
|
display: flex
|
|
flex: 1 auto
|
|
margin: 0 auto
|
|
padding: 40px 15px
|
|
max-width: 1200px
|
|
width: 100%
|
|
|
|
+maxWidth900()
|
|
flex-direction: column
|
|
|
|
+maxWidth768()
|
|
padding: 20px 5px
|
|
|
|
+minWidth2000()
|
|
max-width: 60%
|
|
|
|
& > div:first-child:not(.nc)
|
|
@extend .cardHover
|
|
align-self: flex-start
|
|
padding: 50px 40px
|
|
|
|
+maxWidth768()
|
|
padding: 36px 14px
|
|
|
|
& > div:first-child
|
|
width: 74%
|
|
transition: all .3s
|
|
|
|
+maxWidth900()
|
|
width: 100% !important
|
|
|
|
if hexo-config('aside.position') == 'left'
|
|
+minWidth900()
|
|
order: 2
|
|
|
|
// 隱藏aside
|
|
&.hide-aside
|
|
max-width: 1000px
|
|
|
|
+minWidth2000()
|
|
max-width: 1300px
|
|
|
|
& > div
|
|
width: 100% !important
|
|
|
|
// for apple device
|
|
.apple
|
|
#page-header.full_page
|
|
background-attachment: scroll !important
|
|
|
|
.recent-post-item,
|
|
.avatar-img,
|
|
.flink-item-icon
|
|
transform: translateZ(0)
|