Skip to content

Commit e189999

Browse files
authored
Merge pull request #430 from EvanNotFound/dev
v2.7.1
2 parents 0187cf4 + 1a22cc9 commit e189999

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hexo-theme-redefine",
3-
"version": "2.7.0",
3+
"version": "2.7.1",
44
"private": false,
55
"description": "Redefine your writing with Hexo Theme Redefine.",
66
"scripts": {

source/css/common/codeblock/code-theme.styl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,14 @@ $highlight-gutter-bg-color = #f6f8fa
3737
$dark-highlight-gutter-color = #8b949e
3838
$dark-highlight-gutter-bg-color = #161b22
3939

40+
$inline-code-foreground = #24292e
41+
$inline-code-background = #f1f1f1
42+
$dark-inline-code-foreground = #c9d1d9
43+
$dark-inline-code-background = #313131
44+
4045
code-theme(mode)
41-
--code-foreground: mode == 'light' ? $highlight-foreground : $dark-code-foreground
42-
--code-background: mode == 'light' ? $highlight-background : $dark-code-background
46+
--inline-code-foreground: mode == 'light' ? $inline-code-foreground : $dark-inline-code-foreground
47+
--inline-code-background: mode == 'light' ? $inline-code-background : $dark-inline-code-background
4348
--highlight-background: mode == 'light' ? $highlight-background : $dark-highlight-background
4449
--highlight-foreground: mode == 'light' ? $highlight-foreground : $dark-highlight-foreground
4550
--highlight-keyword: mode == 'light' ? $highlight-keyword : $dark-highlight-keyword

source/css/common/codeblock/highlight.styl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ code
2828
padding 3px 4px
2929
word-wrap break-word
3030
border-radius $redefine-border-radius-xsmall
31-
color var(--code-foreground)
32-
background var(--code-background)
31+
color var(--inline-code-foreground)
32+
background var(--inline-code-background)
3333

3434
.main-content code
3535
font-size: 0.9em

0 commit comments

Comments
 (0)