mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2025-09-15 12:58:48 +08:00
feat: 代碼框設置高度限制,展開後按鈕不會消失,可點擊再次摺疊 close #637 feat: 增加 no-lightbox class 偵測,可配置 fancybox 和 medium-zoom 不應用於圖片 #636 fix: 修復開啟 lazyload 時, fancybox 的縮略圖顯示 lazyload 加載圖片的 bug
38 lines
1.8 KiB
Plaintext
38 lines
1.8 KiB
Plaintext
#rightside
|
|
#rightside-config-hide
|
|
if is_post() && theme.readmode
|
|
button#readmode(type="button" title=_p('rightside.readmode_title'))
|
|
i.fas.fa-book-open
|
|
if theme.change_font_size
|
|
button#font-plus(type="button" title=_p('rightside.font_plus_title'))
|
|
i.fas.fa-plus
|
|
button#font-minus(type="button" title=_p('rightside.font_minus_title'))
|
|
i.fas.fa-minus
|
|
if theme.translate.enable
|
|
button#translateLink(type="button" title=_p('rightside.translate_title'))= theme.translate.default
|
|
if theme.darkmode.enable && theme.darkmode.button
|
|
button#darkmode(type="button" title=_p('rightside.night_mode_title'))
|
|
i.fas.fa-adjust
|
|
if theme.aside.enable && theme.aside.button && page.aside !== false
|
|
button#hide-aside-btn(type="button" title=_p('rightside.aside'))
|
|
i.fas.fa-arrows-alt-h
|
|
#rightside-config-show
|
|
if is_post()
|
|
if (theme.readmode || theme.translate.enable || (theme.darkmode.enable && theme.darkmode.button) || theme.change_font_size)
|
|
button#rightside_config(type="button" title=_p("rightside.setting"))
|
|
i.fas.fa-cog.fa-spin
|
|
else if theme.translate.enable || (theme.darkmode.enable && theme.darkmode.button) || theme.change_font_size
|
|
button#rightside_config(type="button" title=_p("rightside.setting"))
|
|
i.fas.fa-cog.fa-spin
|
|
|
|
if showToc
|
|
button#mobile-toc-button.close(type="button" title=_p("rightside.toc"))
|
|
i.fas.fa-list-ul
|
|
if theme.chat_btn
|
|
button#chat_btn(type="button" title=_p("rightside.chat_btn"))
|
|
i.fas.fa-sms
|
|
if commentsJsLoad
|
|
a#to_comment(href="#post-comment" title=_p("rightside.scroll_to_comment"))
|
|
i.fas.fa-comments
|
|
button#go-up(type="button" title=_p("rightside.back_to_top"))
|
|
i.fas.fa-arrow-up |