Skip to content

Commit

Permalink
styles: Custom background for code blocks
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Ledda <[email protected]>
  • Loading branch information
LeddaZ committed Dec 2, 2024
1 parent 28109d0 commit e3042fc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions quartz/styles/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,11 @@
strong {
color: var(--dark);
}

code[data-theme*=" "] {
background-color: #dfe6f5;
}

[saved-theme="dark"] code[data-theme*=" "] {
background-color: #161621;
}
4 changes: 2 additions & 2 deletions quartz/styles/syntax.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
code[data-theme*=" "] {
color: var(--shiki-light);
background-color: var(--shiki-light-bg);
background-color: yellow;
}

code[data-theme*=" "] span {
Expand All @@ -9,7 +9,7 @@ code[data-theme*=" "] span {

[saved-theme="dark"] code[data-theme*=" "] {
color: var(--shiki-dark);
background-color: var(--shiki-dark-bg);
background-color: red;
}

[saved-theme="dark"] code[data-theme*=" "] span {
Expand Down

0 comments on commit e3042fc

Please sign in to comment.