Skip to content

Commit

Permalink
Merge pull request #430 from EvanNotFound/dev
Browse files Browse the repository at this point in the history
v2.7.1
  • Loading branch information
EvanNotFound committed Sep 4, 2024
2 parents 0187cf4 + 1a22cc9 commit e189999
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
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

0 comments on commit e189999

Please sign in to comment.