feat: use two styles
This commit is contained in:
parent
1de9c3decb
commit
15a2355f05
2 changed files with 73 additions and 5 deletions
|
|
@ -118,12 +118,13 @@ article pre {
|
|||
padding: 1rem;
|
||||
overflow-x: auto;
|
||||
border-radius: 4px;
|
||||
background: var(--code-bg) !important;
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
|
||||
pre * {
|
||||
background: var(--code-bg) !important;
|
||||
[data-theme="dark"] .astro-code,
|
||||
[data-theme="dark"] .astro-code span {
|
||||
color: var(--shiki-dark) !important;
|
||||
background-color: var(--shiki-dark-bg) !important;
|
||||
}
|
||||
|
||||
:not(pre) > code {
|
||||
|
|
@ -133,7 +134,7 @@ pre * {
|
|||
white-space: nowrap;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 4px;
|
||||
background: var(--code-bg) !important;
|
||||
background: var(--code-bg);
|
||||
}
|
||||
|
||||
.astro-code {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue