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
35 lines
828 B
Stylus
35 lines
828 B
Stylus
#article-container
|
|
pre[class*='language-']
|
|
&.line-numbers
|
|
position: relative
|
|
padding-left: 3.8em
|
|
counter-reset: linenumber
|
|
line-height: $line-height-code-block
|
|
|
|
> code
|
|
position: relative
|
|
white-space: inherit
|
|
line-height: $line-height-code-block
|
|
|
|
.line-numbers-rows
|
|
position: absolute
|
|
top: 0
|
|
left: -3.8em
|
|
width: 3em
|
|
letter-spacing: -1px
|
|
font-size: 100%
|
|
pointer-events: none
|
|
user-select: none
|
|
|
|
& > span
|
|
display: block
|
|
counter-increment: linenumber
|
|
pointer-events: none
|
|
|
|
&:before
|
|
display: block
|
|
padding-right: .8em
|
|
color: $highlight-gutter.color
|
|
content: counter(linenumber)
|
|
text-align: right
|