feat(css): add --pre-background and --pre-text-color variables

This commit is contained in:
Jimmy Cai 2020-08-24 23:32:24 +02:00
parent f1bbe37eee
commit 39eb9bdfb3
2 changed files with 5 additions and 2 deletions

View File

@ -271,8 +271,8 @@
pre { pre {
overflow-x: auto; overflow-x: auto;
display: block; display: block;
background-color: #fafafa; background-color: var(--pre-background);
color: #999; color: var(--pre-text-color);
font-family: var(--code-font-family); font-family: var(--code-font-family);
line-height: 1.428571429; line-height: 1.428571429;
word-break: break-all; word-break: break-all;

View File

@ -65,6 +65,9 @@ $on-desktop-large: 1920px;
--section-separation: 40px; --section-separation: 40px;
--small-card-padding: 25px; --small-card-padding: 25px;
--pre-background: #272822;
--pre-text-color: #f8f8f2;
} }
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {