feat: better inline code style

This commit is contained in:
jeffreytse 2020-11-29 15:42:49 +08:00
parent 1aff8cf843
commit 6e023282c5
2 changed files with 8 additions and 7 deletions

View file

@ -148,10 +148,9 @@ code {
} }
*:not(pre) > code { *:not(pre) > code {
padding: 1px 5px; padding: 3px 6px;
border-radius: 3px; border-radius: 3px;
color: #fff; background-color: #eee;
background-color: #787878;
margin: 0 5px; margin: 0 5px;
} }

View file

@ -1,4 +1,5 @@
$dark-background-color: #0e0e0e !default; $dark-background-color: #0e0e0e !default;
$dark-text-color: #bbb !default;
html[data-theme="dark"] { html[data-theme="dark"] {
@ -10,12 +11,13 @@ html[data-theme="dark"] {
} }
body { body {
color: #bbb; color: $dark-text-color;
background-color: $dark-background-color; background-color: $dark-background-color;
} }
*:not(pre) > code { *:not(pre) > code {
background-color: #545454; color: $dark-text-color;
background-color: #454545;
} }
table { table {
@ -74,7 +76,7 @@ html[data-theme="dark"] {
.pagination { .pagination {
.post-link { .post-link {
color: #bbb; color: $dark-text-color;
} }
.post-title { .post-title {
@ -171,7 +173,7 @@ html[data-theme="dark"] {
} }
a { a {
color: #bbb; color: $dark-text-color;
} }
a:hover { a:hover {