Skip to content

Commit

Permalink
chore: light background for code snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm committed Oct 29, 2024
1 parent 2712586 commit 37adc29
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions packages/site-kit/src/lib/components/Text.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,15 @@
.code-block {
position: relative;
background: var(--sk-back-2);
background: var(--sk-back-3);
border: 1px solid var(--sk-back-5);
border-radius: var(--sk-border-radius);
overflow: hidden;
margin: calc(0.5 * var(--sk-line-height-body)) 0;
/* background: var(--sk-back-3); */
.dark & {
background: var(--sk-back-2);
}
@media (min-width: 767px) {
margin: var(--sk-line-height-body) 0;
Expand All @@ -139,10 +142,16 @@
&:has(.filename) {
position: relative;
background: var(--sk-back-3);
background: var(--sk-back-4);
padding-left: 1rem;
}
.dark & {
&:has(.filename) {
background: var(--sk-back-3);
}
}
&:not(:has(.filename)) {
background: inherit;
}
Expand Down

0 comments on commit 37adc29

Please sign in to comment.