Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.7.1 #430

Merged
merged 2 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo-theme-redefine",
"version": "2.7.0",
"version": "2.7.1",
"private": false,
"description": "Redefine your writing with Hexo Theme Redefine.",
"scripts": {
Expand Down
9 changes: 7 additions & 2 deletions source/css/common/codeblock/code-theme.styl
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,14 @@ $highlight-gutter-bg-color = #f6f8fa
$dark-highlight-gutter-color = #8b949e
$dark-highlight-gutter-bg-color = #161b22

$inline-code-foreground = #24292e
$inline-code-background = #f1f1f1
$dark-inline-code-foreground = #c9d1d9
$dark-inline-code-background = #313131

code-theme(mode)
--code-foreground: mode == 'light' ? $highlight-foreground : $dark-code-foreground
--code-background: mode == 'light' ? $highlight-background : $dark-code-background
--inline-code-foreground: mode == 'light' ? $inline-code-foreground : $dark-inline-code-foreground
--inline-code-background: mode == 'light' ? $inline-code-background : $dark-inline-code-background
--highlight-background: mode == 'light' ? $highlight-background : $dark-highlight-background
--highlight-foreground: mode == 'light' ? $highlight-foreground : $dark-highlight-foreground
--highlight-keyword: mode == 'light' ? $highlight-keyword : $dark-highlight-keyword
Expand Down
4 changes: 2 additions & 2 deletions source/css/common/codeblock/highlight.styl
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ code
padding 3px 4px
word-wrap break-word
border-radius $redefine-border-radius-xsmall
color var(--code-foreground)
background var(--code-background)
color var(--inline-code-foreground)
background var(--inline-code-background)

.main-content code
font-size: 0.9em
Expand Down