Skip to content

Commit

Permalink
Merge pull request #43 from hai-zou/dev
Browse files Browse the repository at this point in the history
style: 代码块颜色调整 | PATCH
  • Loading branch information
hai-zou authored Oct 21, 2024
2 parents 831a870 + 20b081b commit 246587b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 2 additions & 5 deletions source/css/plugins/prism.styl
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,14 @@ pre {
padding: 1em;
margin: .5em 0;
overflow: auto;
}

:not(pre)>code,
pre {
background: var(--sea-code-bg);
background: var(--sea-pre-code-bg);
}

:not(pre)>code {
padding: 0.15em 0.4em;
border-radius: .3em;
white-space: normal;
background: var(--sea-code-bg);
}

/*
Expand Down
4 changes: 3 additions & 1 deletion source/css/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

--sea-code-color: var(--sea-color-black);
--sea-code-selection: #b3d4fc;
--sea-pre-code-bg: rgba(0, 0, 0, 0.03);
--sea-code-bg: rgba(0, 0, 0, 0.06);
}

Expand Down Expand Up @@ -64,7 +65,8 @@ html[theme=dark] {

--sea-code-color: var(--sea-color-white);
--sea-code-selection: #3b82f680;
--sea-code-bg: #2d2d2d;
--sea-pre-code-bg: rgba(255, 255, 255, 0.04);
--sea-code-bg: rgba(255, 255, 255, 0.08);
}

:root {
Expand Down

0 comments on commit 246587b

Please sign in to comment.