enhance blockquote and monospace font

This commit is contained in:
Reorx 2022-09-30 00:19:08 +08:00
parent d7986e71bf
commit 6f9714cf2b
2 changed files with 6 additions and 1 deletions

View File

@ -245,6 +245,7 @@ h6:hover .anchor {
padding: 4px 5px; padding: 4px 5px;
border-radius: 3px; border-radius: 3px;
font-size: .95em; font-size: .95em;
font-family: var(--monospace);
} }
.post-content pre code { .post-content pre code {
/* reset inline code */ /* reset inline code */
@ -254,15 +255,18 @@ h6:hover .anchor {
overflow-x: auto; overflow-x: auto;
border-radius: var(--radius); border-radius: var(--radius);
word-break: break-all; word-break: break-all;
font-family: var(--monospace);
} }
.post-content .chroma code { .post-content .chroma code {
background-color: inherit; background-color: inherit;
font-family: var(--monospace);
} }
.post-content blockquote { .post-content blockquote {
margin: 20px 0; margin: 20px 0;
padding: 0 14px; padding: 0 14px;
border-inline-start: 3px solid var(--primary); border-inline-start: 3px solid var(--tertiary-bg);
opacity: 0.8;
} }
.post-content sup { .post-content sup {

View File

@ -7,6 +7,7 @@
--header-height: 60px; --header-height: 60px;
--footer-height: 80px; --footer-height: 80px;
--radius: 8px; --radius: 8px;
--monospace: "Lucida Console", Monaco, "Consolas", monospace;
--theme: rgb(255, 255, 255); --theme: rgb(255, 255, 255);
--entry: rgb(255, 255, 255); --entry: rgb(255, 255, 255);