mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 20:30:53 +08:00
feat: 適配 hexo 5.0.0 的 prismjs, 代碼主題和各項功能
refactor: 移除 代碼default主題 fix: 修復夜間模式下代碼塊有背景的bugs(沒開啟渲染的情況下) feat: 增加 code font-size配置 close #322 refactor: 更改配置中 code-font 為 code-font-family feat: Pjax下,刷新頁面時,會滾動到上次瀏覽的位置 fix: 修復mathjax溢出屏幕的Bugs close #321
This commit is contained in:
@@ -44,8 +44,12 @@ if hexo-config('darkmode.enable') || hexo-config('display_mode') == 'dark'
|
||||
#page-header
|
||||
background-color: #121212
|
||||
|
||||
#article-container code
|
||||
background: #2c2c2c
|
||||
#article-container
|
||||
code
|
||||
background: #2c2c2c
|
||||
|
||||
pre > code
|
||||
background: 0
|
||||
|
||||
// 頭部
|
||||
#page-header
|
||||
@@ -73,16 +77,20 @@ if hexo-config('darkmode.enable') || hexo-config('display_mode') == 'dark'
|
||||
|
||||
figure.highlight
|
||||
box-shadow: none
|
||||
|
||||
if hexo-config('rootConfig.highlight') && hexo-config('rootConfig.highlight.enable')
|
||||
table::-webkit-scrollbar-thumb
|
||||
background: lighten(#121212, 5)
|
||||
|
||||
table::-webkit-scrollbar-thumb
|
||||
.line:before
|
||||
color: alpha(#FFFFFF, .6) !important
|
||||
|
||||
.hljs
|
||||
background-color: lighten(#121212, 2) !important
|
||||
|
||||
pre[class*='language-']::-webkit-scrollbar-thumb
|
||||
background: lighten(#121212, 5)
|
||||
|
||||
.line:before
|
||||
color: alpha(#FFFFFF, .6) !important
|
||||
|
||||
.hljs
|
||||
background-color: lighten(#121212, 2) !important
|
||||
|
||||
.highlight-tools
|
||||
background: lighten(#121212, 3) !important
|
||||
color: #90a4ae !important
|
||||
|
||||
Reference in New Issue
Block a user