mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2025-09-15 12:58:48 +08:00
feat: 增加twikoo評論數顯示 feat: 增加toc簡潔模式 feat: 最新評論頭像增加lazyload feat: fontawesome和google字體增加異步加載 fix: 修復上個版本導致的圖庫報沒有jQuery的bugs fix: 修復上個版本導致aside 分類展開/收縮按鈕的bugs improvement: toc點擊時改用document.getElementById獲取參數,避免有些字符導致無法跳轉 close #426 improvement: icp圖片限制大小 close #434 improvement: 最新評論優化,當沒有評論時顯示 '沒有評論' improvement: 若瀏覽器支持,scroll將採用原生瀏覽器支持的滾動方法 improvement: 當屏幕沒有滾動條時,rightside會直接顯示
41 lines
728 B
Stylus
41 lines
728 B
Stylus
#rightside
|
|
position: fixed
|
|
right: -38px
|
|
bottom: $rightside-bottom
|
|
z-index: 100
|
|
opacity: 0
|
|
transition: all .5s
|
|
|
|
#rightside-config-hide
|
|
transition: transform .4s
|
|
transform: translate(35px, 0)
|
|
|
|
&.show
|
|
transform: translate(0, 0) !important
|
|
|
|
& > div
|
|
& > button,
|
|
& > a
|
|
display: block
|
|
margin-bottom: 2px
|
|
width: 30px
|
|
height: 30px
|
|
background-color: var(--btn-bg)
|
|
color: var(--btn-color)
|
|
text-align: center
|
|
font-size: 16px
|
|
cursor: pointer
|
|
|
|
&:hover
|
|
background-color: var(--btn-hover-color)
|
|
|
|
#mobile-toc-button
|
|
display: none
|
|
|
|
+maxWidth900()
|
|
display: block
|
|
|
|
+maxWidth900()
|
|
#hide-aside-btn
|
|
display: none
|