mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2025-09-15 12:58:48 +08:00
2. feat: 可隱藏Mobile sidebar 子菜單 3. refactor: archives和card-post 改為flex佈局 4. feat: 當寬度小於1024時,點擊toc滾動,增加滾動效果 5. feat: 點擊滾動,如果滾動是向上時,將會偏移60px, 避免導航欄遮擋 close #317 6. feat: 可配置font-size 7. refactor: 去除字體放大、縮小按鈕 8. refactor: 部分css由'px'改為'em',適應font-size值改變而改變 9. feat: pjax增加exclude配置 10. fix: 修復canvas_nest 配置沒有生效的Bugs 11. feat: 新增 cnzz_analytics 12. feat: 騰訊分析改為騰訊移動分析,並適配pjax 13. perf: 改cookies為localstore存儲 14. feat: 設置中的theme_color可單獨配置幾個,而不需要全部開啟 close #314 15. feat: butterfly.yml 採用deepMerge, 與_config文件進行合併而不是替換 16. fix: 修復rightsize-bottom配置無效的bug 17. refactor: aside增加position sticky 18. refactor: 調整webinfo 寬度小時的顯示 19. feat: 更改addtoany item的寫法 20. refactor: aside 內容邊距調整 21. feat: 增加最後更新時間顯示
77 lines
1.7 KiB
Stylus
77 lines
1.7 KiB
Stylus
if hexo-config('error_404.enable')
|
|
#error-wrap
|
|
position: absolute
|
|
top: 50%
|
|
right: 0
|
|
left: 0
|
|
margin: 0 auto
|
|
padding: 0 1rem
|
|
max-width: 1000px
|
|
transform: translate(0, -50%)
|
|
|
|
.error-content
|
|
display: flex
|
|
flex-direction: row
|
|
justify-content: center
|
|
align-items: center
|
|
margin: 0 1rem
|
|
height: 18rem
|
|
border-radius: 8px
|
|
background: var(--card-bg)
|
|
box-shadow: 0 4px 8px 6px rgba(7, 17, 27, .06)
|
|
|
|
+maxWidth768()
|
|
flex-direction: column
|
|
margin: 0
|
|
height: 25rem
|
|
|
|
.error-img
|
|
flex: 1
|
|
height: 100%
|
|
border-top-left-radius: 8px
|
|
border-bottom-left-radius: 8px
|
|
background-color: $theme-color
|
|
background-position: center
|
|
background-size: cover
|
|
|
|
+maxWidth768()
|
|
flex: 1
|
|
width: 100%
|
|
border-top-right-radius: 8px
|
|
border-bottom-left-radius: 0
|
|
|
|
.error-info
|
|
flex: 1
|
|
padding: .5rem
|
|
text-align: center
|
|
font-size: 14px
|
|
font-family: $site-name-font
|
|
|
|
+maxWidth768()
|
|
flex: 1.1
|
|
width: 100%
|
|
|
|
.error_title
|
|
margin-top: -4rem
|
|
font-size: 9em
|
|
|
|
+maxWidth768()
|
|
margin-top: -3rem
|
|
|
|
.error_subtitle
|
|
@extend .limit-more-line
|
|
margin-top: -3.5rem
|
|
word-break: break-word
|
|
font-size: 1.6em
|
|
-webkit-line-clamp: 2
|
|
|
|
a
|
|
display: inline-block
|
|
margin-top: .5rem
|
|
padding: .3rem 1.5rem
|
|
background: var(--btn-bg)
|
|
color: var(--btn-color)
|
|
|
|
i
|
|
padding-right: .3rem
|