所有文件提交

This commit is contained in:
2026-02-08 09:45:54 +08:00
parent 6ff595b84a
commit 46c8721ff0
30 changed files with 1607 additions and 110 deletions

View File

@@ -24,6 +24,14 @@ wordWrap = $highlight_enable && !$highlight_line_number && hexo-config('code_blo
--hlscrollbar-bg: lighten(#121212, 5)
--hlexpand-bg: linear-gradient(180deg, rgba(lighten(#121212, 2), .6), rgba(lighten(#121212, 2), .9))
$scrollbar-style
// scrollbar - firefox
@-moz-document url-prefix()
scrollbar-color: var(--hlscrollbar-bg) transparent
&::-webkit-scrollbar-thumb
background: var(--hlscrollbar-bg)
if $highlight_enable
@require 'highlight/index'
@@ -88,6 +96,11 @@ $code-block
&:hover
border-bottom-color: var(--hl-color)
&.default
pre
padding: 10px 20px
@extend $scrollbar-style
&.copy-true
user-select: all
-webkit-user-select: all

View File

@@ -1,11 +1,6 @@
figure.highlight
table
// scrollbar - firefox
@-moz-document url-prefix()
scrollbar-color: var(--hlscrollbar-bg) transparent
&::-webkit-scrollbar-thumb
background: var(--hlscrollbar-bg)
@extend $scrollbar-style
pre .deletion
color: $highlight-deletion

View File

@@ -6,12 +6,7 @@ if $highlight_theme != false
.container
pre[class*='language-']
// scrollbar - firefox
@-moz-document url-prefix()
scrollbar-color: var(--hlscrollbar-bg) transparent
&::-webkit-scrollbar-thumb
background: var(--hlscrollbar-bg)
@extend $scrollbar-style
&:not(.line-numbers)
padding: 10px 20px

View File

@@ -37,6 +37,8 @@
margin: 0
color: var(--white)
font-size: 1.85em
@extend .limit-more-line
-webkit-line-clamp: 3
+minWidth768()
font-size: 2.85em

View File

@@ -37,13 +37,13 @@
display: none
padding: 0 0 15px
width: 100%
addBorderRadius()
.reward-all
display: inline-block
margin: 0
padding: 20px 10px
background: var(--reward-pop)
addBorderRadius()
&:before
position: absolute

View File

@@ -65,12 +65,55 @@ if hexo-config('waline.bg')
if hexo-config('mermaid.enable')
.mermaid-wrap
position: relative
margin: 0 0 20px
background: var(--card-bg)
text-align: center
if hexo-config('mermaid.open_in_new_tab')
.mermaid-open-btn
position: absolute
top: 8px
right: 8px
z-index: 2
display: flex
justify-content: center
align-items: center
padding: 0
width: 34px
height: 25px
border: none
border-radius: 20%
background: #D3D3D3
box-shadow: 0 4px 10px rgba(0, 0, 0, .15)
color: #fff
font-size: 0
line-height: 1
cursor: pointer
transition: background .2s ease, transform .2s ease
i
font-size: 16px
line-height: 1
&:hover,
&:focus-visible
outline: none
background: #C0C0C0
transform: translateY(-1px)
& > svg
max-width: 100%
height: 100%
if hexo-config('mermaid.zoom_pan')
cursor: grab
user-select: none
touch-action: none
&:active
cursor: grabbing
if hexo-config('mermaid.code_write')
pre > code.mermaid
display: none
@@ -184,4 +227,4 @@ if hexo-config('math.use')
+maxWidth768()
.fancybox__toolbar__column.is-middle
display: none
display: none