mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2025-09-15 12:58:48 +08:00
breaking changes: 移除 waline 的 avatar 和 avatar cdn 配置 feat: anchor 不再限制 post 頁開啟,可以在任何頁面開啟 feat: 文章標題支持點擊跳轉到此標題開始閲讀 closed #653 feat: toc可以設置全部展開 closed #709 feat: 增加 新的評論系統 giscus feat: 支持新的評論名寫法,主題會處理評論名字大小寫,舊的會兼容 feat: 友情鏈接列表增加 fetch url 獲取 improvement: 鼠標移到最新評論內容,增加 title 顯示 fix: 修復 rightside 遮擋內容,導致內容無法點擊的 bug fix: 修復 mermaid 在某些頁面(有元素 id 為 mermaid 時) 會無法加載的 bug fix: 修復 搜索框不會自動 focus 的 bug
54 lines
905 B
Stylus
54 lines
905 B
Stylus
#rightside
|
|
position: fixed
|
|
right: -48px
|
|
bottom: $rightside-bottom
|
|
z-index: 100
|
|
opacity: 0
|
|
transition: all .5s
|
|
|
|
#rightside-config-hide
|
|
display: none
|
|
|
|
& > div
|
|
& > button,
|
|
& > a
|
|
display: block
|
|
margin-bottom: 5px
|
|
width: w = 35px
|
|
height: w
|
|
border-radius: 5px
|
|
background-color: var(--btn-bg)
|
|
color: var(--btn-color)
|
|
text-align: center
|
|
font-size: 16px
|
|
line-height: w
|
|
|
|
&:hover
|
|
background-color: var(--btn-hover-color)
|
|
|
|
#mobile-toc-button
|
|
display: none
|
|
|
|
+maxWidth900()
|
|
display: block
|
|
|
|
+maxWidth900()
|
|
#hide-aside-btn
|
|
display: none
|
|
|
|
@keyframes rightside-item-in
|
|
0%
|
|
transform: translate(48px, 0)
|
|
|
|
100%
|
|
transform: translate(0, 0)
|
|
|
|
@keyframes rightside-item-out
|
|
0%
|
|
display: block
|
|
transform: translate(0, 0)
|
|
|
|
100%
|
|
display: none
|
|
transform: translate(48px, 0)
|