mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2025-09-15 12:58:48 +08:00
feat: 可配置最新評論的緩存時間 fix: 修復pjax下不會跳轉404頁面的bug fix: 修復手持設備橫向翻轉時,menu 沒有進行判斷,而導致樣式錯亂的bug fix: 修復文字點擊關閉random無效的bug fix: 修復子目錄下,打賞圖片跳轉鏈接會錯誤的bug improvement: 文章版權右上角改為 版權icon improvement: pangu的操作範圍增大到 body-wrap裏的內容 improvement: pug 判斷優化 improvement: 最新評論js優化 remove: 移除 fragment_cache 配置(默認開啟) remove: 移除百度推送(百度已棄用)和百度轉碼
79 lines
1.3 KiB
Stylus
79 lines
1.3 KiB
Stylus
#pagination
|
|
overflow: hidden
|
|
margin-top: 1rem
|
|
width: 100%
|
|
|
|
.pagination
|
|
text-align: center
|
|
|
|
.page-number
|
|
display: inline-block
|
|
margin: 0 .2rem
|
|
min-width: w = 1.2rem
|
|
height: w
|
|
text-align: center
|
|
line-height: w
|
|
cursor: pointer
|
|
|
|
&.current
|
|
background: $theme-paginator-color
|
|
color: var(--white)
|
|
cursor: default
|
|
|
|
img.prev-cover,
|
|
img.next-cover
|
|
position: absolute
|
|
width: 100%
|
|
height: 100%
|
|
opacity: .4
|
|
transition: all .6s
|
|
object-fit: cover
|
|
|
|
.pagination-info
|
|
position: absolute
|
|
top: 50%
|
|
padding: 1rem 2rem
|
|
width: 100%
|
|
transform: translate(0, -50%)
|
|
|
|
.prev_info,
|
|
.next_info
|
|
@extend .limit-one-line
|
|
color: var(--white)
|
|
font-weight: 500
|
|
|
|
.next-post
|
|
.pagination-info
|
|
text-align: right
|
|
|
|
.pull-full
|
|
width: 100% !important
|
|
|
|
.prev-post .label,
|
|
.next-post .label
|
|
color: var(--light-grey)
|
|
text-transform: uppercase
|
|
font-size: 90%
|
|
|
|
.prev-post,
|
|
.next-post
|
|
width: 50%
|
|
|
|
+maxWidth768()
|
|
width: 100%
|
|
|
|
a
|
|
position: relative
|
|
display: block
|
|
overflow: hidden
|
|
height: 150px
|
|
|
|
&:hover
|
|
img.prev-cover,
|
|
img.next-cover
|
|
opacity: .8
|
|
transform: scale(1.1)
|
|
|
|
&.pagination-post
|
|
margin-top: 2rem
|
|
background: $dark-black |