mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 20:30:53 +08:00
feat: 右下角增加字體調整按鈕
fix: 修復沒有滾動條時,右下角按鈕顯示問題 close #439 remove: 刪除ICP配置, 如需要,請使用custom_text配置 close #435
This commit is contained in:
@@ -60,6 +60,12 @@ script
|
||||
| document.documentElement.classList.remove('hide-aside')
|
||||
| }
|
||||
| }
|
||||
|
||||
if theme.change_font_size
|
||||
| const fontSizeVal = saveToLocal.get('global-font-size')
|
||||
| if (fontSizeVal !== undefined) {
|
||||
| document.documentElement.style.setProperty('--global-font-size', fontSizeVal + 'px')
|
||||
| }
|
||||
|
||||
| })()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user