Skip to content

Commit

Permalink
fix: background color issue (#140)
Browse files Browse the repository at this point in the history
修复使用 GitHub 风格的文章样式时,文章内容背景颜色在暗色下的样式问题。

/kind bug

before:

<img width="476" alt="image" src="https://github.com/halo-dev/theme-earth/assets/21301288/74a1e3a6-d74b-4067-938c-92109a025b48">

after:

<img width="487" alt="image" src="https://github.com/halo-dev/theme-earth/assets/21301288/51db65b0-60e4-40a2-9dc7-b65ee5d353dc">


```release-note
None
```
  • Loading branch information
ruibaby authored Apr 15, 2024
1 parent bcf874c commit 69d2b47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ body {
}

.markdown-body {
background-color: transparent !important;

line-height: 1.75;

ul {
Expand Down
2 changes: 1 addition & 1 deletion templates/assets/dist/style.css

Large diffs are not rendered by default.

0 comments on commit 69d2b47

Please sign in to comment.