css: improve inline code styling

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-04-24 15:57:21 +05:30
parent 1cd144519e
commit bf50f7b48f
2 changed files with 9 additions and 3 deletions

View File

@ -4,6 +4,8 @@
--text-color: #515151;
--heading-color: #313131;
--blockquote-color: #7a7a7a;
--inline-code-text-color: #b3555e;
--inline-code-background-color: #f9f9f9;
--post-time-color: #757575;
--strong-color: #303030;
--code-background-color: #202020;
@ -28,6 +30,8 @@
--text-color: #f0f0f0;
--heading-color: white;
--blockquote-color: #bababa;
--inline-code-text-color: #b3555e;
--inline-code-background-color: #202020;
--post-time-color: #bababa;
--code-background-color: #000000;
--strong-color: white;
@ -51,6 +55,8 @@
--text-color: #f0f0f0;
--heading-color: white;
--blockquote-color: #bababa;
--inline-code-text-color: #de4755;
--inline-code-background-color: #202020;
--post-time-color: #bababa;
--code-background-color: #000000;
--strong-color: white;

View File

@ -153,8 +153,8 @@ pre {
code {
padding: .25em .5em;
font-size: 85%;
color: #b3555e;
background-color: #f9f9f9;
color: var(--inline-code-text-color);
background-color: var(--inline-code-background-color);
border-radius: 3px;
}
pre {
@ -168,7 +168,7 @@ pre {
white-space: pre-wrap;
word-break: break-all;
word-wrap: break-word;
background-color: #f9f9f9;
background-color: var(--inline-code-background-color);
}
pre code {
padding: 0;