mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 17:50:54 +08:00
feat: 新增設置代碼行數限制,顯示展開按鈕
improvement: prismjs 可以配置 code_word_wrap improvement: 搜索 hover 效果與其它目錄一致 improvement: css 優化 fix: 修復prismjs 無法識別的語言 顯示 null 而不是顯示 code 的 bug fix: 修復默認代碼大小不會隨着字體放大/放小而改變的bug fix: 修復prismjs 在ios safari 下自動換行的bug
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
figure.highlight
|
||||
table
|
||||
&::-webkit-scrollbar-thumb
|
||||
background: $highlight-scrollbar
|
||||
background: var(--hlscrollbar-bg)
|
||||
|
||||
pre .deletion
|
||||
color: $highlight-deletion
|
||||
|
||||
@@ -9,7 +9,7 @@ if $highlight_theme != false
|
||||
display: inline-block
|
||||
padding: 0 .3rem 0 0
|
||||
min-width: 1.6rem
|
||||
color: $highlight-gutter.color
|
||||
color: var(--hlnumber-color)
|
||||
content: counter(line)
|
||||
counter-increment: line
|
||||
text-align: left
|
||||
@@ -29,8 +29,8 @@ if $highlight_theme != false
|
||||
.gutter pre
|
||||
padding-right: .5rem
|
||||
padding-left: .5rem
|
||||
background-color: $highlight-gutter.bg-color
|
||||
color: $highlight-gutter.color
|
||||
background-color: var(--hlnumber-bg)
|
||||
color: var(--hlnumber-color)
|
||||
text-align: right
|
||||
|
||||
.code pre
|
||||
|
||||
Reference in New Issue
Block a user