summaryrefslogtreecommitdiff
path: root/_sass
diff options
context:
space:
mode:
authorjeffreytse <jeffreytse.mail@gmail.com>2020-11-29 15:42:49 +0800
committerjeffreytse <jeffreytse.mail@gmail.com>2020-11-29 15:42:49 +0800
commit6e023282c5b5ab32a97240d5beef714aed473503 (patch)
treecf11db0b425446f363bf76151ec5c922b7a5041a /_sass
parent1aff8cf843fda7a368b447bccb3e0233719e5762 (diff)
feat: better inline code style
Diffstat (limited to '_sass')
-rw-r--r--_sass/yat/_base.scss5
-rw-r--r--_sass/yat/_dark.scss10
2 files changed, 8 insertions, 7 deletions
diff --git a/_sass/yat/_base.scss b/_sass/yat/_base.scss
index b8a0401..44afc1f 100644
--- a/_sass/yat/_base.scss
+++ b/_sass/yat/_base.scss
@@ -148,10 +148,9 @@ code {
}
*:not(pre) > code {
- padding: 1px 5px;
+ padding: 3px 6px;
border-radius: 3px;
- color: #fff;
- background-color: #787878;
+ background-color: #eee;
margin: 0 5px;
}
diff --git a/_sass/yat/_dark.scss b/_sass/yat/_dark.scss
index b227fb8..c8c3932 100644
--- a/_sass/yat/_dark.scss
+++ b/_sass/yat/_dark.scss
@@ -1,4 +1,5 @@
$dark-background-color: #0e0e0e !default;
+$dark-text-color: #bbb !default;
html[data-theme="dark"] {
@@ -10,12 +11,13 @@ html[data-theme="dark"] {
}
body {
- color: #bbb;
+ color: $dark-text-color;
background-color: $dark-background-color;
}
*:not(pre) > code {
- background-color: #545454;
+ color: $dark-text-color;
+ background-color: #454545;
}
table {
@@ -74,7 +76,7 @@ html[data-theme="dark"] {
.pagination {
.post-link {
- color: #bbb;
+ color: $dark-text-color;
}
.post-title {
@@ -171,7 +173,7 @@ html[data-theme="dark"] {
}
a {
- color: #bbb;
+ color: $dark-text-color;
}
a:hover {