Skip to content

Commit 37adc29

Browse files
committed
chore: light background for code snippets
1 parent 2712586 commit 37adc29

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

packages/site-kit/src/lib/components/Text.svelte

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,15 @@
112112
113113
.code-block {
114114
position: relative;
115-
background: var(--sk-back-2);
115+
background: var(--sk-back-3);
116116
border: 1px solid var(--sk-back-5);
117117
border-radius: var(--sk-border-radius);
118118
overflow: hidden;
119119
margin: calc(0.5 * var(--sk-line-height-body)) 0;
120-
/* background: var(--sk-back-3); */
120+
121+
.dark & {
122+
background: var(--sk-back-2);
123+
}
121124
122125
@media (min-width: 767px) {
123126
margin: var(--sk-line-height-body) 0;
@@ -139,10 +142,16 @@
139142
140143
&:has(.filename) {
141144
position: relative;
142-
background: var(--sk-back-3);
145+
background: var(--sk-back-4);
143146
padding-left: 1rem;
144147
}
145148
149+
.dark & {
150+
&:has(.filename) {
151+
background: var(--sk-back-3);
152+
}
153+
}
154+
146155
&:not(:has(.filename)) {
147156
background: inherit;
148157
}

0 commit comments

Comments
 (0)