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 {
overflow-x: auto;
display: block;
background-color: #fafafa;
color: #999;
background-color: var(--pre-background);
color: var(--pre-text-color);
font-family: var(--code-font-family);
line-height: 1.428571429;
word-break: break-all;

View file

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