mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 19:20:53 +08:00
feat: 移除 anchor 的 button, 直接點擊標題跳轉 feat: 更改 headline 的 hover 效果 improvement: tabs content 裏最後一個元素 margin-bottom 改為 0 fix: float 浮動佈局導致評論寬度異常的 bug
43 lines
1.0 KiB
Stylus
43 lines
1.0 KiB
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
|
|
line-height: $line-height-code-block
|
|
|
|
if hexo-config('code_word_wrap')
|
|
white-space: pre-wrap
|
|
else
|
|
white-space: inherit
|
|
word-wrap: normal
|
|
word-break: normal
|
|
overflow-wrap: normal
|
|
|
|
.line-numbers-rows
|
|
position: absolute
|
|
top: 0
|
|
left: -3.8em
|
|
width: 3em
|
|
letter-spacing: -1px
|
|
font-size: 100%
|
|
pointer-events: none
|
|
user-select: none
|
|
-webkit-user-select: none
|
|
|
|
& > span
|
|
display: block
|
|
counter-increment: linenumber
|
|
pointer-events: none
|
|
|
|
&:before
|
|
display: block
|
|
padding-right: .8em
|
|
color: var(--hlnumber-color)
|
|
content: counter(linenumber)
|
|
text-align: right
|