mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2025-09-15 12:58:48 +08:00
feat: 完全移除 jquery feat: 清除配置文件的CDN, 默認 CDN 不再顯示在 config feat: 切換夜間模式後, mermaid 也會切換夜間主題 feat: 移除騰訊分析 feat: 移除右下角字體調整按鈕 feat: 本地搜索可處理 json feat: 右下角按鈕自定義順序 feat: 右小角按鈕 UI 微調 improvement: 手機端更改閲讀模式退出按鈕到右下角 improvement: photofigcaption 和 fancybox 的 figcaption 優先顯示 圖片的title屬性,然後是 alt 屬性 improvement: 首頁ui微調 improvement: 禁止一些瀏覽器會出現點擊左下角按鈕出現放大網頁的行為 improvement: js 優化 fix: 修復窗口大小改變時,導航欄的ui 可能會錯亂的 bug fix: 修復 pjax 下, twikoo 評論獲取是上一篇評論的 bug fix: 壓縮 html 代碼後, mermaid 顯示正常
61 lines
992 B
Stylus
61 lines
992 B
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: 1500px
|
|
|
|
& > div:first-child:not(.recent-posts)
|
|
@extend .cardHover
|
|
align-self: flex-start
|
|
padding: 50px 40px
|
|
|
|
+maxWidth768()
|
|
padding: 36px 14px
|
|
|
|
& > div:first-child
|
|
width: 75%
|
|
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)
|