mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-23 10:21:46 +01:00
feat(css): add --pre-background and --pre-text-color variables
This commit is contained in:
parent
f1bbe37eee
commit
39eb9bdfb3
2 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue