Skip to content

Commit

Permalink
style: 调整代码块样式
Browse files Browse the repository at this point in the history
  • Loading branch information
hai-zou committed Jan 28, 2024
1 parent 10dc407 commit 442c20d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ highlight:
enable: true
line_number: true
auto_detect: false
tab_replace: ''
tab_replace: ' '
wrap: true
hljs: false
prismjs:
enable: false
preprocess: true
line_number: true
tab_replace: ''
tab_replace: ' '

# Home page setting
index_generator:
Expand Down
11 changes: 10 additions & 1 deletion themes/sea/source/css/partial/highlight.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,18 @@
float: right;
}

.sea-doc .highlight .gutter {
user-select: none;
}

.sea-doc .highlight .gutter pre {
text-align: right;
padding-right: 20px;
padding-right: 10px;
border-right: 1px solid var(--sea-color-black);
}

.sea-doc .highlight td.code pre {
padding: 0 15px;
}

.sea-doc .highlight .gutter pre .line {
Expand Down

0 comments on commit 442c20d

Please sign in to comment.