summaryrefslogtreecommitdiff
path: root/assets/css
diff options
context:
space:
mode:
authorReorx <novoreorx@gmail.com>2022-09-30 00:19:08 +0800
committerReorx <novoreorx@gmail.com>2022-09-30 00:19:08 +0800
commit6f9714cf2b276dd47f6c18e827f5f5288875a471 (patch)
tree857d46b3b0370e7ff636f5ca9209227bc997e691 /assets/css
parentd7986e71bfeda9ca660e0253b7d6180093e23c9d (diff)
enhance blockquote and monospace font
Diffstat (limited to 'assets/css')
-rw-r--r--assets/css/common/post-single.css6
-rw-r--r--assets/css/core/theme-vars.css1
2 files changed, 6 insertions, 1 deletions
diff --git a/assets/css/common/post-single.css b/assets/css/common/post-single.css
index 644eaed..67b44eb 100644
--- a/assets/css/common/post-single.css
+++ b/assets/css/common/post-single.css
@@ -245,6 +245,7 @@ h6:hover .anchor {
padding: 4px 5px;
border-radius: 3px;
font-size: .95em;
+ font-family: var(--monospace);
}
.post-content pre code {
/* reset inline code */
@@ -254,15 +255,18 @@ h6:hover .anchor {
overflow-x: auto;
border-radius: var(--radius);
word-break: break-all;
+ font-family: var(--monospace);
}
.post-content .chroma code {
background-color: inherit;
+ font-family: var(--monospace);
}
.post-content blockquote {
margin: 20px 0;
padding: 0 14px;
- border-inline-start: 3px solid var(--primary);
+ border-inline-start: 3px solid var(--tertiary-bg);
+ opacity: 0.8;
}
.post-content sup {
diff --git a/assets/css/core/theme-vars.css b/assets/css/core/theme-vars.css
index 5b2c7f8..6c4f43c 100644
--- a/assets/css/core/theme-vars.css
+++ b/assets/css/core/theme-vars.css
@@ -7,6 +7,7 @@
--header-height: 60px;
--footer-height: 80px;
--radius: 8px;
+ --monospace: "Lucida Console", Monaco, "Consolas", monospace;
--theme: rgb(255, 255, 255);
--entry: rgb(255, 255, 255);