mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2025-09-15 12:58:48 +08:00
improvement: 滾動到評論按鈕只要用評論的頁面就出現 improvement: aside狀態存localstore fix: 修復disqusjs沒有設置api時,沒有反代的bugs fix: 修復aside在font-matter aside為false時,收縮按鈕依舊出現和點擊按鈕會出現空白的bugs #398
64 lines
1.4 KiB
Stylus
64 lines
1.4 KiB
Stylus
#post-comment
|
|
.comment-head
|
|
margin-bottom: 1rem
|
|
|
|
.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: .1rem auto 0
|
|
padding: .2rem .8rem
|
|
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 .4rem 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 |