mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2025-09-15 12:58:48 +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: 代碼優化
64 lines
1.4 KiB
Stylus
64 lines
1.4 KiB
Stylus
#post-comment
|
|
.comment-head
|
|
margin-bottom: 20px
|
|
|
|
.comment-headline
|
|
display: inline-block
|
|
vertical-align: middle
|
|
font-weight: 700
|
|
font-size: 1.43em
|
|
|
|
#comment-switch
|
|
display: inline-block
|
|
|
|
if hexo-config('comments.text')
|
|
float: right
|
|
margin: 2px auto 0
|
|
padding: 4px 16px
|
|
width: max-content
|
|
border-radius: 8px
|
|
background: $comments-switch-bg
|
|
else
|
|
vertical-align: middle
|
|
|
|
> span
|
|
display: none
|
|
|
|
.first-comment
|
|
color: $comments-switch-first-text
|
|
|
|
.second-comment
|
|
color: $comments-switch-second-text
|
|
|
|
.switch-btn
|
|
position: relative
|
|
display: inline-block
|
|
margin: -4px 8px 0
|
|
width: 42px
|
|
height: 22px
|
|
border-radius: 34px
|
|
background-color: $comments-switch-first-text
|
|
vertical-align: middle
|
|
cursor: pointer
|
|
transition: .4s
|
|
|
|
&:before
|
|
position: absolute
|
|
bottom: 4px
|
|
left: 4px
|
|
width: 14px
|
|
height: 14px
|
|
border-radius: 50%
|
|
background-color: $comments-switch-round
|
|
content: ''
|
|
transition: .4s
|
|
|
|
&.move
|
|
background-color: $comments-switch-second-text
|
|
|
|
&:before
|
|
transform: translateX(20px)
|
|
|
|
.comment-wrap
|
|
> div:nth-child(2)
|
|
display: none |