mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-23 10:21:46 +01:00
feat(article content): improve code tag style
This commit is contained in:
parent
9cb3115914
commit
f5e0b098c1
2 changed files with 10 additions and 6 deletions
|
@ -242,12 +242,10 @@
|
|||
}
|
||||
|
||||
code {
|
||||
color: #808080;
|
||||
font-size: 0.96em;
|
||||
background-color: #f9f9f7;
|
||||
padding: 1px 2px;
|
||||
border: 1px solid #eee;
|
||||
border-radius: 3px;
|
||||
color: var(--code-text-color);
|
||||
background-color: var(--code-background-color);
|
||||
padding: 2px 4px;
|
||||
border-radius: var(--tag-border-radius);
|
||||
font-family: var(--code-font-family);
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
|
|
@ -68,6 +68,9 @@ $on-desktop-large: 1920px;
|
|||
|
||||
--pre-background: #272822;
|
||||
--pre-text-color: #f8f8f2;
|
||||
|
||||
--code-background-color: rgba(0, 0, 0, 0.12);
|
||||
--code-text-color: #808080;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
|
@ -85,5 +88,8 @@ $on-desktop-large: 1920px;
|
|||
--card-separator-color: rgba(255, 255, 255, 0.12);
|
||||
|
||||
--body-text-color: rgba(255, 255, 255, 0.7);
|
||||
|
||||
--code-background-color: #272822;
|
||||
--code-text-color: rgba(255, 255, 255, 0.9);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue