mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-23 18:31:45 +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 {
|
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;
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue