mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-12 22:17:06 +08:00
refactor: 移除 代碼default主題 fix: 修復夜間模式下代碼塊有背景的bugs(沒開啟渲染的情況下) feat: 增加 code font-size配置 close #322 refactor: 更改配置中 code-font 為 code-font-family feat: Pjax下,刷新頁面時,會滾動到上次瀏覽的位置 fix: 修復mathjax溢出屏幕的Bugs close #321
55 lines
1.1 KiB
Stylus
55 lines
1.1 KiB
Stylus
if $highlight_theme != false
|
|
@require 'diff'
|
|
|
|
#article-container
|
|
figure.highlight
|
|
.line
|
|
if wordWrap
|
|
&:before
|
|
display: inline-block
|
|
padding: 0 .3rem 0 0
|
|
min-width: 1.6rem
|
|
color: $highlight-gutter.color
|
|
content: counter(line)
|
|
counter-increment: line
|
|
text-align: left
|
|
|
|
&.marked
|
|
background-color: $highlight-selection
|
|
|
|
table
|
|
display: block
|
|
overflow: auto
|
|
border: none
|
|
|
|
td
|
|
padding: 0
|
|
border: none
|
|
|
|
figcaption
|
|
clearfix()
|
|
padding: .3rem 0 .1rem .7rem
|
|
font-size: 1em
|
|
line-height: 1em
|
|
|
|
a
|
|
float: right
|
|
padding-right: 10px
|
|
color: $highlight-foreground
|
|
|
|
&:hover
|
|
border-bottom-color: $highlight-foreground
|
|
|
|
.gutter pre
|
|
padding-right: .5rem
|
|
padding-left: .5rem
|
|
background-color: $highlight-gutter.bg-color
|
|
color: $highlight-gutter.color
|
|
text-align: right
|
|
|
|
.code pre
|
|
padding-right: .5rem
|
|
padding-left: .5rem
|
|
width: 100%
|
|
|